跳转到主要内容

发布工具的Pulp库

项目描述

Python客户端Pulp 2.x,由发布工程发布工具使用。

Build Status codecov

安装

从PyPI安装pubtools-pulplib包。

pip install pubtools-pulplib

使用示例

from pubtools.pulplib import Client

# Make a client pointing at this Pulp server
with Client(url='https://pulp.example.com/', auth=('admin', 'some-password')) as client:

  # Get a particular repo by ID.
  # All methods return Future instances; .result() blocks
  repo = client.get_repository('zoo').result()

  # Pulp objects have relevant methods, e.g. publish().
  # Returned future may encapsulate one or more Pulp tasks.
  publish = repo.publish().result()

开发

补丁可以通过向https://github.com/release-engineering/pubtools-pulplib发送pull请求来贡献。

所有更改都必须通过自动化测试套件,以及各种静态检查。

强制执行Black代码风格。建议通过pre-commit钩子启用自动格式化。

pip install -r requirements-dev.txt
pre-commit install

许可证

本程序是自由软件:您可以按照自由软件基金会发布的GNU通用公共许可证的条款重新分发和/或修改它,许可证版本为3,或者(根据您的选择)任何更高版本。

项目详情


发布历史 发布通知 | RSS 源

下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。

源代码分发

pubtools-pulplib-2.41.0.tar.gz (108.6 kB 查看哈希值)

上传时间 源代码

构建分发

pubtools_pulplib-2.41.0-py3-none-any.whl (125.4 kB 查看哈希值)

上传时间 Python 3

由以下赞助商支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面