Skip to main content

Local draft schema and validation helpers for EML-style evidence records.

Project description

eml-records

eml-records is a local draft package candidate for validating EML-style JSON records used in the MachLib corpus.

This package is a local draft only. It is not published to PyPI. PyPI name availability has not been checked. No PyPI token handling has occurred. This draft is not release-ready, not upload-ready, and not a public theorem/proof/open-problem claim.

Local Use

Install from source only in a local development environment:

python -m pip install -e package_candidates/eml_records

Or run with PYTHONPATH:

PYTHONPATH=package_candidates/eml_records/src \
  python -m eml_records.cli validate path/to/records --strict

CLI Examples

eml-records validate corpus/eml_function_classes_draft --json
eml-records validate corpus/eml_stochastic_hybrid_draft --family stochastic-hybrid --strict
eml-records validate record.json --family function-class
eml-records validate records/ --include "*.json" --exclude-dir node_modules

JSON output includes:

{
  "scanned_file_count": 1,
  "record_count": 2,
  "valid_count": 2,
  "warning_count": 0,
  "failure_count": 0,
  "family_counts": {
    "FUNCTION_CLASS": 1,
    "UNKNOWN": 1
  }
}

Exit code behavior:

  • 0 when no failures are present.
  • nonzero in --strict mode when failures are present.
  • non-strict mode may return 0 while still reporting warnings/failures for exploratory local review.

Scope

The draft validates required fields, false guardrail booleans, allowed draft statuses, not_claimed boundary concepts, JSON lists and nested lists, and simple record-family-specific shape checks.

Supported families:

  • Lane seed records
  • Function-class records
  • Stochastic/hybrid records
  • Generic evidence records
  • Unknown records

Family markers:

  • lane or draft_eml_seed: lane seed
  • function_class: function-class record
  • process_class: stochastic/hybrid record
  • evidence_type or validation_trace: evidence record
  • no marker: unknown

Limitations

This is a schema and record-shape helper. It is not a theorem prover, not a proof validator, not a release gate by itself, and not a publication approval tool. It does not execute MachLib harnesses, check PyPI availability, create release artifacts, or change Forge compiler behavior.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eml_records-0.0.0.dev0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eml_records-0.0.0.dev0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file eml_records-0.0.0.dev0.tar.gz.

File metadata

  • Download URL: eml_records-0.0.0.dev0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for eml_records-0.0.0.dev0.tar.gz
Algorithm Hash digest
SHA256 c571a0314ec8385e58f9ed838338e2b269213b54fce9fd2e857d1f6bc5b92290
MD5 5dd777554cce4fc00bc1dfee9406bfa3
BLAKE2b-256 68617043509624dc9c364f6faeac5cc214d9647c17422c8f332a4aa45870c354

See more details on using hashes here.

File details

Details for the file eml_records-0.0.0.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for eml_records-0.0.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f231d3ee3032b0d23d5d16fa753c543fc69c15ec0a5b9fbca6d8ac4893efff1
MD5 e3bf261360020cceac839f5ad120b27c
BLAKE2b-256 6391bd3c67f1f07aa04f20d86ac9a4b3862abce88464ca3e84cd7a64f88f4259

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page