Provides type validation for arbitrarily defined, extendible JSON-style Schema definitions. Part of the Morpho Design Explorer Project.
Project description
Morpho Typing
This module provides a set of schemas common to the Morpho Design Explorer Server and GA-Search Client.
There are two schemas available as of now:
- MorphoProjectSchema: defines and provides validation for the general structure of a project's schema
- MorphoAssetCollection: defines a set of assets / files that are associated with a schema.
Installation:
pip install morpho_typing
Project Usage:
to validate a project schema definition
schema = MorphoProjectSchema(values=[...])
to validate a record against an existing project schema object
schema.validate_record(record)
to validate an asset collection definition
asset_schema = MorphoAssetCollection(assets=[...])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
morpho_typing-1.4.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file morpho_typing-1.4.0.tar.gz
.
File metadata
- Download URL: morpho_typing-1.4.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc7f911581fb7096f88c893b9c6d18d129b1e0866a6c63c723b325ff07292e9c |
|
MD5 | 37eef31d2c7f995356eafc3ac8510e92 |
|
BLAKE2b-256 | 3b5655fc01ed72405b1f85722fd03dfa5f772986d7bea329481ffc139a0d3c83 |
File details
Details for the file morpho_typing-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: morpho_typing-1.4.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | edfe39fe71a0b4b0e9d5c779ea73301dd6132e03edd9035d514acbb579c940a4 |
|
MD5 | 4a402fba20c1a4a376a3ecc48e0f30dd |
|
BLAKE2b-256 | 72a17f39217aaa5c1745c42f909244518c78953b911ac696905615e3922f5620 |