Skip to main content

MailSchema for Python

PyPI CI

The Mail Action Protocol 0.2 core artifacts, and Draft 2020-12 validation of MailSchema Registry contributions, with no network requests.

Specification · Registry · Tools · Source

Install

pip install mailschema

Python 3.10 or newer is required.

MAP 0.2 core artifacts

from mailschema import MAP_PROFILE, get_contract_format_schema, get_forms_schema, get_map_context, get_map_schema

Each returns a fresh copy of the file the profile record binds by SHA-256. Type contracts are not bundled: a client obtains them from the Registry catalogue by digest. Processing MAP messages is outside this package; see the profile.

Registry data

from mailschema import contribution_errors, validate_contribution

errors = contribution_errors(candidate)
validate_contribution(candidate)  # Raises ValueError for invalid input.

validate_record, record_errors and get_record_schema handle expanded Registry records.

python -m mailschema check contribution.json
python -m mailschema check record.json --record
python -m mailschema schema --map

Trust boundary

A valid document is structured input. Validation does not authenticate a service, grant authority or establish product conformance. The CLI reads one local file of at most 256 KiB and does not upload or modify it. Package versions and MAP profile versions advance independently. MIT licensed.

Metadata

Release files for mailschema 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mailschema 0.2.1
File Size Uploaded Provenance Actions
mailschema-0.2.1.tar.gz 14.3 kB Without provenance Details for mailschema-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mailschema 0.2.1
File Interpreter ABI Platform Actions
mailschema-0.2.1-py3-none-any.whl Python 3 none any Details for mailschema-0.2.1-py3-none-any.whl

Total release size: 27.9 kB

Release files / mailschema-0.2.1.tar.gz

Download URL mailschema-0.2.1.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e976fad1ffba27eb02d44e8dbb6a18506eeddc693802b1d18786f6fd244afed6
BLAKE2b-256 checksum
How to use checksums
4a1faee23e8182b579a61f3afd13cc83f14d0d394234451f6833c1ce34dab424
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / mailschema-0.2.1-py3-none-any.whl

Download URL mailschema-0.2.1-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dad9d8461ada65d618a5c5076f924ffcf04612512f97b947024f4aca833a4a30
BLAKE2b-256 checksum
How to use checksums
aaeee496dd1056d75a343527afc25dd5e5d6d6efc8ddd92ee3f98e8b06ad0dda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for mailschema 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page