Skip to main content

Get dependencies for a given package management system and a given package

Project description

GETDEP

codecov PyPI version Requirements Status Code Coverage Quality check

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        
         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.2.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

getdep-1.1.2-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page