Thanks to visit codestin.com
Credit goes to github.com

Skip to content

An open-source, lightweight, highly performant, and predictable library for quick data validation

License

Notifications You must be signed in to change notification settings

Nishant173/valcheck

Repository files navigation

valcheck

An open-source, lightweight, highly performant, and predictable library for quick data validation.

Installation

pip install valcheck

Usage

  • Refer to the examples/ folder, based on the valcheck version you are using.
from valcheck import fields, models, validators

DATE_FORMAT = "%Y-%m-%d"
GENDER_CHOICES = ("Female", "Male")


class PersonValidator(validators.Validator):
    name = fields.StringField(allow_empty=False)
    date_of_birth = fields.DateStringField(format_=DATE_FORMAT)
    gender = fields.ChoiceField(choices=GENDER_CHOICES)
    num_friends = fields.IntegerField()

Documentation

  • The documentation for the valcheck package can be found in the docs/ folder (based on the version). You can view the respective HTML file (docs/version-xxx/index.html) in your browser after cloning/downloading this repository.

About

An open-source, lightweight, highly performant, and predictable library for quick data validation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages