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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: jsonype-0.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 13b3739904cfc00eb4a09ed45cb371984a662453f93d4cf3d62d8a7cd0eeb42d
MD5 07ef82ef1e8ce1387426af4b1dd1bc87
BLAKE2b-256 a82af4e252d3ec914a8862c13eab55d8083cfdba9b324fbdde47faac6f0e147d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jsonype-0.3.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 249271b42c7f031f4696dae27876404797cdd6fadd6e938681c56e1ec48d546a
MD5 af6aaf888b5008d0f54e8ba5bc175390
BLAKE2b-256 673f3b3ab76f19dd12a0758636659adef01984d3abf9df5164dd9c4c4ff33dc5

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