MailSchema
JSON Schemas and validation tools for MailSchema Registry contributions.
pip install mailschema
python -m mailschema check contribution.json
python -m mailschema schema > contribution.schema.json
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.
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.
These are Registry contribution tools. They do not implement email delivery, authorization or the draft Mail Action Protocol wire format. Package version 0.1.0 is independent of any specification version. MIT licensed.
Release files for mailschema 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mailschema-0.1.0.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mailschema-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.4 kB
Release files / mailschema-0.1.0.tar.gz
| Download URL | mailschema-0.1.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05a641e30bf8b1611c68f8c06f1bc78bea89333e24206d8bec0baa27c399c4d5
|
|
BLAKE2b-256 checksum How to use checksums |
56bd362df848aff86f7053b0c77d117c4500e0536e2c1cdb3dbc48481a3e6eca
|
| 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.0-py3-none-any.whl
| Download URL | mailschema-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5d1507f3819cc44cc1b5339bf5e025a4b4a02ec09ebb49a78a637b6f6555e71
|
|
BLAKE2b-256 checksum How to use checksums |
21aacd4c12671a999af273c857fc57b50e5e520f509b2e8010ab1b9fba211538
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|