跳转到主要内容

从各种来源加载推送条目的库

项目描述

一个用于从各种来源收集内容的Python库,由release-engineering发布工具使用。

PyPI Build Status

安装

从PyPI安装pushsource包。

pip install pushsource

使用示例

from pushsource import Source

# Get a source of content; sources and their parameters can be
# specified by URL. This source will use a couple of RPMs from
# Fedora koji as the content source.
with Source.get('koji:https://koji.fedoraproject.org/kojihub?rpm=python3-3.7.5-2.fc31.x86_64.rpm,python3-3.7.5-2.fc31.src.rpm') as source:
  # Iterate over the content and do something with it:
  for push_item in source:
    publish(push_item)

开发

可以通过向https://github.com/release-engineering/pushsource提交拉取请求来贡献补丁。

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

强制执行Black代码风格。建议通过预提交钩子启用自动格式化。

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

许可证

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

项目详情


发布历史 发布通知 | RSS订阅

下载文件

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

源分发

pushsource-2.47.2.tar.gz (86.7 kB 查看哈希值)

上传时间

构建分发

pushsource-2.47.2-py3-none-any.whl (101.2 kB 查看哈希值)

上传时间 Python 3

由以下赞助

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