Giter Site home page Giter Site logo

mentat-enki / schematics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from schematics/schematics

0.0 1.0 0.0 1.14 MB

Python Data Structures for Humans™.

Home Page: http://groups.google.com/group/schematics-dev

License: BSD 3-Clause "New" or "Revised" License

schematics's Introduction

Schematics

Python Data Structures for Humans™.

Build Status

Show me the Code!

>>> from schematics.models import Model
>>> from schematics.types import StringType
>>> class Person(Model):
...     name = StringType(required=True)
...
>>> person = Person({'name': u'Joey Bada$$'})
>>> person.name
u'Joey Bada$$'

Let’s see some validation

>>> person = Person()
>>> try:
...     person.validate()
... except ValidationError, e:
...     print e.messages
{'name': [u'This field is required.']}

Installation

$ pip install schematics

Python 2.7 is supported. 2.6 support is close but test suite needs to be updated.

Documentation

schematics.readthedocs.org

Tests

Using py.test:

$ py.test tests/

Authors

schematics's People

Contributors

jokull avatar gone avatar seanoc avatar talos avatar lkraider avatar alexanderdean avatar jmsdnns avatar johannth avatar justinabrahms avatar st0w avatar titusz avatar st4lk avatar yalon avatar rozza avatar robspychala avatar jhalcrow avatar jbeluch avatar tomwaits avatar bdickason avatar brianknox avatar dfm avatar d1on avatar gilles avatar nicolaiarocci avatar robspectre avatar ryanolson avatar wsantos avatar hrldcpr avatar

Watchers

Scott Ziegler avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.