Python extensible schema validations and declarative syntax helpers.
Project description
Valley
Python extensible schema validations and declarative syntax helpers.
Installation
pip install valley
Getting Started
import valley as v
class Animal(v.Schema):
name = v.StringProperty(required=True)
species = v.StringProperty(required=True)
color = v.StringProperty(required=True)
meal_type = v.StringProperty()
age = v.IntegerProperty(required=True)
frog = Animal(name='Kermit',species='frog',color='green',meal='carnivore',age=1)
frog.validate()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
valley-1.7.tar.gz
(23.0 kB
view hashes)
Built Distribution
valley-1.7-py3-none-any.whl
(26.7 kB
view hashes)