compas.data
This package defines the core infrastructure for data serialisation in the COMPAS framework. It provides a base class for data objects, a JSON encoder and decoder, serialisers and deserialisers, and schema validation.
Classes
Abstract base class for all COMPAS data objects. |
|
Data decoder for custom JSON serialization with support for COMPAS data structures and geometric primitives. |
|
Data encoder for custom JSON serialization with support for COMPAS data structures and geometric primitives. |
|
Exception that is raised when the decoder fails at reconstructing an object that has been identified as a COMPAS data object. |
Functions
Find all classes in the COMPAS data model. |
|
Generate a JSON schema for a COMPAS object class. |
|
Generate a JSON schema for a COMPAS object class. |
|
Generate a JSON schema for the data type of a COMPAS object class. |
|
Write a collection of COMPAS object data to a JSON file. |
|
Write a collection of COMPAS objects to a JSON string. |
|
Write a collection of COMPAS objects to a compressed JSON file (using ZIP compression). |
|
Read COMPAS object data from a JSON file. |
|
Read COMPAS object data from a JSON string. |
|
Read COMPAS object data from a compressed JSON file (ZIP). |