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
ud-dist-meta-1.0.2.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for ud_dist_meta-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30ec0fd4e2348d1b20c3953773f9b21703969c348023e2f556f1abca4ec44b51 |
|
MD5 | b261c854173785041758f53b8f36e842 |
|
BLAKE2b-256 | 14a78713d929069beb5ae1090a89bc3a1c3118bb2899322884d1f11ef02dc505 |