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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b6e17381c0742d37e742aef505c40036434f3711d3ce4b454fac44504e87610
|
|
| MD5 |
ff282ec59a6fc4dff7ffa62a01c28842
|
|
| BLAKE2b-256 |
dcde3acfdd28e33b393f20f502f79d9c3b5bd4e1df4430a5b38ab7f6e8f48e26
|
Provenance
The following attestation bundles were made for libapt-1.0.1.tar.gz:
Publisher:
publish-to-test-pypi.yml on eLiSCHe/libapt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
libapt-1.0.1.tar.gz -
Subject digest:
1b6e17381c0742d37e742aef505c40036434f3711d3ce4b454fac44504e87610 - Sigstore transparency entry: 182994320
- Sigstore integration time:
-
Permalink:
eLiSCHe/libapt@fa81be937f633a5def7a226e624171662befe5a7 -
Branch / Tag:
refs/tags/1.0.1 - Owner: https://github.com/eLiSCHe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@fa81be937f633a5def7a226e624171662befe5a7 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
127e08c645e83da02f79505bc4cc0413bf5df9ec145d502f7d05718ee1addc24
|
|
| MD5 |
5e18eb8a5f3a90a53898a84f55fcf506
|
|
| BLAKE2b-256 |
22b317ebd8609e1ec785000df23749bd42ce8d95698c80d5135432eebeaf0f7a
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
libapt-1.0.1-py3-none-any.whl -
Subject digest:
127e08c645e83da02f79505bc4cc0413bf5df9ec145d502f7d05718ee1addc24 - Sigstore transparency entry: 182994321
- Sigstore integration time:
-
Permalink:
eLiSCHe/libapt@fa81be937f633a5def7a226e624171662befe5a7 -
Branch / Tag:
refs/tags/1.0.1 - Owner: https://github.com/eLiSCHe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@fa81be937f633a5def7a226e624171662befe5a7 -
Trigger Event:
push
-
Statement type: