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()
Release files for valley 1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| valley-1.7.tar.gz | 23.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| valley-1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.7 kB
Release files / valley-1.7.tar.gz
| Download URL | valley-1.7.tar.gz |
|---|---|
| Size | 23.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31c251ce47ccfc20a4712fb8c96fe982cd6ee703d5f09feb9065f3db79a3599a
|
|
BLAKE2b-256 checksum How to use checksums |
0ae36e290ef497d5e01f485b20da31532ce012c63494fef33b68346574208a93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.2 Linux/6.2.0-1018-azure
|
Release files / valley-1.7-py3-none-any.whl
| Download URL | valley-1.7-py3-none-any.whl |
|---|---|
| Size | 26.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6580b1b9ed3252b4031c186ff3def4042703c9ee783fad4d2f9fcefbdf36593b
|
|
BLAKE2b-256 checksum How to use checksums |
3622625d524d520b72f79c43e2c9f4ccf922363be1fe87df9734ed0282db61fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.2 Linux/6.2.0-1018-azure
|