python3-cyberfusion-aptly-apicli
API library for Aptly.
Install
PyPI
Run the following command to install the package from PyPI:
pip3 install python3-cyberfusion-aptly-apicli
Debian
Run the following commands to build a Debian package:
mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
dpkg-buildpackage -us -uc
Configure
Config file options
- Section
aptly-api, keyserverurl - Section
aptly-api, keyusername(optional) - Section
aptly-api, keyapikey(optional)
Class options
config_file_path. Non-default config file path.
Usage
Example
from cyberfusion.AptlyApiCli import AptlyApiRequest
r = AptlyApiRequest()
# Upload temporary file
endpoint = "/api/files/aptly-0.9"
with open("aptly_0.9~dev+217+ge5d646c_i386.deb", "rb") as f:
r.POST(endpoint, data={}, files={"file": f})
print(r.execute())
# Add package
endpoint = "/api/repos/repo1/file/aptly-0.9"
r = AptlyApiRequest()
r.POST(endpoint, data={})
print(r.execute())
Release files for python3-cyberfusion-aptly-apicli 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python3_cyberfusion_aptly_apicli-1.1.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python3_cyberfusion_aptly_apicli-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / python3_cyberfusion_aptly_apicli-1.1.tar.gz
| Download URL | python3_cyberfusion_aptly_apicli-1.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51c5d11683506eceed57c974ac8bb58a0f3459a7a7daa2ed5fe95ee52025b016
|
|
BLAKE2b-256 checksum How to use checksums |
eaf1ddc05d0b22c835a229f83d52b8900403c9663533941f13e4524520ae2872
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / python3_cyberfusion_aptly_apicli-1.1-py3-none-any.whl
| Download URL | python3_cyberfusion_aptly_apicli-1.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
117a11cbb27fe4f26dafde7f4d849e713a898f18efa51bb49ad60e3d06b0d963
|
|
BLAKE2b-256 checksum How to use checksums |
d4225ea971bc288bcf34b6eb7f1aabe0f9ef7af8104219b7d390b674064ca55b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|