Skip to main content

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, key serverurl
  • Section aptly-api, key username (optional)
  • Section aptly-api, key apikey (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

python3_cyberfusion_aptly_apicli-1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file python3_cyberfusion_aptly_apicli-1.1.tar.gz.

File metadata

File hashes

Hashes for python3_cyberfusion_aptly_apicli-1.1.tar.gz
Algorithm Hash digest
SHA256 51c5d11683506eceed57c974ac8bb58a0f3459a7a7daa2ed5fe95ee52025b016
MD5 46f1a251d8e443db360166ee229a8ddc
BLAKE2b-256 eaf1ddc05d0b22c835a229f83d52b8900403c9663533941f13e4524520ae2872

See more details on using hashes here.

File details

Details for the file python3_cyberfusion_aptly_apicli-1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for python3_cyberfusion_aptly_apicli-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 117a11cbb27fe4f26dafde7f4d849e713a898f18efa51bb49ad60e3d06b0d963
MD5 fd6527f93bdd49f9d3f63dcbac4ad49e
BLAKE2b-256 d4225ea971bc288bcf34b6eb7f1aabe0f9ef7af8104219b7d390b674064ca55b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page