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.
Release files for pushsource 2.53.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.53.0.tar.gz | 102.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pushsource-2.53.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 216.3 kB
Release files / pushsource-2.53.0.tar.gz
| Download URL | pushsource-2.53.0.tar.gz |
|---|---|
| Size | 102.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b374a5775c60f0f8686f9b2605bcf7a9de650a8851aba9564b44e321452d829
|
|
BLAKE2b-256 checksum How to use checksums |
f06d5ce2e722f85f1062e08755024ca768ccdc1ba147fcb21bfb508b7e955c7e
|
| 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.53.0-py3-none-any.whl
| Download URL | pushsource-2.53.0-py3-none-any.whl |
|---|---|
| Size | 113.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a5a7dd69d76097336b887acdeaf7967b8d45533f3d3a40920946a44ac351982
|
|
BLAKE2b-256 checksum How to use checksums |
0132be51af5b5e0883095cf1be3e05411c07eb05e4d70e38a4a901a3939fb823
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|