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.
Install
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
python3 setup.py install
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
yarn
brew
pip
choco
dotnet
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.2.0.tar.gz
(4.7 kB
view hashes)
Built Distribution
getdep-1.2.0-py3-none-any.whl
(5.1 kB
view hashes)