ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.PyPI.UploadMetadata

Description

Checked per-distribution Core Metadata for the PyPI upload protocol.

Synopsis

Documentation

data PyPIUploadMetadata Source #

Ordered upload fields, preserving repeated values and author spelling.

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.