Metadata-Version: 2.1
Name: ud-dist-meta
Version: 1.0.3
Summary: Library to extract information from packages installed in current python environment
Home-page: https://github.com/um-en/ud-dist-meta
Author: Umbriel Draken
Author-email: umbriel.draken@gmail.com
License: MIT
Keywords: distribution,virtual environment,metadata
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.9
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Operating System :: Microsoft :: Windows :: Windows 10
Description-Content-Type: text/markdown
Requires-Dist: importlib-metadata
Requires-Dist: pyyaml

# 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```:
```commandline
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:
```python
import dist_meta
dist_meta.gen_distinfo_py("spam", r"path\to\local\folder\configurations.yaml")
```
Or directly leveraging the core package:
```python
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")
```


