| Server IP : 40.70.14.18 / Your IP : 216.73.217.175 Web Server : Apache/2.4.29 (Ubuntu) System : Linux prolydian-connect 5.4.0-1109-azure #115~18.04.1-Ubuntu SMP Mon May 22 20:06:37 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.24 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/python-apt/ |
Upload File : |
# 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).