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 details)
Built Distribution
valley-1.7-py3-none-any.whl
(26.7 kB
view details)
File details
Details for the file valley-1.7.tar.gz
.
File metadata
- Download URL: valley-1.7.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.2 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31c251ce47ccfc20a4712fb8c96fe982cd6ee703d5f09feb9065f3db79a3599a |
|
MD5 | 657548e856c4e20326251c0b5ba2a62c |
|
BLAKE2b-256 | 0ae36e290ef497d5e01f485b20da31532ce012c63494fef33b68346574208a93 |
File details
Details for the file valley-1.7-py3-none-any.whl
.
File metadata
- Download URL: valley-1.7-py3-none-any.whl
- Upload date:
- Size: 26.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.2 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6580b1b9ed3252b4031c186ff3def4042703c9ee783fad4d2f9fcefbdf36593b |
|
MD5 | f0685254748e903e2067da3ff87cd9d0 |
|
BLAKE2b-256 | 3622625d524d520b72f79c43e2c9f4ccf922363be1fe87df9734ed0282db61fe |