Skip to main content

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 self add poetry-plugin-shell # only required for poetry >= 2
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

jsonype-0.6.1.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jsonype-0.6.1-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file jsonype-0.6.1.tar.gz.

File metadata

  • Download URL: jsonype-0.6.1.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1015-azure

File hashes

Hashes for jsonype-0.6.1.tar.gz
Algorithm Hash digest
SHA256 c81ad2d0ab8ad2d7f6919c62a2ab73ef8d3b68b907cadf6bb4c879a21c9e12f8
MD5 dbfa2840fa7a01edb82d8a501c5be195
BLAKE2b-256 95ea3173f0628d45b62784a4dc506539d04645fedfa87b60e9c2119843350d1b

See more details on using hashes here.

File details

Details for the file jsonype-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: jsonype-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1015-azure

File hashes

Hashes for jsonype-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fc631d92265f3687ad9415a1fc2797962ba73c048b1b3b4b05caaf3e588c70a8
MD5 d474a33b4f9725cb1cf331e54aa4dc9e
BLAKE2b-256 db0b86520b06d2b6ebe1eebe8961d625c10b0778fcec4520e06e4558b140c5c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page