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.3.0.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file morpho_typing-1.3.0.tar.gz
.
File metadata
- Download URL: morpho_typing-1.3.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17ce599743c8818fc07d95fe16df2b61cc90049ca8f45a268e2cc436def539e1 |
|
MD5 | 97c5ea075f7a269568931a7466f9ab1d |
|
BLAKE2b-256 | cc586991579ece495ba1bf6bbcad4e9c017641a34e3f884a819ec9426d355bf9 |
File details
Details for the file morpho_typing-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: morpho_typing-1.3.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 | 27c1b0ab40ead4ae32cb325775f37f48aff7e7ac997c817a33d70558bd1e060c |
|
MD5 | 8dc20200e96ad4aac9df714e59753e02 |
|
BLAKE2b-256 | 7118bd70dda3405b6b1c6ef4d9c64b4dd15f8c662a7e347e1de1360f703a17b7 |