AnonSec Team
Server IP : 10.2.73.233  /  Your IP : 216.73.216.223
Web Server : Apache/2.4.59 (Debian)
System : Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
User : www-data ( 33)
PHP Version : 5.6.40-64+0~20230107.71+debian10~1.gbp673146
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/../usr/sbin/../share/java/../doc/python/../php5-cli/../python-apt/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/../usr/sbin/../share/java/../doc/python/../php5-cli/../python-apt/README.md
# 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).

AnonSec - 2021