MailSchema for Python
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.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mailschema-0.1.4.tar.gz | 14.3 kB | Without provenance | Details for mailschema-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mailschema-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for mailschema-0.1.4-py3-none-any.whl |
Total release size: 27.9 kB
Release files / mailschema-0.1.4.tar.gz
| Download URL | mailschema-0.1.4.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5067ed47b762b01233952b88a21fbf477f863c4f80baa392bceb3f52cba1c320
|
|
BLAKE2b-256 checksum How to use checksums |
5e68c7bf712dae8d5d9a6e5df9634a1171289291bb76a96a30aba451e23fa9f0
|
| 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.1.4-py3-none-any.whl
| Download URL | mailschema-0.1.4-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46543b63a81399938c214b13718804057facf047cfdb2a35d762a93e0061fe28
|
|
BLAKE2b-256 checksum How to use checksums |
e5eb1f9aa06557c9a7e7d02518b64079ebe68c4da99124286ff1073852c400bc
|
| 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.1.4
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.