{ "info": { "author": "Steven Loria", "author_email": "sloria1@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "********************************************\nmarshmallow: simplified object serialization\n********************************************\n\n.. image:: https://badge.fury.io/py/marshmallow.svg\n :target: http://badge.fury.io/py/marshmallow\n :alt: Latest version\n\n.. image:: https://dev.azure.com/sloria/sloria/_apis/build/status/marshmallow-code.marshmallow?branchName=2.x-line\n :target: https://dev.azure.com/sloria/sloria/_build/latest?definitionId=5&branchName=2.x-line\n :alt: Build status\n\n.. image:: https://readthedocs.org/projects/marshmallow/badge/\n :target: https://marshmallow.readthedocs.io/\n :alt: Documentation\n\n**marshmallow** is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.\n\n.. code-block:: python\n\n from datetime import date\n from marshmallow import Schema, fields, pprint\n\n class ArtistSchema(Schema):\n name = fields.Str()\n\n class AlbumSchema(Schema):\n title = fields.Str()\n release_date = fields.Date()\n artist = fields.Nested(ArtistSchema())\n\n bowie = dict(name='David Bowie')\n album = dict(artist=bowie, title='Hunky Dory', release_date=date(1971, 12, 17))\n\n schema = AlbumSchema()\n result = schema.dump(album)\n pprint(result.data, indent=2)\n # { 'artist': {'name': 'David Bowie'},\n # 'release_date': '1971-12-17',\n # 'title': 'Hunky Dory'}\n\n\nIn short, marshmallow schemas can be used to:\n\n- **Validate** input data.\n- **Deserialize** input data to app-level objects.\n- **Serialize** app-level objects to primitive Python types. The serialized objects can then be rendered to standard formats such as JSON for use in an HTTP API.\n\nGet It Now\n==========\n\n::\n\n $ pip install -U marshmallow\n\n\nDocumentation\n=============\n\nFull documentation is available at http://marshmallow.readthedocs.io/ .\n\nRequirements\n============\n\n- Python >= 2.7 or >= 3.4\n\nmarshmallow has no external dependencies outside of the Python standard library, although `python-dateutil `_ is recommended for robust datetime deserialization.\n\n\nEcosystem\n=========\n\nA list of marshmallow-related libraries can be found at the GitHub wiki here:\n\nhttps://github.com/marshmallow-code/marshmallow/wiki/Ecosystem\n\nCredits\n=======\n\nContributors\n------------\n\nThis project exists thanks to all the people who contribute.\n\nYou're highly encouraged to participate in marshmallow's development. \nCheck out the `Contributing Guidelines `_ to see\nhow you can help.\n\nThank you to all who have already contributed to marshmallow!\n\n.. image:: https://opencollective.com/marshmallow/contributors.svg?width=890&button=false\n :target: https://marshmallow.readthedocs.io/en/latest/authors.html\n :alt: Contributors\n\nBackers\n-------\n\nIf you find marshmallow useful, please consider supporting the team with\na donation. Your donation helps move marshmallow forward. \n\nThank you to all our backers! [`Become a backer`_]\n\n.. _`Become a backer`: https://opencollective.com/marshmallow#backer\n\n.. image:: https://opencollective.com/marshmallow/backers.svg?width=890\n :target: https://opencollective.com/marshmallow#backers\n :alt: Backers\n\nSponsors\n--------\n\nSupport this project by becoming a sponsor (or ask your company to support this project by becoming a sponsor).\nYour logo will show up here with a link to your website. [`Become a sponsor`_]\n\n.. _`Become a sponsor`: https://opencollective.com/marshmallow#sponsor\n\n.. image:: https://opencollective.com/marshmallow/sponsor/0/avatar.svg\n :target: https://opencollective.com/marshmallow/sponsor/0/website\n :alt: Sponsors\n\n\nProfessional Support\n====================\n\nProfessionally-supported marshmallow is now available through the \n`Tidelift Subscription `_.\n\nTidelift gives software development teams a single source for purchasing and maintaining their software, \nwith professional-grade assurances from the experts who know it best,\nwhile seamlessly integrating with existing tools. [`Get professional support`_]\n\n.. _`Get professional support`: https://tidelift.com/subscription/pkg/pypi-marshmallow?utm_source=marshmallow&utm_medium=referral&utm_campaign=github\n\n.. image:: https://user-images.githubusercontent.com/2379650/45126032-50b69880-b13f-11e8-9c2c-abd16c433495.png\n :target: https://tidelift.com/subscription/pkg/pypi-marshmallow?utm_source=pypi-marshmallow&utm_medium=readme\n :alt: Get supported marshmallow with Tidelift\n\nSecurity Contact Information\n============================\n\nTo report a security vulnerability, please use the\n`Tidelift security contact `_.\nTidelift will coordinate the fix and disclosure.\n\nProject Links\n=============\n\n- Docs: http://marshmallow.readthedocs.io/\n- Changelog: http://marshmallow.readthedocs.io/en/latest/changelog.html\n- PyPI: https://pypi.python.org/pypi/marshmallow\n- Issues: https://github.com/marshmallow-code/marshmallow/issues\n- Donate: https://opencollective.com/marshmallow\n\nLicense\n=======\n\nMIT licensed. See the bundled `LICENSE `_ file for more details.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/marshmallow-code/marshmallow", "keywords": "serialization,rest,json,api,marshal,marshalling,deserialization,validation,schema", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "marshmallow2", "package_url": "https://pypi.org/project/marshmallow2/", "platform": "", "project_url": "https://pypi.org/project/marshmallow2/", "project_urls": { "Homepage": "https://github.com/marshmallow-code/marshmallow" }, "release_url": "https://pypi.org/project/marshmallow2/2.20.2/", "requires_dist": [ "flake8 (==3.7.4); extra == 'dev'", "pytest; extra == 'dev'", "python-dateutil; extra == 'dev'", "pytz; extra == 'dev'", "simplejson; extra == 'dev'", "tox; extra == 'dev'", "alabaster (==0.7.12); extra == 'docs'", "sphinx (==2.1.2); extra == 'docs'", "sphinx-issues (==1.2.0); extra == 'docs'", "sphinx-version-warning (==1.1.2); extra == 'docs'", "flake8 (==3.7.4); extra == 'lint'", "python-dateutil; extra == 'reco'", "simplejson; extra == 'reco'", "pytest; extra == 'tests'", "pytz; extra == 'tests'" ], "requires_python": "", "summary": "A lightweight library for converting complex datatypes to and from native Python datatypes.", "version": "2.20.2" }, "last_serial": 5715747, "releases": { "2.20.2": [ { "comment_text": "", "digests": { "md5": "581ef7409aad63ce5c16379dc93ef367", "sha256": "879eaf7f607113ddcbf46e856873c7fdcea08ba14783f86953f2c8ad76c182c9" }, "downloads": -1, "filename": "marshmallow2-2.20.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "581ef7409aad63ce5c16379dc93ef367", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 48861, "upload_time": "2019-08-22T15:11:19", "url": "https://files.pythonhosted.org/packages/51/5e/10d9fb41e4f93b56687d9e754df6929f57448f7019b8b7fa4b7480af6d95/marshmallow2-2.20.2-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "581ef7409aad63ce5c16379dc93ef367", "sha256": "879eaf7f607113ddcbf46e856873c7fdcea08ba14783f86953f2c8ad76c182c9" }, "downloads": -1, "filename": "marshmallow2-2.20.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "581ef7409aad63ce5c16379dc93ef367", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 48861, "upload_time": "2019-08-22T15:11:19", "url": "https://files.pythonhosted.org/packages/51/5e/10d9fb41e4f93b56687d9e754df6929f57448f7019b8b7fa4b7480af6d95/marshmallow2-2.20.2-py2.py3-none-any.whl" } ] }