A Python library for collecting content from various sources, used by release-engineering publishing tools.
Installation
Install the pushsource package from PyPI.
pip install pushsource
Usage Example
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)
Development
Patches may be contributed via pull requests to https://github.com/release-engineering/pushsource.
All changes must pass the automated test suite, along with various static checks.
The Black code style is enforced. Enabling autoformatting via a pre-commit hook is recommended:
pip install -r requirements-dev.txt
pre-commit install
License
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Metadata
Release files for pushsource 2.54.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pushsource-2.54.0.tar.gz | 102.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pushsource-2.54.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 216.7 kB
Release files / pushsource-2.54.0.tar.gz
| Download URL | pushsource-2.54.0.tar.gz |
|---|---|
| Size | 102.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fcc6d7b39f8db28249d222b38813b76a37e936a4590a9a28ca0ffcd30b0ac583
|
|
BLAKE2b-256 checksum How to use checksums |
cc8a36255f352894b4d90ebd2bb9715522d7e826e94e23ba14a7afd085492522
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pushsource-2.54.0-py3-none-any.whl
| Download URL | pushsource-2.54.0-py3-none-any.whl |
|---|---|
| Size | 114.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fac8ca4d5e2dc013da99aa7bebb7c7d90a7fac7a18ae05f6d903d6a0ba8cc798
|
|
BLAKE2b-256 checksum How to use checksums |
e13bb226686894ed6ac9cc92ab155b178b92357f7728081b73dcedc79b25638f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|