Python library to query APT repositories
Project description
python-apt-repo ![Build Status](https://pypi-camo.freetls.fastly.net/9870173e6540d385443d42529d311bf4bf9befc1/68747470733a2f2f7472617669732d63692e6f72672f6272656e6e65726d2f707974686f6e2d6170742d7265706f2e7376673f6272616e63683d6d6173746572)
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 hashes)