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 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

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.3.1.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

jsonype-0.3.1-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jsonype-0.3.1.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for jsonype-0.3.1.tar.gz
Algorithm Hash digest
SHA256 804f15a97824e789622625b378e049e880a14c3fb611f814a1439eee9835fc40
MD5 909e5660fdbea6b2e3e338793fdce40e
BLAKE2b-256 1bad1daa836ff4b00f0c7ac279a2b7d706199283feae2589e2b7083f1d36a6c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jsonype-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for jsonype-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22f0b1e2955f53c1494b4e25059e7c26fc5c8c238f6f7d4c3dc5f81be6893ac8
MD5 d3c1f6748990787aa06d163fcbd786d6
BLAKE2b-256 33ec47e8ee4bbf9c906041ffc9c57e05525310367a143ce8d68998ac36f661de

See more details on using hashes here.

Supported by

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