All Projects → jamesturk → Validictory

jamesturk / Validictory

Licence: other
🎓 deprecated general purpose python data validator

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Validictory

Validation
validation api extracted from play
Stars: ✭ 194 (-19.83%)
Mutual labels:  validation
Dntframeworkcore
Lightweight and Extensible Infrastructure for Building Web Applications - Web Application Framework
Stars: ✭ 208 (-14.05%)
Mutual labels:  validation
Php Validate
Lightweight and feature-rich PHP validation and filtering library. Support scene grouping, pre-filtering, array checking, custom validators, custom messages. 轻量且功能丰富的PHP验证、过滤库。支持场景分组,前置过滤,数组检查,自定义验证器,自定义消息。
Stars: ✭ 225 (-7.02%)
Mutual labels:  validation
Computed Types
🦩 Joi like validations for TypeScript
Stars: ✭ 197 (-18.6%)
Mutual labels:  validation
Validr
A simple, fast, extensible python library for data validation.
Stars: ✭ 205 (-15.29%)
Mutual labels:  validation
Schematics
Project documentation: https://schematics.readthedocs.io/en/latest/
Stars: ✭ 2,461 (+916.94%)
Mutual labels:  validation
Validation
The power of Respect Validation on Laravel
Stars: ✭ 188 (-22.31%)
Mutual labels:  validation
Truss
Assertions API for Clojure/Script
Stars: ✭ 239 (-1.24%)
Mutual labels:  validation
Kafl
A fuzzer for full VM kernel/driver targets
Stars: ✭ 204 (-15.7%)
Mutual labels:  validation
Resolvers
📋 Validation resolvers: Zod, Yup, Joi, Superstruct, and Vest.
Stars: ✭ 222 (-8.26%)
Mutual labels:  validation
Pristine
Vanilla javascript form validation micro-library
Stars: ✭ 197 (-18.6%)
Mutual labels:  validation
Marshmallow Jsonapi
JSON API 1.0 (https://jsonapi.org/) formatting with marshmallow
Stars: ✭ 203 (-16.12%)
Mutual labels:  validation
Netdevpack
A smart set of common classes and implementations to improve your development productivity.
Stars: ✭ 220 (-9.09%)
Mutual labels:  validation
Validot
Validot is a performance-first, compact library for advanced model validation. Using a simple declarative fluent interface, it efficiently handles classes, structs, nested members, collections, nullables, plus any relation or combination of them. It also supports translations, custom logic extensions with tests, and DI containers.
Stars: ✭ 198 (-18.18%)
Mutual labels:  validation
Password Validator
Validates password according to flexible and intuitive specification
Stars: ✭ 224 (-7.44%)
Mutual labels:  validation
Json Schema Spec
The JSON Schema I-D sources
Stars: ✭ 2,441 (+908.68%)
Mutual labels:  validation
Run Aspnetcore Realworld
E-Commerce real world example of run-aspnetcore ASP.NET Core web application. Implemented e-commerce domain with clean architecture for ASP.NET Core reference application, demonstrating a layered application architecture with DDD best practices. Download 100+ page eBook PDF from here ->
Stars: ✭ 208 (-14.05%)
Mutual labels:  validation
Svelte Forms Lib
📝. A lightweight library for managing forms in Svelte
Stars: ✭ 238 (-1.65%)
Mutual labels:  validation
Swiftvalidators
String (and more) validation for iOS
Stars: ✭ 226 (-6.61%)
Mutual labels:  validation
Spring Dubbo Service
微服务 spring dubbo项目:dubbo rpc;druid数据源连接池;mybatis配置集成,多数据源;jmx监控MBean;定时任务;aop;ftp;测试;Metrics监控;参数验证;跨域处理;shiro权限控制;consul服务注册,发现;redis分布式锁;SPI服务机制;cat监控;netty服务代理;websocket;disconf;mongodb集成;rest;docker;fescar
Stars: ✭ 224 (-7.44%)
Mutual labels:  validation

=========== validictory

⚠️ ⚠️ As of 2018 this library is deprecated, please consider using jsonschema (https://pypi.python.org/pypi/jsonschema) instead.

.. image:: https://travis-ci.org/jamesturk/validictory.svg?branch=master :target: https://travis-ci.org/jamesturk/validictory

.. image:: https://coveralls.io/repos/jamesturk/validictory/badge.png?branch=master :target: https://coveralls.io/r/jamesturk/validictory

.. image:: https://img.shields.io/pypi/v/validictory.svg :target: https://pypi.python.org/pypi/validictory

.. image:: https://readthedocs.org/projects/validictory/badge/?version=latest :target: https://readthedocs.org/projects/validictory/?badge=latest :alt: Documentation Status

A general purpose Python data validator.

Works with Python 2.7 and Python 3.3+

Schema format based on JSON Schema Proposal (http://json-schema.org)

Contains code derived from jsonschema, by Ian Lewis and Yusuke Muraoka.

Usage

JSON documents and schema must first be loaded into a Python dictionary type before it can be validated.

Parsing a simple JSON document::

>>> import validictory
>>>
>>> validictory.validate("something", {"type":"string"})

Parsing a more complex JSON document::

>>> import json
>>> import validictory
>>>
>>> data = json.loads('["foo", {"bar":["baz", null, 1.0, 2]}]')
>>> schema = {
...   "type":"array",
...   "items":[
...     {"type":"string"},
...     {"type":"object",
...      "properties":{
...        "bar":{
...          "items":[
...            {"type":"string"},
...            {"type":"any"},
...            {"type":"number"},
...            {"type":"integer"}
...          ]
...        }
...      }
...    }
...   ]
... }
>>> validictory.validate(data,schema)

Catch ValueErrors to handle validation issues::

>>> import validictory
>>>
>>> try:
...     validictory.validate("something", {"type":"string","minLength":15})
... except ValueError, error:
...     print(error)
...
Length of value 'something' for field '_data' must be greater than or equal to 15

You can read more in the official documentation at Read the Docs <http://validictory.readthedocs.org/en/latest/>_.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].