Skip to content

rubbieKelvin/maprule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"])

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages