validataclass
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| validataclass-0.13.1.tar.gz | 215.5 kB | Without provenance | Details for validataclass-0.13.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| validataclass-0.13.1-py3-none-any.whl | Python 3 | none | any | Details for validataclass-0.13.1-py3-none-any.whl |
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
|
Security for validataclass 0.13.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.