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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file getdep-1.1.2.tar.gz.

File metadata

  • Download URL: getdep-1.1.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for getdep-1.1.2.tar.gz
Algorithm Hash digest
SHA256 5a0316a3e7fb85a93a0eb5e045a900f51d6068b9fa4b51d2837a2e7b29c11148
MD5 23090c4d0d3897f0c168780e5b4c2a94
BLAKE2b-256 619bbb8c30ed8f8d4f9a1d7c8e589ba68a3c3009b2dd4260cc8280eb5fea94dc

See more details on using hashes here.

File details

Details for the file getdep-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: getdep-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for getdep-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 713212b1073a983045cde4c46c5ba614b9c9a7c1e578408d324d3d45f54002d9
MD5 624e1ebb69d8e1be8d84adaab2ae3d79
BLAKE2b-256 7f10800105c265b83fe70b9224b3e016b31d0981b09f1a3700a464ed2b477cac

See more details on using hashes here.

Supported by

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