{
"info": {
"author": "Sanhe Hu",
"author_email": "husanhe@gmail.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
],
"description": ".. image:: https://travis-ci.org/MacHu-GWU/attrsmallow-project.svg?branch=master\n :target: https://travis-ci.org/MacHu-GWU/attrsmallow-project?branch=master\n\n.. image:: https://codecov.io/gh/MacHu-GWU/attrsmallow-project/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/MacHu-GWU/attrsmallow-project\n\n.. image:: https://img.shields.io/pypi/v/attrsmallow.svg\n :target: https://pypi.python.org/pypi/attrsmallow\n\n.. image:: https://img.shields.io/pypi/l/attrsmallow.svg\n :target: https://pypi.python.org/pypi/attrsmallow\n\n.. image:: https://img.shields.io/pypi/pyversions/attrsmallow.svg\n :target: https://pypi.python.org/pypi/attrsmallow\n\n.. image:: https://img.shields.io/badge/Star_Me_on_GitHub!--None.svg?style=social\n :target: https://github.com/MacHu-GWU/attrsmallow-project\n\n\nWelcome to ``attrsmallow`` Documentation\n==============================================================================\n\n`attrs `_ is a powerful library helps you to write concise and correct classes. And `marshmallow `_ is a powerful framework to write serializer/deserializer and data validator for complex object.\n\n``attrsmallow`` is a glue layer to taking advantage from them.\n\n\nQuick Links\n------------------------------------------------------------------------------\n- .. image:: https://img.shields.io/badge/Link-Document-red.svg\n :target: https://attrsmallow.readthedocs.io/index.html\n\n- .. image:: https://img.shields.io/badge/Link-API_Reference_and_Source_Code-red.svg\n :target: https://attrsmallow.readthedocs.io/py-modindex.html\n\n- .. image:: https://img.shields.io/badge/Link-Install-red.svg\n :target: `install`_\n\n- .. image:: https://img.shields.io/badge/Link-GitHub-blue.svg\n :target: https://github.com/MacHu-GWU/attrsmallow-project\n\n- .. image:: https://img.shields.io/badge/Link-Submit_Issue_and_Feature_Request-blue.svg\n :target: https://github.com/MacHu-GWU/attrsmallow-project/issues\n\n- .. image:: https://img.shields.io/badge/Link-Download-blue.svg\n :target: https://pypi.python.org/pypi/attrsmallow#downloads\n\n\nUsage\n------------------------------------------------------------------------------\nA blog example:\n\n.. code-block:: python\n\n import attr\n import marshmallow\n from attrsmallow import BaseModel, BaseSchema\n\n @attr.s\n class User(BaseModel):\n id = attr.ib()\n name = attr.ib()\n\n\n class UserSchema(BaseSchema):\n id = fields.Integer(required=True)\n name = fields.String(required=True)\n\n Model = User\n\n\n User.Schema = UserSchema\n\n\n @attr.s\n class Post(BaseModel):\n id = attr.ib()\n title = attr.ib()\n user = attr.ib()\n\n\n class PostSchema(BaseSchema):\n id = fields.Integer()\n title = fields.String()\n user = fields.Nested(UserSchema)\n\n Model = Post\n\n\n Post.Schema = PostSchema\n\n post_data = dict(id=1, title=\"Hello World!\", user=dict(id=1, name=\"Alice\"))\n post = Post.load(post_data)\n\n\n.. _install:\n\nInstall\n------------------------------------------------------------------------------\n\n``attrsmallow`` is released on PyPI, so all you need is:\n\n.. code-block:: console\n\n $ pip install attrsmallow\n\nTo upgrade to latest version:\n\n.. code-block:: console\n\n $ pip install --upgrade attrsmallow\n\n\n",
"description_content_type": null,
"docs_url": null,
"download_url": "https://pypi.python.org/pypi/attrsmallow/0.0.1#downloads",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/MacHu-GWU/",
"keywords": "",
"license": "MIT",
"maintainer": "",
"maintainer_email": "",
"name": "attrsmallow",
"package_url": "https://pypi.org/project/attrsmallow/",
"platform": "Windows",
"project_url": "https://pypi.org/project/attrsmallow/",
"project_urls": {
"Download": "https://pypi.python.org/pypi/attrsmallow/0.0.1#downloads",
"Homepage": "https://github.com/MacHu-GWU/"
},
"release_url": "https://pypi.org/project/attrsmallow/0.0.1/",
"requires_dist": [
"attrs (>=17.1.0)",
"marshmallow (<3.0.0)"
],
"requires_python": "",
"summary": "Integration of attrs and marshmallow.",
"version": "0.0.1"
},
"last_serial": 3532554,
"releases": {
"0.0.1": [
{
"comment_text": "",
"digests": {
"md5": "fdd7f279ab6bd45a70f388b3223fbdcd",
"sha256": "f13db76d5390abf6697035da66c37b342e15ea9e474cc7bb1466f2974a03a092"
},
"downloads": -1,
"filename": "attrsmallow-0.0.1-py2-none-any.whl",
"has_sig": false,
"md5_digest": "fdd7f279ab6bd45a70f388b3223fbdcd",
"packagetype": "bdist_wheel",
"python_version": "py2",
"requires_python": null,
"size": 15127,
"upload_time": "2018-01-29T19:34:33",
"url": "https://files.pythonhosted.org/packages/8e/5a/511d4ae7c8650db9b066a3c0c1097420f691eef911a5ebca5eb5f6dd6c9f/attrsmallow-0.0.1-py2-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "aa7f82228449e93b9b736c065ff12693",
"sha256": "4f25cef4da0577691ced8a8cd2273aedff008dd3852f1f6bf630d283af8e8113"
},
"downloads": -1,
"filename": "attrsmallow-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "aa7f82228449e93b9b736c065ff12693",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9549,
"upload_time": "2018-01-29T19:34:34",
"url": "https://files.pythonhosted.org/packages/13/16/54447bb60e5f3b4c3367b8b8291e47b2d9a9a62062a13eed00248cf9764c/attrsmallow-0.0.1.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "fdd7f279ab6bd45a70f388b3223fbdcd",
"sha256": "f13db76d5390abf6697035da66c37b342e15ea9e474cc7bb1466f2974a03a092"
},
"downloads": -1,
"filename": "attrsmallow-0.0.1-py2-none-any.whl",
"has_sig": false,
"md5_digest": "fdd7f279ab6bd45a70f388b3223fbdcd",
"packagetype": "bdist_wheel",
"python_version": "py2",
"requires_python": null,
"size": 15127,
"upload_time": "2018-01-29T19:34:33",
"url": "https://files.pythonhosted.org/packages/8e/5a/511d4ae7c8650db9b066a3c0c1097420f691eef911a5ebca5eb5f6dd6c9f/attrsmallow-0.0.1-py2-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "aa7f82228449e93b9b736c065ff12693",
"sha256": "4f25cef4da0577691ced8a8cd2273aedff008dd3852f1f6bf630d283af8e8113"
},
"downloads": -1,
"filename": "attrsmallow-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "aa7f82228449e93b9b736c065ff12693",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9549,
"upload_time": "2018-01-29T19:34:34",
"url": "https://files.pythonhosted.org/packages/13/16/54447bb60e5f3b4c3367b8b8291e47b2d9a9a62062a13eed00248cf9764c/attrsmallow-0.0.1.tar.gz"
}
]
}