Pydantic schema for TissUUmaps
Project description
TissUUmaps-schema
Pydantic schema for TissUUmaps
Requirements
Python 3.9 or later
Installation
Use the package manager pip to install tissuumaps-schema:
pip install tissuumaps-schema
Usage
To list all available $VERSION
values:
tissuumaps-schema versions
To list all available $MODEL
values for the specified $VERSION
:
tissuumaps-schema models --version $VERSION
To generate a JSON Schema for the specified $VERSION
and $MODEL
:
tissuumaps-schema generate --version $VERSION $MODEL
To upgrade an existing instance of $MODEL
to the specified $VERSION
:
tissuumaps-schema upgrade --to-version $VERSION $MODEL myinstance.json
To validate an existing instance of $MODEL
against the specified $VERSION
:
tissuumaps-schema validate --expect-version $VERSION $MODEL myinstance.json
Support
For each $VERSION
and $MODEL
(lower case), a JSON Schema is hosted on:
https://tissuumaps.github.io/TissUUmaps-schema/$VERSION/$MODEL.json
The JSON Schema of each $VERSION
and $MODEL
(lower case) is documented on:
https://tissuumaps.github.io/TissUUmaps-schema/$VERSION/$MODEL.html
If you find a bug, please raise an issue.
Contributing
Pull requests are welcome.
For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Versioning
Both the schema and the associated Python package adhere to Semantic Versioning:
- Each file adhering to the schema contains the MAJOR.MINOR schema version it was created with/for (see
RootSchemaBaseModel.schema_version
and<schema_module>.VERSION
). - Briefly, changes in MAJOR indicate breaking changes necessitating file upgrade/conversion, changes in MINOR indicate non-breaking feature additions, and changes in PATCH indicate bugfixes in the Python package.
- The MAJOR.MINOR Python package version equals the version of the latest schema supported by the package. Each TissUUmaps release pins the MAJOR.MINOR version of the tissuumaps-schema package to indicate the supported schema version.
- For each MAJOR version, the Python package contains a dedicated module with the latest MINOR subversion of the schema. Upgrade paths exist from one MAJOR version (latest MINOR subversion) to the next MAJOR version (latest MINOR subversion).
Changelog
Authors
SciLifeLab BioImage Informatics Facility (BIIF)
License
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
Built Distribution
File details
Details for the file tissuumaps-schema-1.3.0.tar.gz
.
File metadata
- Download URL: tissuumaps-schema-1.3.0.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b71c06a0c1be8151aa5dee00be1150856cd4453821f3e2d5d85098ee3bbacbf8 |
|
MD5 | dd3ac283e6693afd3b7cdf7926505f71 |
|
BLAKE2b-256 | 569bd75dc9939f7674ded943629dcc6766ac915ff881fe6ab9b2d7a53d2f9165 |
File details
Details for the file tissuumaps_schema-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: tissuumaps_schema-1.3.0-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9efd09ecf7264597049ac058d2bcc22516290b5ba14a6a7212a2567c41862074 |
|
MD5 | bef78efc15b3a508c79ff330cf7a4723 |
|
BLAKE2b-256 | 0dc76156cf4e93674f6dee620f814fc7b73cf77e32c65660c89319422bd4b491 |