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

Uploaded Source

Built Distribution

nr.python.environment-0.1.4-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file nr.python.environment-0.1.4.tar.gz.

File metadata

  • Download URL: nr.python.environment-0.1.4.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.6.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.2

File hashes

Hashes for nr.python.environment-0.1.4.tar.gz
Algorithm Hash digest
SHA256 fb4e3834aafab0c5e2e9e4760f52f23576d658c3568f148d175cbe395df18801
MD5 49ce393e9c70abfbb4b3060286284d44
BLAKE2b-256 6000cf8f5617a7e617dc77ea4aea5535c8810b53ab956b603b8448dd481fbd47

See more details on using hashes here.

File details

Details for the file nr.python.environment-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: nr.python.environment-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.6.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.2

File hashes

Hashes for nr.python.environment-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6dd0035b89902540e19230a1b4719ac844cc0e24210029d75ec5f07f63313742
MD5 7c20771bbd48cbeafd112e5164694c95
BLAKE2b-256 93775c8d1baad53d991c69fdf7fc42d66cd00b92d4adbe8bbb9ed280fcb30e6d

See more details on using hashes here.

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