package for validating values
Project description
Maprule
value validating library
Installation
python -m pip install -U maprule
Update
- v0.2.0: added error tracking
Usage
from maprule import fields
fields.Boolean().compare(True)
fields.Integer().compare(0)
fields.Integer(maximum=0).compare(1)
fields.String(min_length=3).compare("he")
fields.Dictionary(dict(
name=fields.String(min_length=3),
age=fields.Integer(minimum=0)
)).compare(dict(name="rubbie", age=19))
fields.Array(fields.String(min_length=3)).compare(["rubbie", "kelvin"])
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
maprule-1.1.0.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file maprule-1.1.0.tar.gz
.
File metadata
- Download URL: maprule-1.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e31cdb0b0f949b9397b5dc49a03f43c6d05d5c0f605dbcf847e516da1962750 |
|
MD5 | 177f3c502e0cebb602c2c4acecb5855e |
|
BLAKE2b-256 | a115ae2b1b9c0157d876d6c832c119557216e0d4db2ccf7f2d65e899da515432 |
File details
Details for the file maprule-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: maprule-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9851a3219661ae649880f7c6f85ddb789db021c9b034cb7e91453576aa6718d8 |
|
MD5 | 518a09aed01b2f8b5adfcb15a81d6c2d |
|
BLAKE2b-256 | 2a4c1da73515ae09e83c44e4cb58ad73b1a8df95af109871f546d5677cb99d0f |