Skip to main content

Interface with Debian APT package repositories.

Project description

libapt

Libapt provides a cross-platform pure Python interface for interacting with Debian APT repositories.

Libapt allows parsing the metadata of an apt repository, see libapt.pool.Pool.update.

When the metadata was downloaded and parsed, you can:

  • List all Debian binary and source packages.
  • Search for a Debian binary and source packages.
  • Download the binary and source packages.
  • Extract the metadata form Debian binary packages.
  • Extract the content of Debian binary packages.

The primary API is Pool from libapt.pool.

The primary data structure for configuring APT repositories is AptConfig from libapt.apt.

For more details see docs/index.rst or https://elische.github.io/libapt/.

Example

The folder example contains an example app using libapt.

Try the example:

  • Setup uv
  • Run the example: uv run python example/main.py

Contribute

This library makes use of uv and ruff.

Use the following steps to prepare your development environment:

  • Prepare a virtual environment and install development dependencies: uv sync
  • Activate the virtual environment: source .venv/bin/activate

Please test your changes locally before raising and PR using ./test.sh all

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

libapt-1.0.1.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

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

libapt-1.0.1-py3-none-any.whl (34.7 kB view details)

Uploaded Python 3

File details

Details for the file libapt-1.0.1.tar.gz.

File metadata

  • Download URL: libapt-1.0.1.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for libapt-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1b6e17381c0742d37e742aef505c40036434f3711d3ce4b454fac44504e87610
MD5 ff282ec59a6fc4dff7ffa62a01c28842
BLAKE2b-256 dcde3acfdd28e33b393f20f502f79d9c3b5bd4e1df4430a5b38ab7f6e8f48e26

See more details on using hashes here.

Provenance

The following attestation bundles were made for libapt-1.0.1.tar.gz:

Publisher: publish-to-test-pypi.yml on eLiSCHe/libapt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libapt-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: libapt-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 34.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for libapt-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 127e08c645e83da02f79505bc4cc0413bf5df9ec145d502f7d05718ee1addc24
MD5 5e18eb8a5f3a90a53898a84f55fcf506
BLAKE2b-256 22b317ebd8609e1ec785000df23749bd42ce8d95698c80d5135432eebeaf0f7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for libapt-1.0.1-py3-none-any.whl:

Publisher: publish-to-test-pypi.yml on eLiSCHe/libapt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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