See documentation.
- typedload is also a package to "Load and dump json-like data into typed data structures in Python3". It uses a less permissive license.
- Pydantic is a widely used data validation library for Python.
It is often used for converting to and from JSON, but offers much more than that. Unlike in case of
jsonype classes that should be converted from/to JSON need to inherit from a base class (
BaseModel
).
-
Python >= 3.11: Can be installed with pyenv:
pyenv install 3.11
-
Poetry >=1.2: Can be installed with pipx:
pipx install poetry
See Poetry's documentation for alternative installation options, but make sure that poetry plugins can be installed.
-
make for building documentation
poetry self add poetry-setuptools-scm-plugin@latest
poetry install
poetry shell
All commands below assume that they are executed in a corresponding
virtual environment (e.g. in a shell started by poetry shell
) and the
current directory is set to the project's root folder.
./check.sh
./build.sh
./release.sh [#.#.#]
git push [GITHUB-REPO] v[#.#.#]
cd docs
sphinx-apidoc -o source ../jsonype/