Debian Codegraph @

/

debian python-apt 3.1.0debian python-apt-doc debian python-apt-dev debian python-apt-common debian python3-apt python python-apt 3.1.0 bashdebianhtmlinimakemakefilemarkdownpythonshellyaml 116 files · 3431 symbols
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