Skip to content
mat3ra

mat3ra

Pypi •[email protected] • November 26, 2026

Essential Source of Schemas and Examples (ESSE) contains data format definitions (schemas) and examples for common entities used in digital materials science (see refs. 1 , 2 below).

Although the schemas are used to facilitate the operations of mat3ra.com , they are designed to be generic and can be used in other applications. The open-source packages developed by Mat3ra.com use the schemas available in this repository.

The latest variants of schemas and examples are available at schemas.mat3ra.com , which has three surfaces:

Documentation — how ESSE is put together and why: the schema layering, entity anatomy, categorization, conventions and the build pipeline. Start here if you are new.

Explorer — a file browser over every resolved schema and example.

Ontology — an interactive map of the ontology: every entity type and every relationship the schemas declare between them ( extends , contains , variant ), laid out by architectural layer — primitives at the centre, root entities around them, catalogues on the rim. for a schema, fly to it, and follow what it extends, contains and is used by.

The map is built from graph.json , an extracted reference graph that is also published at schemas.mat3ra.com/graph.json and doubles as a lint over the corpus.

ESSE has a dual-nature as both a Python and a Node.js package.

ESSE is compatible with Python 3.8+.

ESSE contains separate but equivalent interfaces for Python and Javascript. The package provides ESSE class that can be initialized and used as below.

2.2. Usage in Node/JS/TS

3. Directory Structure

ESSE contains 3 main directories, schema , example and src outlined below, plus docs (documentation sources) and plan (design documents).

The schema directory contains the schemas specifying the rules to structure data. A set of core schemas, outlined below, are defined to facilitate the schema modularity.

Primitive directory contains a set of custom primitives that extends default standard primitive types allowed by schema, such as String and Number. Primitives are solely defined by the default primitives and can not be re-constructed from each other.

Abstract directory contains unit-less schemas that are constructed from default and custom primitives.

Reusable directory contains the schemas that are widely used in other schemas to avoid duplication, constructed from the abstract and primitive schemas.

Reference directory contains the schemas defining the rules to structure the references to data sources.

This directory contains the examples formed according to the schemas and implements the same directory structure as the schema directory.

This directory contains Python and Javascript interfaces implementing the functionality to access and validate schemas and examples.

Markdown sources for the concept documentation , rendered to HTML at deploy time. Pages may embed generated fragments ( ) that are expanded from the entity graph, so counts and relationship listings cannot drift from the schemas.

Design documents, filed by status ( upcoming/ , review/ , implemented/ , context/ ) per the convention in mat3ra/agents . See plan/README.md .

4.1. Generative vs Non-generative keys

Generative keys are the fields which allow for user input prior to calculation of the final property values. A flag is included in the schema on the fields in property schemas : isGenerative:true marks which fields to use as subschemas in the generation of a user input schema. On properties allowing user inputs, additional fields may be tagged, as in the file_content property

The schemas and examples are stored as JSON assets. The JSON assets are used to generate JS/TS and PY modules that can be used to access the schemas and examples in the corresponding runtimes. The modules are generated using the build_schemas.py and build_schema.js scripts. The JS modules are generated during the transpilation step of the npm. The PY modules are generated during the development and distributed within the pip package.

The following outlines the development process workflow:

Setup: clone the repository and install the dependencies for both JS and PY (as explained below).

Edit code and commit changes.

Pre commit is used to regenerate the modules.

Push the changes to GitHub.

GH workflow is used to generate the fully resolved file (without "$ref"s and "$allOf" etc.) and examples, render the documentation and the ontology map, and publish them to schemas.mat3ra.com . The site is assembled in a gitignored site/ staging directory; internal links are checked before it deploys.

Publish the new version of the package to PyPI and npm.

The pre-commit is using both JS and PY runtime(s) to regenerate the schemas and examples.

NOTE: The PY and JS modules are built from the same JSON sources, but using different runtimes (scripts) and thus may still be different. Only for JS the fully resolved schemas (with merged "$allOf") are created. They are used for the docs website.

5.1. Development in Python

When developing in python the following should be taken into account:

The modules containing the schemas and examples are generated using the build-schemas.py script. There is a setup for it to be run automatically on every commit, but it is recommended to run it manually before committing to make sure that the changes are reflected in the modules. This can be done with pre-commit run --all-files . The pre-commit package can be installed with pip install pre-commit . To rebuild schemas manually, run (note -e in install): python -m venv .venv source .venv/bin/activate pip install -e ".[tests]" pip install pre-commit pre-commit --install git config --unset-all core.hooksPath python build_schemas.py

The modules containing the schemas and examples are generated using the build-schemas.py script. There is a setup for it to be run automatically on every commit, but it is recommended to run it manually before committing to make sure that the changes are reflected in the modules. This can be done with pre-commit run --all-files . The pre-commit package can be installed with pip install pre-commit . To rebuild schemas manually, run (note -e in install):

Tests can be run using the following commands: python -m venv .venv source .venv/bin/activate pip install ".[tests]" python -m unittest discover --verbose --catch --start-directory tests/py/esse/

Tests can be run using the following commands:

5.2. Development in Javascript/Typescript

See package.json for the list of available npm commands. The JS modules are generated using the build_schema.js script. There is a setup for it to be run automatically when the package is installed (see "transpile" directive). To rebuild schemas manually, run:

5.3. General Dev Suggestions

This repository is an open-source work-in-progress and we welcome contributions. We suggest forking this repository and introducing the adjustments there, the changes in the fork can further be considered for merging into this repository as it is commonly done on GitHub (see 3 below).

Use unique IDs for schemas

Do not use circular references in the schemas, instead leave the type as object and add explanation to description.

The schema lint ( npm run lint-entity-graph , also part of npm test ) enforces both of the above along with $id conventions, JSON-pointer targets and manifest references. Contributing a schema walks through adding one end to end.

Data-centric online ecosystem for digital materials science ↩

Data-centric online ecosystem for digital materials science ↩

CateCom: A Practical Data-Centric Approach to Categorization of Computational Models ↩

CateCom: A Practical Data-Centric Approach to Categorization of Computational Models ↩

GitHub Standard Fork & Pull Request Workflow ↩

GitHub Standard Fork & Pull Request Workflow ↩

Release files for mat3ra-esse 2026.11.26.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation .

Source distribution (sdist)

Built distribution (wheel)

Total release size: 1.9 MB

Release files / mat3ra_esse-2026.11.26.post1.tar.gz

Release files / mat3ra_esse-2026.11.26.post1-py3-none-any.whl

Security for mat3ra-esse 2026.11.26.post1

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

2026.11.26.post1 This release

Nov 26, 2026 2 release files No provenance

Nov 26, 2026 2 release files No provenance

Nov 25, 2026 2 release files No provenance

Nov 1, 2026 2 release files No provenance

Oct 31, 2026 2 release files No provenance

Oct 31, 2026 2 release files No provenance

Oct 25, 2026 2 release files No provenance

Oct 8, 2026 2 release files No provenance

Sep 6, 2026 2 release files No provenance

Sep 6, 2026 2 release files No provenance

Sep 5, 2026 2 release files No provenance

Aug 31, 2026 2 release files No provenance

Aug 27, 2026 2 release files No provenance

Aug 25, 2026 2 release files No provenance

Aug 25, 2026 2 release files No provenance

Aug 25, 2026 2 release files No provenance

Aug 18, 2026 2 release files No provenance

Aug 18, 2026 2 release files No provenance

Aug 18, 2026 2 release files No provenance

Aug 17, 2026 2 release files No provenance

Aug 13, 2026 2 release files No provenance

Jul 21, 2026 2 release files No provenance

Jul 14, 2026 2 release files No provenance

Jul 13, 2026 2 release files No provenance

Jun 30, 2026 2 release files No provenance

Jun 16, 2026 2 release files No provenance

Jun 12, 2026 2 release files No provenance

Jun 5, 2026 2 release files No provenance

May 30, 2026 2 release files No provenance

May 28, 2026 2 release files No provenance

May 27, 2026 2 release files No provenance

May 18, 2026 2 release files No provenance

May 18, 2026 2 release files No provenance

May 18, 2026 2 release files No provenance

May 18, 2026 2 release files No provenance

Apr 29, 2026 2 release files No provenance

Apr 4, 2026 2 release files No provenance

Mar 29, 2026 2 release files No provenance

Mar 25, 2026 2 release files No provenance

Mar 25, 2026 2 release files No provenance

Mar 7, 2026 2 release files No provenance

Feb 27, 2026 2 release files No provenance

Feb 25, 2026 2 release files No provenance

Jan 23, 2026 2 release files No provenance

Jan 15, 2026 2 release files No provenance

Dec 28, 2025 2 release files No provenance

Dec 16, 2025 2 release files No provenance

Dec 10, 2025 2 release files No provenance

Nov 26, 2025 2 release files No provenance

Nov 25, 2025 2 release files No provenance

Nov 25, 2025 2 release files No provenance

Nov 19, 2025 2 release files No provenance

Nov 7, 2025 2 release files No provenance

Oct 8, 2025 2 release files No provenance

Aug 20, 2025 2 release files No provenance

Aug 14, 2025 2 release files No provenance

Aug 9, 2025 2 release files No provenance

Aug 8, 2025 2 release files No provenance

Aug 6, 2025 2 release files No provenance

Aug 6, 2025 2 release files No provenance

Jul 29, 2025 2 release files No provenance

Jul 15, 2025 2 release files No provenance

Jul 1, 2025 2 release files No provenance

Jun 30, 2025 2 release files No provenance

Jun 14, 2025 2 release files No provenance

Jun 5, 2025 2 release files No provenance

May 17, 2025 2 release files No provenance

May 17, 2025 2 release files No provenance

May 17, 2025 2 release files No provenance

May 16, 2025 2 release files No provenance

May 16, 2025 2 release files No provenance

May 13, 2025 2 release files No provenance

Apr 22, 2025 2 release files No provenance

Apr 17, 2025 2 release files No provenance

Apr 15, 2025 2 release files No provenance

Apr 11, 2025 2 release files No provenance

Apr 3, 2025 2 release files No provenance

Jan 27, 2025 2 release files No provenance

Dec 19, 2024 2 release files No provenance

Dec 19, 2024 2 release files No provenance

Jun 4, 2024 2 release files No provenance

Jun 4, 2024 2 release files No provenance

Apr 19, 2024 2 release files No provenance

Apr 19, 2024 2 release files No provenance

Apr 9, 2024 2 release files No provenance

Apr 8, 2024 2 release files No provenance

Apr 8, 2024 2 release files No provenance

Apr 8, 2024 2 release files No provenance

Apr 8, 2024 2 release files No provenance

Apr 8, 2024 2 release files No provenance

Apr 8, 2024 2 release files No provenance

Apr 8, 2024 2 release files No provenance

Mar 25, 2024 2 release files No provenance

Mar 25, 2024 2 release files No provenance

Mar 25, 2024 1 release file No provenance

Mar 25, 2024 2 release files No provenance

Mar 25, 2024 2 release files No provenance

Mar 25, 2024 2 release files No provenance

Mar 25, 2024 2 release files No provenance

Mar 22, 2024 2 release files No provenance

Mar 20, 2024 2 release files No provenance

Mar 19, 2024 2 release files No provenance

Mar 14, 2024 2 release files No provenance

Feb 29, 2024 2 release files No provenance

Feb 21, 2024 2 release files No provenance

Feb 19, 2024 2 release files No provenance

Feb 19, 2024 2 release files No provenance

Feb 6, 2024 2 release files No provenance

Jan 31, 2024 2 release files No provenance

Jan 26, 2024 2 release files No provenance

Jan 26, 2024 2 release files No provenance

Jan 25, 2024 2 release files No provenance

Jan 25, 2024 2 release files No provenance

Dec 25, 2023 2 release files No provenance

Dec 25, 2023 2 release files No provenance

Dec 25, 2023 2 release files No provenance

Extracted Entities

Platforms (2)

Tools (2)