PEP 621 metadata parsing
Project description
pyproject-metadata
Dataclass for PEP 621 metadata with support for core metadata generation
This project does not implement the parsing of pyproject.toml
containing PEP 621 metadata.
Instead, given a Python data structure representing PEP 621 metadata (already
parsed), it will validate this input and generate a PEP 643-compliant metadata
file (e.g. PKG-INFO
).
Usage
After installing pyproject-metadata
,
you can use it as a library in your scripts and programs:
from pyproject_metadata import StandardMetadata
parsed_pyproject = { ... } # you can use parsers like `tomli` to obtain this dict
metadata = StandardMetadata.from_pyproject(parsed_pyproject)
print(metadata.entrypoints) # same fields as defined in PEP 621
pkg_info = metadata.as_rfc822()
print(str(pkg_info)) # core metadata
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
Close
Hashes for pyproject_metadata-0.8.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03208d4a4b14fb7c278c45f41c1c9c4b8f40c99d975fd9b6e5957d67a25b5065 |
|
MD5 | ed5c06168036437b65ec3b78de6e4b95 |
|
BLAKE2b-256 | f8dee695267d2a6c8622d0814f151647483d23532edff5816fe37c101fd0de59 |
Close
Hashes for pyproject_metadata-0.8.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4daf95e21d2b40570bc43f39eec0ad8efc5bcd8f06496e617e69981f856b121f |
|
MD5 | a951b6061150f72991cb9e895d4f3208 |
|
BLAKE2b-256 | fe4650facc20a0ff1a23f408de26282f2a4551e4fab04fa5bde42503bdf07913 |