Skip to main content

No project description provided

Project description

nr.python.environment

Utilities to work with Python environments.

API

function nr.python.environment.distributions.get_distributions(): Dict[str, Distribution]

Returns all distributions that can be found in the current Python environment. This can be useful to build a dependency graph or to collect the license of all packages used.

CLI

python -m nr.python.environment.distributions

Produce a CSV or JSON list of all distributions in the current Python environment. It can be used for example to get an overview of the different types of licenses for the Python packages installed in an environment:

$ python -m nr.python.environment.distributions  | jq .license_name -r | sort | uniq

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

nr.python.environment-0.1.4.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

nr.python.environment-0.1.4-py3-none-any.whl (5.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