ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.PyPI.Metadata

Description

PyPI full and selected Simple-index reads for Ecluse.Core.Registry.Metadata.Fetch.

Synopsis

Documentation

pypiReadWith :: (Int -> IO ()) -> EcosystemRead Source #

Full and selected reads share the Simple-index request and field policy, with the full read's absolute workspace payer.

preparePyPIRead :: PrepareRead Source #

pypiReadWith under the selected origin's full-read workspace, which pays the per-entry floor.

pypiMirrorRead :: EcosystemRead Source #

Workers retain the supported envelope beside selected files without changing ordinary serve reads.

pypiChargeFactors :: ChargeFactors Source #

Charges per 1000 source or output-basis bytes, calibrated with native memory probes. See docs/testing.md.

pypiIndexWalk :: Limits -> PackageName -> PyPIRead -> InternTable -> Cursor -> Step PyPIProjection Source #

The production Simple-index walk over a caller's intern table.

projectPyPIStream :: Limits -> PackageName -> StreamResult PyPIProjection -> Either MetadataError (PackageInfo, SimpleDocument) Source #

Finish a tree read, keeping files linked to their source coordinates.

type PyPIFullRead = Walked PyPIProjection Source #

The packed read returns its final table beside the typed projection and supported files.

pypiPackedWalk :: PrimVar st Int -> Writer st -> FileWriter st -> Limits -> PackageName -> InternTable -> Cursor -> ST st (Steps (ST st) PyPIFullRead) Source #

Full reads use the supplied table and writer without materialising file trees, publishing the floors their retained entries owe.

projectPyPIPacked :: Limits -> PackageName -> StreamResult PyPIFullRead -> Either MetadataError (PackageInfo, PackedSimple) Source #

Finish packed full reads without rebuilding file trees for their typed facts.