{ "info": { "author": "Alec Nikolas Reiter", "author_email": "alecreiter@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Utilities" ], "description": "=======================\nmarshmallow-annotations\n=======================\n\nmarshmallow-annotations allows you to create marshmallow schema from classes\nwith annotations on them\n\n.. code-block:: python\n\n from marshmallow_annotations import AnnotationSchema\n from .music import Album, Artist\n\n class AlbumScheme(AnnotationSchema):\n class Meta:\n target = Album\n register_as_scheme = True\n\n\n class ArtistScheme(AnnotationSchema):\n class Meta:\n target = Artist\n register_as_scheme = True\n\n\n scheme = ArtistScheme()\n scheme.dump(\n Artist(\n id=1, name=\"Abominable Putridity\",\n albums=[\n Album(\n id=1,\n name=\"The Anomalies of Artificial Origin\"\n )\n ]\n )\n )\n\n # {\n # \"albums\": [\n # {\n # \"id\": 1,\n # \"name\": \"The Anomalies of Artificial Origin\"\n # }\n # ],\n # \"id\": 1,\n # \"name\": \"Abominable Putridity\"\n # }\n\n************\nInstallation\n************\n\n\nmarshmallow-annotations is available on `pypi `_\nand installable with::\n\n pip install marshmallow-annotations\n\nmarshmallow-annotations supports Python 3.6+ and marshmallow 2.x.x\n\n\n.. note::\n\n If you are install ``marshmallow-annotations`` outside of a virtual\n environment, consider installing with\n ``pip install --user marshmallow-annotations`` rather than using sudo or\n adminstrator privileges to avoid installing it into your system Python.\n\n\nWhy?\n====\n\nKeeping up with entity definitions, ORM mappings and schema shapes can be a huge\npain the butt. If you change one thing, you need to change three things.\n\nInstead, marshmallow-annotations wants to drive schema shapes from your\nentity defintions (with a little help from you of course).\n\n\nMore Information\n----------------\n\n- For more information, `please visit the documentation `_.\n- Found a bug, have a question, or want to request a feature? Here is our `issue tracker `_.\n- Need the source code? Here is the `repository `_\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/justanr/marshmallow-annotations", "keywords": "annotations,marshmallow", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "marshmallow-annotations", "package_url": "https://pypi.org/project/marshmallow-annotations/", "platform": "", "project_url": "https://pypi.org/project/marshmallow-annotations/", "project_urls": { "Homepage": "https://github.com/justanr/marshmallow-annotations" }, "release_url": "https://pypi.org/project/marshmallow-annotations/2.4.0/", "requires_dist": [ "marshmallow (<3.0.0,>=2.0.0)", "attrs ; extra == 'attrs'" ], "requires_python": "", "summary": "Marrying marshmallow and annotations", "version": "2.4.0" }, "last_serial": 4592465, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "255f31bee15b647abcaba1ad9e05324c", "sha256": "12f139667eafae0fd41d82a4036dcc82427c250d86293244191e971447c7b1ea" }, "downloads": -1, "filename": "marshmallow_annotations-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "255f31bee15b647abcaba1ad9e05324c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3773, "upload_time": "2017-06-18T00:57:20", "url": "https://files.pythonhosted.org/packages/ad/ec/6e9bcd6d62ccadeeb415fda723833e5fb3d9fa83006e612cafb8c2ae031a/marshmallow_annotations-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0d9300df0b57a8de2cb2c62820e428dc", "sha256": "552f51a9ca9f747cb27f2daed6af9531a106907e5cde29a9a566456811106c44" }, "downloads": -1, "filename": "marshmallow-annotations-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0d9300df0b57a8de2cb2c62820e428dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1751, "upload_time": "2017-06-18T00:57:22", "url": "https://files.pythonhosted.org/packages/a2/55/1c67be07d02f68899e92dc48568d429126ff17701364bf58021ba933c944/marshmallow-annotations-1.0.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "f42edcd5bfbff619f1c6478ce6077679", "sha256": "8c998fc18b7be44b18b23a3d34e040aa35b9fd66e31b77ce720d591e99ab0493" }, "downloads": -1, "filename": "marshmallow_annotations-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f42edcd5bfbff619f1c6478ce6077679", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8434, "upload_time": "2018-05-03T03:46:11", "url": "https://files.pythonhosted.org/packages/0d/22/dcf56057d0b4d6e88e1fb34645dc03806bcaef3f04346abb683958ec6a5f/marshmallow_annotations-2.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8e5b5043eb0f53bd7fb2c3a31f908b92", "sha256": "4b0f7ce4265ec45d86618f266e2abde7346ee0193bc91254e66659e3416a9c0b" }, "downloads": -1, "filename": "marshmallow-annotations-2.0.0.tar.gz", "has_sig": false, "md5_digest": "8e5b5043eb0f53bd7fb2c3a31f908b92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7362, "upload_time": "2018-05-03T03:46:12", "url": "https://files.pythonhosted.org/packages/c0/68/d955552d4ed0f6accaf457fc5e63c8eb254082a66440cef4d6ed4b087ca3/marshmallow-annotations-2.0.0.tar.gz" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "14f2ec352ca8d966eff7507301d352f3", "sha256": "27c49fb3cfb61651a1b69b2adbb9e160990f3e946c5c8f39e00a9e9d10f9abcb" }, "downloads": -1, "filename": "marshmallow_annotations-2.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "14f2ec352ca8d966eff7507301d352f3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9615, "upload_time": "2018-07-03T01:47:39", "url": "https://files.pythonhosted.org/packages/5f/8e/4ae941847ca703979840ca8fcada912268ae4d2e86d1c25f02a49e1203f4/marshmallow_annotations-2.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cf6497f9ae62099d1927400e6e3d15b3", "sha256": "6cf65d2b889ca48c98f572936b5b09c751e0814d430743a0b7f488a87c62dc67" }, "downloads": -1, "filename": "marshmallow-annotations-2.1.0.tar.gz", "has_sig": false, "md5_digest": "cf6497f9ae62099d1927400e6e3d15b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8007, "upload_time": "2018-07-03T01:47:40", "url": "https://files.pythonhosted.org/packages/22/6d/1cc8526f981d49f743ce4081405a2a4d0bb5c18bae5d75e72904a2a72fa3/marshmallow-annotations-2.1.0.tar.gz" } ], "2.2.0": [ { "comment_text": "", "digests": { "md5": "0e7bf4011baae3579768ddfb132e7c78", "sha256": "a1fa82d6427a1c8f3b47a2127fbbe7a455a06c75ad29b5125084ac3101b70a27" }, "downloads": -1, "filename": "marshmallow_annotations-2.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0e7bf4011baae3579768ddfb132e7c78", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11404, "upload_time": "2018-07-15T01:13:27", "url": "https://files.pythonhosted.org/packages/ff/aa/78bb108be978e3b6dc6c797a8aae615812b0ec7e3e69e9b50c1e23714cf0/marshmallow_annotations-2.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a9d5481a247a51321b26b36db60869af", "sha256": "6f7782442efc9225cfeea0949376bc57978c24e8aa99f9f7b0fd54ebf7f98a20" }, "downloads": -1, "filename": "marshmallow-annotations-2.2.0.tar.gz", "has_sig": false, "md5_digest": "a9d5481a247a51321b26b36db60869af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9196, "upload_time": "2018-07-15T01:13:28", "url": "https://files.pythonhosted.org/packages/ca/7e/a5878fba2a3f14d872fd37fe3583208f4280b6de9f1ff3a053d2de212279/marshmallow-annotations-2.2.0.tar.gz" } ], "2.3.0": [ { "comment_text": "", "digests": { "md5": "18084216da4ec2c8d3400f4a4c41fb6d", "sha256": "5a31261eae4e2e169d2a3a0d99a22ac9c4a84fea1c883bcb044701ce40928e68" }, "downloads": -1, "filename": "marshmallow_annotations-2.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "18084216da4ec2c8d3400f4a4c41fb6d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12074, "upload_time": "2018-08-05T23:33:12", "url": "https://files.pythonhosted.org/packages/5b/35/a28ffaf171e5fd10a3516f3b39727049696ec1d934a4d0b2a43863c896fb/marshmallow_annotations-2.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9acdae7de8a32035e8fcf785842e5e7e", "sha256": "cd973bfbc03c555290d18884260b3458982dc6d595c8704e374ab629099d25cc" }, "downloads": -1, "filename": "marshmallow-annotations-2.3.0.tar.gz", "has_sig": false, "md5_digest": "9acdae7de8a32035e8fcf785842e5e7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10586, "upload_time": "2018-08-05T23:33:13", "url": "https://files.pythonhosted.org/packages/fd/a5/0f2247fb95df953e7febb9c4d13e13acd91cdfd37e25ce6088759232d516/marshmallow-annotations-2.3.0.tar.gz" } ], "2.4.0": [ { "comment_text": "", "digests": { "md5": "a24afccb0cb2b5d9645b165d4dd00711", "sha256": "caa248df7652f9cfa69d5cc74439abc1835ccb8c78da25a6c11b8ae4098dcd85" }, "downloads": -1, "filename": "marshmallow_annotations-2.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a24afccb0cb2b5d9645b165d4dd00711", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13670, "upload_time": "2018-12-13T01:58:23", "url": "https://files.pythonhosted.org/packages/23/65/2343d9996c6fe0e35509b09b5c0d54523ef4c8f079c524e299e34c15af38/marshmallow_annotations-2.4.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f8e63370a96de12f09d5d8f9b0e8bce1", "sha256": "ff9e67c3e68c3bf84c90b8fdc9c04f2ac7b5c5d36083526a31909de0b3a9689d" }, "downloads": -1, "filename": "marshmallow-annotations-2.4.0.tar.gz", "has_sig": false, "md5_digest": "f8e63370a96de12f09d5d8f9b0e8bce1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11128, "upload_time": "2018-12-13T01:58:24", "url": "https://files.pythonhosted.org/packages/00/ee/684b4dae99a42381debde54fd69b527754eef5579e2c8ec64e75e32aee4d/marshmallow-annotations-2.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a24afccb0cb2b5d9645b165d4dd00711", "sha256": "caa248df7652f9cfa69d5cc74439abc1835ccb8c78da25a6c11b8ae4098dcd85" }, "downloads": -1, "filename": "marshmallow_annotations-2.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a24afccb0cb2b5d9645b165d4dd00711", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13670, "upload_time": "2018-12-13T01:58:23", "url": "https://files.pythonhosted.org/packages/23/65/2343d9996c6fe0e35509b09b5c0d54523ef4c8f079c524e299e34c15af38/marshmallow_annotations-2.4.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f8e63370a96de12f09d5d8f9b0e8bce1", "sha256": "ff9e67c3e68c3bf84c90b8fdc9c04f2ac7b5c5d36083526a31909de0b3a9689d" }, "downloads": -1, "filename": "marshmallow-annotations-2.4.0.tar.gz", "has_sig": false, "md5_digest": "f8e63370a96de12f09d5d8f9b0e8bce1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11128, "upload_time": "2018-12-13T01:58:24", "url": "https://files.pythonhosted.org/packages/00/ee/684b4dae99a42381debde54fd69b527754eef5579e2c8ec64e75e32aee4d/marshmallow-annotations-2.4.0.tar.gz" } ] }