Skip to main content

validataclass

Unit tests

Python library for input validation designed for (but not restricted to) JSON-based APIs, neatly integrating with dataclasses.

Status: Beta.

Installation

validataclass is available on PyPI.

To install it using pip, just run:

pip install validataclass

If you add the package to your dependencies, it is recommended to use compatible release version specifiers to make sure you always get the latest version of the library but without running into breaking changes:

pip install validataclass~=0.12.0

However, keep in mind that the library still is in its beta phase (as indicated by the major version of 0). There can and will be smaller breaking changes between 0.x minor versions, but we will try to keep them at a minimum and save the big breaking changes for the release of version 1.0.0.

Usage

See docs/ for documentation on how to use this library and for examples.

(Note: The documentation is mostly done now, but still a work in progress.)

Development

Virtual environment

To setup a virtualenv for development of the library, run make venv.

Alternatively you can manually run the following commands (which do the same as the make target):

$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ pip install -e .

Running unit tests

Unit tests can be run using make tox or by directly executing tox.

For this to work you need to either be inside the virtualenv (see above) or to have tox installed in your system locally.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

validataclass-0.13.1.tar.gz (215.5 kB view details)

Uploaded Source

Built Distribution

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

validataclass-0.13.1-py3-none-any.whl (118.4 kB view details)

Uploaded Python 3

File details

Details for the file validataclass-0.13.1.tar.gz.

File metadata

  • Download URL: validataclass-0.13.1.tar.gz
  • Upload date:
  • Size: 215.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for validataclass-0.13.1.tar.gz
Algorithm Hash digest
SHA256 6cdd9798f46bd02e443a167ef4283ef7205694fa7fb77fff42ea8d62b010c243
MD5 a2ad9a1ed183e8778ad87abccb3b9afd
BLAKE2b-256 81154e65cc75e170bf9ca784e4073d24a6023d66e65922b47b0836ea6f0707be

See more details on using hashes here.

File details

Details for the file validataclass-0.13.1-py3-none-any.whl.

File metadata

  • Download URL: validataclass-0.13.1-py3-none-any.whl
  • Upload date:
  • Size: 118.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for validataclass-0.13.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ad22e7bed1f49b11d97b8774268e4f74f34370c2fce47e958e35a586643739c
MD5 ff40c7fc6972162a3dd85f515e9713be
BLAKE2b-256 2d673dec5f52e496bbe9c41f64fd33f1d08abcdb2488ecec203487ea4017b542

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.13.1 This release

2 files

0.13.0

2 files

0.12.0

2 files

0.11.0

2 files

0.10.1

2 files

0.10.0

2 files

0.9.0

2 files

0.8.1

2 files

0.8.0

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

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