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.

Metadata

Release files for validataclass 0.13.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for validataclass 0.13.1
File Size Uploaded
validataclass-0.13.1.tar.gz 215.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for validataclass 0.13.1
File Interpreter ABI Platform
validataclass-0.13.1-py3-none-any.whl Python 3 none any Details

Total release size: 333.9 kB

Release files / validataclass-0.13.1.tar.gz

Download URL validataclass-0.13.1.tar.gz
Size 215.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6cdd9798f46bd02e443a167ef4283ef7205694fa7fb77fff42ea8d62b010c243
BLAKE2b-256 checksum
How to use checksums
81154e65cc75e170bf9ca784e4073d24a6023d66e65922b47b0836ea6f0707be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.13

Release files / validataclass-0.13.1-py3-none-any.whl

Download URL validataclass-0.13.1-py3-none-any.whl
Size 118.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ad22e7bed1f49b11d97b8774268e4f74f34370c2fce47e958e35a586643739c
BLAKE2b-256 checksum
How to use checksums
2d673dec5f52e496bbe9c41f64fd33f1d08abcdb2488ecec203487ea4017b542
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.13

Release history Release notifications | RSS feed

This release

0.13.1 This release

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page