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.6.tar.gz
(22.7 kB
view details)
Built Distribution
valley-1.6-py3-none-any.whl
(26.4 kB
view details)
File details
Details for the file valley-1.6.tar.gz
.
File metadata
- Download URL: valley-1.6.tar.gz
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.2 Linux/6.2.0-1016-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | faea60ba5b2f6ba6de92711d344b3c345ffd0f94a753c136467f8f73461d277d |
|
MD5 | ae9ed9532f77b82bb6c7f6bcbf1c08dd |
|
BLAKE2b-256 | cb73b4e076aef3e716eaeb73eb2144a2b4ce3b1db4594c2c0161c188b65d0bff |
File details
Details for the file valley-1.6-py3-none-any.whl
.
File metadata
- Download URL: valley-1.6-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.2 Linux/6.2.0-1016-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc57e2138d057282bc8db12b5a461301799511a34169cf098556dfeae7c5a5c9 |
|
MD5 | 2d0d75a794e3c1e9659c605d10e9c726 |
|
BLAKE2b-256 | 8582226c1b5ae7eab66a4e0b029a3c4fab50142fb166cb36180ece8b5d36bd7e |