A Python client for Pulp 2.x, used by release-engineering publishing tools.
Installation
Install the pubtools-pulplib package from PyPI.
pip install pubtools-pulplib
Usage Example
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()
Development
Patches may be contributed via pull requests to https://github.com/release-engineering/pubtools-pulplib.
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 pubtools-pulplib 2.45.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 | |
|---|---|---|---|
| pubtools_pulplib-2.45.0.tar.gz | 114.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pubtools_pulplib-2.45.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 246.7 kB
Release files / pubtools_pulplib-2.45.0.tar.gz
| Download URL | pubtools_pulplib-2.45.0.tar.gz |
|---|---|
| Size | 114.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
538933115da1871cd69fc96bb52c16f275ed1cc55dce2f3501d66670f77a6d4c
|
|
BLAKE2b-256 checksum How to use checksums |
0fe9bee8bcdaecf2769b3a59aebfbd8e1247210bb8b8085fb3f1a84e941615f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / pubtools_pulplib-2.45.0-py3-none-any.whl
| Download URL | pubtools_pulplib-2.45.0-py3-none-any.whl |
|---|---|
| Size | 132.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68671cb77ccfba3d5dc21b8268d724f459f99ce6f1a4b5fa2d9e10a89adc73e4
|
|
BLAKE2b-256 checksum How to use checksums |
36fd86f3d0ad418c5c9e77069784b99aa1ecc4cec75acbf23de1ccb3bdae0330
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|