Skip to main content

Python library to query APT repositories

Project description

python-apt-repo Build Status

Python library to query APT repositories.

Example

from apt_repo import APTSources, APTRepository

url = 'http://archive.ubuntu.com/ubuntu'
components = ['main', 'universe', 'multiverse', 'restricted']
sources = APTSources([
    APTRepository(url, 'xenial', components),
    APTRepository(url, 'xenial-updates', components),
    APTRepository(url, 'xenial-backports', components),
    APTRepository(url, 'xenial-proposed', components)
])

print([(package.package, package.version) for package in sources.get_packages_by_name('docker.io')])
[('docker.io', '1.10.3-0ubuntu6'), ('docker.io', '1.13.1-0ubuntu1~16.04.2'), ('docker.io', '17.03.2-0ubuntu2~16.04.1')]

API Documentation

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

apt-repo-0.5.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file apt-repo-0.5.tar.gz.

File metadata

  • Download URL: apt-repo-0.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.12

File hashes

Hashes for apt-repo-0.5.tar.gz
Algorithm Hash digest
SHA256 b566195884b8ea59e6b831f814fd106c7e683dccc86ca95f6494a447572f30ea
MD5 7bd0a9c1132cd84a35fa805a9a259e41
BLAKE2b-256 74def13f2d4ef790c4abb340d5dac705b05b5e6401feb9fc026115b0ed15aaa9

See more details on using hashes here.

Supported by

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