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.5.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file morpho_typing-1.5.0.tar.gz
.
File metadata
- Download URL: morpho_typing-1.5.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 | 6ef98b114bc73f2e267a3e06889eee906ec5e0f7ae1c07ae2cfb1f27d5755f44 |
|
MD5 | 68d5440f512c0a82d9ba752345a43023 |
|
BLAKE2b-256 | a55e77e92949ef64f8f04c3291178d4171321ef5134079325108f2d302761774 |
File details
Details for the file morpho_typing-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: morpho_typing-1.5.0-py3-none-any.whl
- Upload date:
- Size: 4.1 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 | 2d5f749a2516ee0c0553d1576ba4bd06b1f9da7e8960dcd93b3974c319dbaa72 |
|
MD5 | 64e7ea9709b04c2b5eb9bb8b56eb80f8 |
|
BLAKE2b-256 | f3fac24629129ed8fe36f4618b8216351b1188949b4e447dfb48bb5eb6f8299e |