Get dependencies for a given package management system and a given package
Project description
GETDEP
Get dependencies for a given package management system and a given package.
Use
You can install getdep
either via pip (PyPI) or from source.
To install using pip:
python3 -m pip install getdep
Or manually:
git clone https://github.com/remiflavien1/getdep
cd getdep
./install.sh && setup.py
For apt
dependencies you need to install apt-rdepends
:
sudo apt install apt-rdepends
Use
>>> from getdep import getdep
>>> getdep.get_pip_dependencies("requests")
['chardet', 'idna', 'urllib3', 'certifi', 'pyOpenSSL', 'cryptography', 'PySocks', 'win-inet-pton']
>>> getdep.get_apt_dependencies("nano")
['nano', 'libc6', 'libncursesw5', 'libtinfo5', 'libgcc1', 'gcc-8-base']
# Supported package management system
>>> from getdep import utility
>>> utility.print_supported_pms()
Supported PMS are :
apt
apt-get
composer
gem
npm
pip
Note
You must have the package management system, which you are requesting, installed on your system.
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
getdep-1.1.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
getdep-1.1.0-py3-none-any.whl
(4.4 kB
view hashes)