Metadata-Version: 2.3
Name: morpho-typing
Version: 1.5.0
Summary: Provides type validation for arbitrarily defined, extendible JSON-style Schema definitions. Part of the Morpho Design Explorer Project.
Project-URL: Homepage, https://github.com/MorphoDesignExplorer/morpho-typing/
Author-email: Krishna Sivakumar <krishnasivaprogrammer@gmail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Requires-Dist: pydantic==2.6.4
Description-Content-Type: text/markdown

# 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:
```shell
pip install morpho_typing
```

## Project Usage:

##### to validate a project schema definition
```python
schema = MorphoProjectSchema(values=[...])
```

##### to validate a record against an existing project schema object
```python
schema.validate_record(record)
```

##### to validate an asset collection definition
```python
asset_schema = MorphoAssetCollection(assets=[...])
```


