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.3.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for morpho_typing-1.3.0.tar.gz
Algorithm Hash digest
SHA256 17ce599743c8818fc07d95fe16df2b61cc90049ca8f45a268e2cc436def539e1
MD5 97c5ea075f7a269568931a7466f9ab1d
BLAKE2b-256 cc586991579ece495ba1bf6bbcad4e9c017641a34e3f884a819ec9426d355bf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for morpho_typing-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27c1b0ab40ead4ae32cb325775f37f48aff7e7ac997c817a33d70558bd1e060c
MD5 8dc20200e96ad4aac9df714e59753e02
BLAKE2b-256 7118bd70dda3405b6b1c6ef4d9c64b4dd15f8c662a7e347e1de1360f703a17b7

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