Skip to main content

alt text

Valley

Python extensible schema validations and declarative syntax helpers.

Unittests

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()

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

valley-1.7-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

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

Hashes for valley-1.7.tar.gz
Algorithm Hash digest
SHA256 31c251ce47ccfc20a4712fb8c96fe982cd6ee703d5f09feb9065f3db79a3599a
MD5 657548e856c4e20326251c0b5ba2a62c
BLAKE2b-256 0ae36e290ef497d5e01f485b20da31532ce012c63494fef33b68346574208a93

See more details on using hashes here.

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

Hashes for valley-1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6580b1b9ed3252b4031c186ff3def4042703c9ee783fad4d2f9fcefbdf36593b
MD5 f0685254748e903e2067da3ff87cd9d0
BLAKE2b-256 3622625d524d520b72f79c43e2c9f4ccf922363be1fe87df9734ed0282db61fe

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.7 This release

2 files

1.6

2 files

1.5.8

2 files

1.5.7

2 files

1.5.6

2 files

1.5.5

2 files

1.5.4

2 files

1.5.3

2 files

1.5.2

2 files

1.5.1

2 files

1.5.0

2 files

1.4.1

2 files

1.4.0

2 files

1.3.1

1 file

1.3.0

1 file

1.2.1

1 file

1.2.0

1 file

1.1.1

1 file

1.1.0

1 file

1.0.1

3 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page