aloeschema
Getting Started
See quickstart.ipynb for more detailed usage examples
Installation:
pip install aloeschema
Initialization: Loads schema.org and a validator
from aloeschema import load_schema_org
from aloeschema.validator import AloeSchemaValidator
schema_org = load_schema_org()
schema_validator = AloeSchemaValidator(schema_org)
Validating schema.org
- Input case is ignored by default (
ignore_case=True) - Detailed errors raised by default (
quiet=False)- Set
quiet=Trueto return a truthy result instead
- Set
from aloeschema.validator import AloeSchemaValidator
from aloeschema import load_schema_org
schema_org = load_schema_org()
schema_validator = AloeSchemaValidator(schema_org)
schema_validator.Validate(subject_type_name="person", property_type_name="potentialaction", object_type_name="planaction")
schema_validator._getType("schedule")
Extending Schema.org With Custom Types, Properties, and Enumerations
use registerCustomType, registerCustomProperty, registerCustomEnumeration, and registerCustomEnumerationValue to extend Schema.org
from aloeschema.validator import AloeSchemaValidator
from aloeschema import load_schema_org, registerCustomProperty, registerCustomType, registerCustomEnumeration, registerCustomEnumerationValue
schema_org = load_schema_org()
schema_org = registerCustomType(schema_org, name="User", parent="Person", properties=[])
schema_org = registerCustomProperty(schema_org, name="userName", domain=["Person", "User"], range=["Text"])
schema_org = registerCustomEnumeration(schema_org, name="TaskStatus")
schema_org = registerCustomEnumerationValue(schema_org, enum_type="TaskStatus", value="TaskStatusActive")
schema_org = registerCustomProperty(schema_org, name="taskStatus", domain=["User"], range=["TaskStatus"])
schema_validator = AloeSchemaValidator(schema_org)
schema_validator.IsEnumerationType("TaskStatus") # True
schema_validator.EnumerationValueIsOfType("TaskStatus", "TaskStatusActive") # True
schema_validator.Validate(subject_type_name="User", property_type_name="taskStatus", enumeration_value_name="TaskStatusActive") # True
Metadata
Release files for aloeschema 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aloeschema-0.3.3.tar.gz | 278.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aloeschema-0.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 561.9 kB
Release files / aloeschema-0.3.3.tar.gz
| Download URL | aloeschema-0.3.3.tar.gz |
|---|---|
| Size | 278.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0db1f341d7628d2332716dc642e08b8a81be5d0acf35a421f023db6e31bca712
|
|
BLAKE2b-256 checksum How to use checksums |
0e32c8e1132dda01e94b05b23df6c52dec54252d53ff38a6cc01ec804ccafd43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logRelease files / aloeschema-0.3.3-py3-none-any.whl
| Download URL | aloeschema-0.3.3-py3-none-any.whl |
|---|---|
| Size | 283.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9274482b959e816a343e330dd62dcd963a9d8b5e55b1cec3c917f8653f5d7456
|
|
BLAKE2b-256 checksum How to use checksums |
58f96c785f8d860d6db68c23ee7bf90540a147549ab94d96860456103799f835
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency log