Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Meta: A platform-agnostic library for schema modeling.

Project Description

Meta: A platform-agnostic library for schema modeling

Meta is a platform-agnostic library for defining, serializing, and validating data structures.

from flowdas import meta

class Author(meta.Entity):
   name = meta.String()

class Book(meta.Entity):
   title = meta.String()
   published = meta.Date()
   authors = Author[1:]()

author1 = Author({'name': 'O'})
author2 = Author()
author2.update(name = 'Flowdas')
book = Book()
book.title = 'Meta'
book.published = '2016-03-15'
book.authors = [author1, author2]
book.published
# datetime.date(2016, 3, 15)
book.validate()
book.dump()
# {'authors': [{'name': 'O'}, {'name': 'Flowdas'}], 'published': '2016-03-15', 'title': 'Meta'}

Install

pip install flowdas-meta

Meta requires Python 2.7, 3.3, 3.4, or 3.5. It also supports PyPy. There is no external dependencies.

Documentation

Documentation is available at http://flowdas.github.io/meta/.

Release History

This version
History Node

1.0.1

History Node

1.0.0

History Node

1.0.0a1

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
flowdas-meta-1.0.1.tar.gz
(34.3 kB) Copy SHA256 Hash SHA256
Source None Mar 24, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting