Tiny validation library for Python
Project description
lilVali
A small Python 3.12 validation experiment for playing with PEP 695.
Install
cd lilvali
Requirements
Currently optional except for demo/dw
.
pip install -r requirements.txt
Installing
# For development:
pip install -e .
# otherwise:
pip install .
Usage
After installing:
# (Does nothing right now.)
lilvali
Demos
# You may also want to try the demo:
python demo/basic
python demo/dw # reqires dataclass_wizard
Testing
LILVALI_DEBUG=True ./tests/tests.sh
Running tests with coverage
.........................
----------------------------------------------------------------------
Ran 25 tests in 0.006s
OK
Name Stmts Miss Cover Missing
------------------------------------------------------------
lilvali/__init__.py 2 0 100%
lilvali/binding.py 167 0 100%
lilvali/errors.py 6 0 100%
lilvali/validate.py 80 0 100%
tests/test_tiny_validate.py 195 0 100%
tests/test_validate_types.py 124 0 100%
------------------------------------------------------------
TOTAL 574 0 100%
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
lilvali-0.1.0.tar.gz
(11.4 kB
view details)
Built Distribution
lilvali-0.1.0-py3-none-any.whl
(13.7 kB
view details)
File details
Details for the file lilvali-0.1.0.tar.gz
.
File metadata
- Download URL: lilvali-0.1.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e24ec46c9e4a15a3329650720a3611e5238d8d2ac81020d37ffe1b4ba7adce0 |
|
MD5 | ebc58ef9a5faab4152eaf81a78210af5 |
|
BLAKE2b-256 | 30e8f094bd521436f4462ed62bb4ba8a83b04785ca1594f4fb8c0fe14189d057 |
File details
Details for the file lilvali-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: lilvali-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3328b2eb1c2628eedb83df1e6259014f8786767d1dbdb59ee0ffac7fb0783128 |
|
MD5 | 1e90f817309a88b0f1569d32968322b5 |
|
BLAKE2b-256 | 3251e8f29e218f3b80a26e9f373b82c904e6e541bb5fb38285665cd4227d39f8 |