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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyproject_metadata-0.8.0rc1.tar.gz.
File metadata
- Download URL: pyproject_metadata-0.8.0rc1.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03208d4a4b14fb7c278c45f41c1c9c4b8f40c99d975fd9b6e5957d67a25b5065
|
|
| MD5 |
ed5c06168036437b65ec3b78de6e4b95
|
|
| BLAKE2b-256 |
f8dee695267d2a6c8622d0814f151647483d23532edff5816fe37c101fd0de59
|
File details
Details for the file pyproject_metadata-0.8.0rc1-py3-none-any.whl.
File metadata
- Download URL: pyproject_metadata-0.8.0rc1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4daf95e21d2b40570bc43f39eec0ad8efc5bcd8f06496e617e69981f856b121f
|
|
| MD5 |
a951b6061150f72991cb9e895d4f3208
|
|
| BLAKE2b-256 |
fe4650facc20a0ff1a23f408de26282f2a4551e4fab04fa5bde42503bdf07913
|