| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.PyPI.UploadMetadata
Description
Checked per-distribution Core Metadata for the PyPI upload protocol.
Synopsis
- data PyPIUploadMetadata
- parseUploadMetadata :: Int -> PackageName -> Version -> ByteString -> Either ParseError PyPIUploadMetadata
- uploadMetadataMemoryBytes :: ByteString -> Either ParseError Int
- uploadFields :: PyPIUploadMetadata -> [(Text, Text)]
Documentation
data PyPIUploadMetadata Source #
Ordered upload fields, preserving repeated values and author spelling.
Instances
| Show PyPIUploadMetadata Source # | |
Defined in Ecluse.Core.Registry.PyPI.UploadMetadata Methods showsPrec :: Int -> PyPIUploadMetadata -> ShowS # show :: PyPIUploadMetadata -> String # showList :: [PyPIUploadMetadata] -> ShowS # | |
| Eq PyPIUploadMetadata Source # | |
Defined in Ecluse.Core.Registry.PyPI.UploadMetadata Methods (==) :: PyPIUploadMetadata -> PyPIUploadMetadata -> Bool # (/=) :: PyPIUploadMetadata -> PyPIUploadMetadata -> Bool # | |
parseUploadMetadata :: Int -> PackageName -> Version -> ByteString -> Either ParseError PyPIUploadMetadata Source #
Reject malformed headers, ambiguous single-use fields, and inconsistent package identity.
uploadMetadataMemoryBytes :: ByteString -> Either ParseError Int Source #
Charge the actual raw, decoded, and encoded metadata plus bounded header structures before preparation.
uploadFields :: PyPIUploadMetadata -> [(Text, Text)] Source #
Form names follow the native upload API, including its pluralisation exceptions.