API library for Aptly.
Project description
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())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python3_cyberfusion_aptly_apicli-1.1.tar.gz.
File metadata
- Download URL: python3_cyberfusion_aptly_apicli-1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51c5d11683506eceed57c974ac8bb58a0f3459a7a7daa2ed5fe95ee52025b016
|
|
| MD5 |
46f1a251d8e443db360166ee229a8ddc
|
|
| BLAKE2b-256 |
eaf1ddc05d0b22c835a229f83d52b8900403c9663533941f13e4524520ae2872
|
File details
Details for the file python3_cyberfusion_aptly_apicli-1.1-py3-none-any.whl.
File metadata
- Download URL: python3_cyberfusion_aptly_apicli-1.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
117a11cbb27fe4f26dafde7f4d849e713a898f18efa51bb49ad60e3d06b0d963
|
|
| MD5 |
fd6527f93bdd49f9d3f63dcbac4ad49e
|
|
| BLAKE2b-256 |
d4225ea971bc288bcf34b6eb7f1aabe0f9ef7af8104219b7d390b674064ca55b
|