Pydantic data models for OS2mo
Project description
MoLoRa Data Models
RAModels - MoLoRa data validation models powered by pydantic.
Versioning
This project uses Semantic Versioning with the following strategy:
- MAJOR: Incompatible changes to existing data models
- MINOR: Backwards compatible updates to existing data models OR new models added
- PATCH: Backwards compatible bug fixes
Authors
Magenta ApS https://magenta.dk
License
This project uses REUSE for licensing. All licenses can be found in the LICENSES folder of the project.
Development
Prerequisites
Getting Started
-
Clone the repository:
git clone git@git.magenta.dk:rammearkitektur/ra-data-models.git
-
Install all dependencies:
poetry install
-
Set up pre-commit:
pre-commit install
Running the tests
You use poetry
and pytest
to run the tests:
poetry run pytest
You can also run specific files
poetry run pytest tests/<test_folder>/<test_file.py>
and even use filtering with -k
poetry run pytest -k "Manager"
You can use the flags -vx
where v
prints the test & x
makes the test stop if any tests fails (Verbose, X-fail)
Pre-commit usage
Pre-commit must either be used via your virtual environment or globally.
If you want to pre-commit globally, the following extra dependencies are needed:
pip install mypy pydantic
Models
LoRa
LoRa
implements the OIO standard version 1.1. The standard with
specification
Project details
Release history Release notifications | RSS feed
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
Hashes for ramodels-36.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b2c75d426bed5c7cb206a6cc3e26b46bb858d54c04134c7e6d583c1ce7cc02d |
|
MD5 | c2cab6b4431dfd181d1e3839d6215806 |
|
BLAKE2b-256 | 0fecc25bedc56feeb18b8a6fda19157d0da25bfe582e87e457a075bbe6915a39 |