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.0.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.0-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jsonype-0.6.0.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-1014-azure

File hashes

Hashes for jsonype-0.6.0.tar.gz
Algorithm Hash digest
SHA256 0ba6266dd51396045adc1b03f24c8fcefdc4cf7d1e5f40ecb78268ba50372b93
MD5 7ab478cf142b9e91d3b9653e61c67d44
BLAKE2b-256 669362a99ebdb288567d6593a1ab171664db0554f904c042b7ee3019590b2a67

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for jsonype-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36fbe32ae26f88567b034a6b2f870f112488313eb8bfa177364764c6153bf9d5
MD5 cdd4bea87db672277b64c8e2c214bd46
BLAKE2b-256 915acf044a7e6335d6f64507d2f2ce480b65d8d89d4a852f43307a2839653e28

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