{ "info": { "author": "Samuele Santi", "author_email": "samuele@samuelesanti.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: Implementation :: CPython" ], "description": "Contracts\n#########\n\n\nTravis:\n\n.. image:: https://img.shields.io/travis/rshk/contracts.svg\n :target: https://travis-ci.org/rshk/contracts\n\n\nCircleCI:\n\n.. image:: https://img.shields.io/circleci/project/rshk/contracts.svg\n :target: https://circleci.com/gh/rshk/contracts\n\n\nBase library for defining lean \"contract\" models for Python.\n\n\nAbstract\n========\n\nThis is an implementation of \"models\" similar to those you see in most\nORMs / forms definition systems, but with the main goal of keeping\nthings as simple as possible.\n\nNo metaclasses or descriptors are involved; no hackish code messing up\nwith standard Python objects functionality either.\n\nThe idea is to have a \"layered\" library, providing the bare bones\nneeded to define your own schemas, along with some nice helpers for\ncommon cases.\n\n\nUse cases\n=========\n\n- API clients\n- ORMs\n- Forms\n\n\n\nExample model definition\n========================\n\n.. code:: python\n\n from contracts.core import Contract, BaseField\n\n # Use BaseField to define your field types, eg. StringField and\n # IntegerField.\n\n class MyModel(BaseObject):\n first_name = StringField()\n last_name = StringField()\n age = IntegerField()\n\nThen, create some library to make use of the schema somehow \ud83d\ude0a.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rshk/contracts", "keywords": null, "license": "Apache 2.0 License", "maintainer": null, "maintainer_email": null, "name": "lean-contracts", "package_url": "https://pypi.org/project/lean-contracts/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/lean-contracts/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rshk/contracts" }, "release_url": "https://pypi.org/project/lean-contracts/0.1a0/", "requires_dist": null, "requires_python": null, "summary": "Lean schema-enforcing objects", "version": "0.1a0" }, "last_serial": 1859301, "releases": { "0.1a0": [] }, "urls": [] }