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
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
File details
Details for the file python3_cyberfusion_aptly_apicli-1.0.2.2.3.tar.gz
.
File metadata
- Download URL: python3_cyberfusion_aptly_apicli-1.0.2.2.3.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e4c59a82722710a3eed51eaabbb41b80539fe2d7a79dbaebd7ddb039657d240 |
|
MD5 | 00cd170ad6f58aff5db663ea8cff67df |
|
BLAKE2b-256 | 2ddfbd2270418e5efdcd246e75edc35990b065478f2245770d05485d3a209a66 |
File details
Details for the file python3_cyberfusion_aptly_apicli-1.0.2.2.3-py3-none-any.whl
.
File metadata
- Download URL: python3_cyberfusion_aptly_apicli-1.0.2.2.3-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e81f156d2cf2303a07286db3346ee4331e5f1f5f6635045f400ed88368a1bd65 |
|
MD5 | 2b02f6a71d0828f3dcf97397a17da7f4 |
|
BLAKE2b-256 | 8ef31d0d084101dfacd0bfb98b94cfdfc1ccacd64d509124da647988072bb93d |