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
Metadata
Release files for nr.python.environment 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nr.python.environment-0.1.4.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nr.python.environment-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / nr.python.environment-0.1.4.tar.gz
| Download URL | nr.python.environment-0.1.4.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb4e3834aafab0c5e2e9e4760f52f23576d658c3568f148d175cbe395df18801
|
|
BLAKE2b-256 checksum How to use checksums |
6000cf8f5617a7e617dc77ea4aea5535c8810b53ab956b603b8448dd481fbd47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / nr.python.environment-0.1.4-py3-none-any.whl
| Download URL | nr.python.environment-0.1.4-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6dd0035b89902540e19230a1b4719ac844cc0e24210029d75ec5f07f63313742
|
|
BLAKE2b-256 checksum How to use checksums |
93775c8d1baad53d991c69fdf7fc42d66cd00b92d4adbe8bbb9ed280fcb30e6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|