/
View dependency graph
Depends on
- apt (apt, apt-utils, libapt-pkg-dev)
- apt-xapian-index (apt-xapian-index)
- dh-python (dh-python)
- distro-info-data (distro-info-data)
- fakeroot (fakeroot)
- gnupg2 (dirmngr, gnupg)
- iso-codes (iso-codes)
- kthresher (kthresher)
- lsb-release-minimal (lsb-release)
- node-jquery (libjs-jquery)
- python3-defaults (python3-all, python3-all-dev, python3-dev)
- setuptools (python3-setuptools)
- sphinx (python3-sphinx)
- underscore (libjs-underscore)
- debhelper-compat, pycodestyle, pyflakes3, python-apt, python3-distutils-extra
Used by
- adequate 0.17.6
- ansible-core 2.21.1~rc1-1
- apt 3.3.1
- apt-forktracer 0.11+nmu1
- apt-listchanges 4.8+nmu2
- apt-listdifferences 1.20230122
- apt-offline 1.8.6-1
- apt-suggest-auto 0.1
- apt-xapian-index 0.59
- blends 0.7.11
- botch 0.24-8
- breezy-debian 2.8.81
- check-all-the-things 2025.02.06
- click 0.5.2-11
- command-not-found 23.04.0-3
- dblatex 0.3.12py3-6
- debdelta 0.70+nmu2
- debootstrap 1.0.144
- debsbom 0.8.1-1
- debsecan 0.4.20.2
Show 27 more
- debusine 0.14.10
- deken 0.10.12-1
- dogtail 1.0.7-4
- freedombox 26.9.1
- gdebi 0.9.5.8
- gnupg2 2.4.9-4
- isenkram 0.71
- kthresher 1.4.1-3
- laniakea 0.1.1-5
- mini-buildd 2.4.9
- mini-dinstall 0.7.3
- nala 0.16.0
- npm2deb 0.3.0-15
- python-debian 1.1.1
- reportbug 13.2.0
- reportbug 13.2.0+nmu1
- ppa-dev-tools 0.7.0-1
- python-aptly 0.12.12-2
- ansible-core 2.21.2-1
- apt 3.3.3
- apt-listchanges 4.8+nmu3
- debsbom 0.9.0-1
- freedombox 26.11.1
- gnupg2 2.4.9-7
- debootstrap 1.0.145
- deken 0.10.22-1
- laniakea 0.1.1-5.1
README (full)
Python-apt is a wrapper to use features of apt from python.
It contains the following modules:
C++ Wrapper:
- apt_pkg - access to libapt-pkg (wrapper to the lowlevel c++ code)
- apt_inst - access to libapt-inst (wrapper to the lowlevel c++ code)
Python module:
- apt - high level python interface build on top of apt_pkg, apt_inst
- aptsources - high level manipulation of sources.list
Development
Building
To build python-apt run:
$ python setup.py build
You may need to install the build-dependencies via:
$ sudo apt build-dep ./
first.
Running the tests
Run the tests with:
$ python tests/test_all.py
$ python3 tests/test_all.py
Running mypy:
To check if the "apt" python module is mypy clean, run:
$ MYPYPATH=./typehinting/ mypy ./apt
To use the annotation with your source code, run:
$ MYPYPATH=/usr/lib/python3/dist-packages/apt mypy ./my-program
(adjust from python3 to python2.7 if you run there).
| dir | apt/ |
| dir | aptsources/ |
| dir | data/ |
| dir | debian/ |
| dir | doc/ |
| dir | po/ |
| dir | python/ |
| dir | tests/ |
| dir | typehinting/ |
| dir | utils/ |
| file | .gitlab-ci.yml |
| file | .pre-commit-config.yaml |
| file | AUTHORS |
| file | COPYING.GPL |
| file | Dockerfile |
| file | README.md |
| file | TODO |
| file | mypy.ini |
| file | pre-build.sh |
| file | setup.cfg |
| file | setup.py |