nschejtman / py-v8n

✅ Python Fluent Validation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
 

About

✅ Python Fluent Validation

License:MIT License


Languages

Language:Python 99.6%Language:Shell 0.4%