XinOrigin/moon_warc/pipeline does not have a README file

    ArchiveFilter

    pub(all) struct ArchiveFilter {
    warc_types : Array[
    WarcType
    ]?
    surt_prefix : String?
    mime_prefix : String?
    status_min : Int?
    status_max : Int?
    date_from : String?
    date_to : String?
    } derive(Eq,
    Debug
    )

    Filter criteria applied by matches_filter, filter_records, and extract_subset.

    ArchiveFilter::all

    Returns an unconstrained filter matching all WARC records.

    ArchiveFilter::new

    fn ArchiveFilter::new(warc_types? : Array[
    WarcType
    ], surt_prefix? : String, mime_prefix? : String, status_min? : Int, status_max? : Int, date_from? : String, date_to? : String) -> ArchiveFilter

    Constructs an ArchiveFilter using optional keyword criteria.

    JsonlOptions

    pub(all) struct JsonlOptions {
    include_body_text : Bool
    max_body_chars : Int
    } derive(Eq,
    Debug
    )

    Options controlling JSONL export and textual body extraction.

    JsonlOptions::default

    fn JsonlOptions::default() -> JsonlOptions

    Default JSONL export options (include_body_text: true, max_body_chars: 4096).

    PipelineError

    pub(all) enum PipelineError {
    InvalidSegmentSize(String)
    MissingOriginRecord(String)
    MissingSegmentNumber(String)
    OutOfOrderSegment(String)
    TotalLengthMismatch(String)
    PayloadDigestMismatch(String)
    } derive(Eq,
    Debug
    )

    Errors returned by ISO 28500 §9 record segmentation and reassembly.

    WaczManifests

    pub(all) struct WaczManifests {
    datapackage_json : String
    datapackage_digest_json : String
    cdxj_text : String
    } derive(Eq,
    Debug
    )

    Frictionless Data & WebRecorder WACZ 1.1.1 manifest artifacts generated for a .warc.gz archive.

    build_wacz_manifests

    fn build_wacz_manifests(records : Array[
    WarcRecord
    ], warc_gz_bytes : BytesView, warc_filename? : String, title? : String, main_page_url? : String, main_page_date? : String) -> WaczManifests

    Generates WebRecorder WACZ 1.1.1 specification manifests (datapackage.json, datapackage-digest.json, and indexes/index.cdxj) over records and their corresponding compressed .warc.gz archive bytes (warc_gz_bytes), computing exact lowercase SHA-256 hex digests and byte sizes across archive and index payloads.

    export_cdx11

    fn export_cdx11(records : Array[
    WarcRecord
    ], filename? : String, include_header? : Bool) -> String

    Exports records in classic 11-column space-delimited CDX format (N b a m s k r M S V g: SURT, timestamp, URL, MIME, status, digest, redirect, -, length, offset, filename), sorted lexicographically identically to CdxjIndex.

    export_jsonl

    fn export_jsonl(records : Array[
    WarcRecord
    ], options? : JsonlOptions) -> String

    Exports WARC records as newline-delimited RFC 8259 JSON Lines (JSONL), including structured headers, optional SURT/status/MIME/digests, and decoded UTF-8 body text for archival search and LLM corpus pipelines.

    extract_subset

    fn extract_subset(records : Array[
    WarcRecord
    ], filter : ArchiveFilter, include_warcinfo? : Bool) -> Bytes

    Extracts matching WARC records (with warcinfo preserved by default) and re-encodes them into a valid self-contained ISO 28500 WARC byte stream with updated Content-Length and digests.

    filter_records

    Filters parsed WarcRecords according to filter, optionally retaining warcinfo header records.

    matches_filter

    fn matches_filter(record :
    WarcRecord
    , filter : ArchiveFilter) -> Bool

    Evaluates whether a single WarcRecord satisfies all active predicates in filter.

    reassemble_segments

    Reassembles ISO 28500 §9 segmented records (segment 1 + continuation records) back into logical unsegmented records and verifies total lengths and payload digests.

    segment_record

    Splits an oversized WarcRecord into ISO 28500 §9 segmented records (WARC-Segment-Number: 1 origin record plus continuation records), each with payload <= max_segment_bytes.