Skip to main content

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:

  1. MorphoProjectSchema: defines and provides validation for the general structure of a project's schema
  2. 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


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)

Uploaded Source

Built Distribution

morpho_typing-1.4.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for morpho_typing-1.4.0.tar.gz
Algorithm Hash digest
SHA256 bc7f911581fb7096f88c893b9c6d18d129b1e0866a6c63c723b325ff07292e9c
MD5 37eef31d2c7f995356eafc3ac8510e92
BLAKE2b-256 3b5655fc01ed72405b1f85722fd03dfa5f772986d7bea329481ffc139a0d3c83

See more details on using hashes here.

File details

Details for the file morpho_typing-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for morpho_typing-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 edfe39fe71a0b4b0e9d5c779ea73301dd6132e03edd9035d514acbb579c940a4
MD5 4a402fba20c1a4a376a3ecc48e0f30dd
BLAKE2b-256 72a17f39217aaa5c1745c42f909244518c78953b911ac696905615e3922f5620

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page