Metadata-Version: 1.1
Name: Gladiator
Version: 0.6.1
Summary: Gladiator is a Data Validation Framework for Python3
Home-page: https://github.com/laco/gladiator
Author: László Andrási
Author-email: mail@laszloandrasi.com
License: BSD
Download-URL: https://github.com/laco/gladiator/tarball/0.6.1
Description: *********
        Gladiator
        *********
        
        Validation Framework for Python3
        
        
        A quick example
        ===============
        
        A registration form accepts this data structure::
        
          valid_test_data = {
              'email': 'test@example.com',
              'pw': 'password123',
              'name': 'Test Username',
              'birth_year': 1984
          }
        
        
        The validation process can be::
        
          import gladiator as gl
          
          registration_form_validator = (
              ('email', gl.required, gl.format_email),
              ('pw', gl.required, gl.length_min(5)),
              ('name', gl.required, gl.type_(str)),
              ('birth_year', gl.required, gl.type_(int), gl.value_max(2014 - 18))
          )
          
          result = gl.validate(registration_form_validator, valid_test_data)
          assert result.success is True
        
        
        
        
        
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
