Library to extract information from packages installed in current python environment
Project description
Distribution metadata
This package is meant to provide information scrappers on distributions / repositories installed in the running environment. It provides a command line api and python sdk, i.e.:
Command line
To gather metadata information from a distribution (e.g. spam) installed in the same environment as dist_meta
:
gen_distinfo_cmd spam path\to\local\folder\configurations.yaml
This instruction will generate a YAML configuration file at the given location
Python
The base content of the package can be directly leverage, either through a script interface:
import dist_meta
dist_meta.gen_distinfo_py("spam", r"path\to\local\folder\configurations.yaml")
Or directly leveraging the core package:
import dist_meta
info_spam = dist_meta.DistInfo.from_env("spam")
print(info_spam.entry_points)
print(info_spam.environment)
print(info_spam.libraries)
print(info_spam.requirements)
info_spam.to_yaml (r"path\to\local\folder\configurations.yaml")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ud-dist-meta-1.0.3.tar.gz
.
File metadata
- Download URL: ud-dist-meta-1.0.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.11.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4a5aa3c907f773fd7923143d666c79aaa0dfaaf5696e7c08788f7ffd6f9c16e |
|
MD5 | 9117720470e2676e6bfbfb3f70b6423b |
|
BLAKE2b-256 | f5bcf86be0b1c2d9cbdf20178f6afbdc37c97b2ead3f01ab3ea16e27f444d00b |
File details
Details for the file ud_dist_meta-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: ud_dist_meta-1.0.3-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.11.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6b80698f4e09259249bd99978a99b3a9f691faf40f20f3e3868a4d018f8f716 |
|
MD5 | dc390a026e0b31a86eb2cc9db5ed1dcf |
|
BLAKE2b-256 | e6f0d76548343f16e11eebe818bafbf129d9f5cb94bb8a096c77a85d8e56c306 |