dist_meta.metadata
¶
Parse and create *dist-info/METADATA
files.
Exceptions:
Raised when a required field is missing. |
Functions:
|
Construct Python core metadata from the given fields, and write it to |
|
Construct Python core metadata from the given fields. |
|
Parse Python core metadata from the given file. |
|
Parse Python core metadata from the given string. |
-
exception
MissingFieldError
[source]¶ Bases:
ValueError
Raised when a required field is missing.
-
dump
(fields, filename)[source]¶ Construct Python core metadata from the given fields, and write it to
filename
.
-
dumps
(fields)[source]¶ Construct Python core metadata from the given fields.
- Parameters
fields (
MetadataMapping
)- Return type
Changed in version 0.4.0: Added support for the License-Expression and License-File options proposed by PEP 639.
-
load
(filename)[source]¶ Parse Python core metadata from the given file.
- Parameters
- Return type
- Returns
A mapping of the metadata fields, and the long description