A package for converting classes with type hints to/from JSON
Project description
jsonype
Usage
See documentation.
Similar tools
- 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).
Development
Prerequisites
-
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
Setup virtual env
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.
Run checks
./check.sh
Run build
./build.sh
Release
./release.sh [#.#.#]
git push [GITHUB-REPO] v[#.#.#]
Documentation
Add new modules/packages
cd docs
sphinx-apidoc -o source ../jsonype/
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jsonype-0.4.0.tar.gz.
File metadata
- Download URL: jsonype-0.4.0.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.0-9-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d6d9f57359d2b9af16a071bc57fbcc4ac0bbdaa2ce2ead5d53bcddff8a88f1e
|
|
| MD5 |
f68bb9ef9e1a3d60ce1e7db794070c87
|
|
| BLAKE2b-256 |
af57f6fba6b30fb45164aca5ce4d674480cc949de7cdd97b8d68ff85e9401689
|
File details
Details for the file jsonype-0.4.0-py3-none-any.whl.
File metadata
- Download URL: jsonype-0.4.0-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.0-9-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b27d9b08e91031332b5378fb433c5fc77270a54081d5fc653d941088905f01a
|
|
| MD5 |
7ab268ac3eaddced3dc8f09f85437eb5
|
|
| BLAKE2b-256 |
8c61c6fcbbbc8d8a4f533ea77726adfe3e8418d97b5ba55d50928e30f27c18f0
|