MailSchema
JSON Schemas and validation tools for Mail Action Protocol 0.1 and MailSchema Registry contributions.
pip install mailschema
python -m mailschema check contribution.json
python -m mailschema schema > contribution.schema.json
python -m mailschema check description.json --map
python -m mailschema check request.json --content-review
from mailschema import contribution_errors, validate_contribution, get_contribution_schema
errors = contribution_errors(candidate)
validate_contribution(candidate) # Raises ValueError for invalid input.
schema = get_contribution_schema() # Independent copy, JSON Schema Draft 2020-12.
from mailschema import validate_map_document, validate_content_review_request
validate_map_document(description)
validate_content_review_request(request)
validate_record, record_errors and get_record_schema handle expanded Registry records. Pass --record to either CLI command for the corresponding record format. The CLI accepts files up to 256 KiB and never uploads or changes them. Python 3.10 or newer is required.
The package validates structure, required fields and URI formats using the established jsonschema library. It does not check a live Registry, resolve amendment history, verify contributor identity or certify implementations. Submit valid files through the project's contribution review process.
The package validates MAP documents; it does not send email, establish endpoint trust or grant service authorization. Package version 0.2.0 is independent of the MAP profile version. MIT licensed.
Metadata
Release files for mailschema 0.1.1
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.1.tar.gz | 9.8 kB | Without provenance | Details for mailschema-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mailschema-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for mailschema-0.1.1-py3-none-any.whl |
Total release size: 19.2 kB
Release files / mailschema-0.1.1.tar.gz
| Download URL | mailschema-0.1.1.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d425c919a5b961fff9a0906cd8bfbadf76ea5af58f1b03bb0e34ddf435ec6fa9
|
|
BLAKE2b-256 checksum How to use checksums |
7cb9974d25cad6a3501f7dd560dda4e40ce322bda9eca00e300b67bcefe6642f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / mailschema-0.1.1-py3-none-any.whl
| Download URL | mailschema-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
429cad472462520c334d0ce647df5e7d7d2b5fa1299972c8706c10b5787ca40c
|
|
BLAKE2b-256 checksum How to use checksums |
d4f920eeb56ef5a1b7ce5b1bb19bc018b9e08029be69f8bc785e9bf150a64397
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for mailschema 0.1.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.