Skip to main content

Python fluent validation

Project description

py-v8n

The ultimate Python validation library you've ever needed.
Dead simple fluent API. Customizable. Reusable.

Build Status CircleCI codecov

v8n()
  .int_()
  .between(0, 100)
  .even()
  .not_().equal(32)
  .test(74) # true

What is it?

py-v8n is a reusable fluent validation library.

Installation

pip install py-v8n

Usage

from py_v8n import v8n

# Create a validator
hello_validator = v8n()\
    .str_()\
    .first("H")\
    .last("o")
    
# Check values
hello_validator.test("Hello") # True
hello_validator.test("Good bye") # False
 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-v8n-0.1.0a0.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page