{ "info": { "author": "Adam Boche", "author_email": "adamboche@users.noreply.github.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Utilities" ], "description": "========\nOverview\n========\n\n\n\nUnion fields for marshmallow.\n\n* Free software: MIT license\n\n\nWarning\n===========\n\n This library works by trying a list of fields one by one, and (de)serializing with the first one not to raise an error.\n The type of the values is not taken into account, so if one of the fields in the union accepts values of an unexpected type,\n they will be used for serialization. This can lead to a surprising behavior, because :\n\n .. code-block:: python\n\n u = Union(fields=[fields.Integer(), fields.String()]) # the Integer field accepts string representations of integers\n type(u.deserialize('0')) # -> int\n\n If you want to have precise control of which field will be used for which value, you can use `marshmallow-polyfield `_ instead of this library.\n\n\n\nDocumentation\n=============\n\n\nhttps://python-marshmallow-union.readthedocs.io/\n\n0.1.15 (2020-05-30)\n-------------------\n\nChanges\n^^^^^^^\n\n- Fix `#32 `_ : Never ignore the value passed to `_serialize`. Notably, this fixes the serialization of lists of unions, such as ``List(Union([Int(), String()]))``\n\n0.1.12 (2019-10-24)\n-------------------\n\n\nBackward-incompatible Changes\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n- On serialization, ``marshmallow_union.ExceptionGroup`` is raised if all candidate fields fail.\n `#24 `_\n\n\n----\n\n\n0.1.11 (2019-06-19)\n-------------------\n\n\nChanges\n^^^^^^^\n\n- Override the underscore-prefixed methods instead of the plain ones\n `#22 `_\n\n\n----\n\n\nChangelog\n=========\n\n0.1.10 (2019-06-08)\n-------------------\n\n\nChanges\n^^^^^^^\n\n- Use Towncrier for changelog.\n `#18 `_\n\n\n----\n\n\n0.1.0 (2019-06-07)\n------------------\n\n* First release on PyPI.\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/adamboche/python-marshmallow-union", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "marshmallow-union", "package_url": "https://pypi.org/project/marshmallow-union/", "platform": "", "project_url": "https://pypi.org/project/marshmallow-union/", "project_urls": { "Homepage": "https://github.com/adamboche/python-marshmallow-union" }, "release_url": "https://pypi.org/project/marshmallow-union/0.1.15.post1/", "requires_dist": [ "marshmallow (>=3.0.0)" ], "requires_python": "", "summary": "Union fields for marshmallow.", "version": "0.1.15.post1", "yanked": false, "yanked_reason": null }, "last_serial": 7551944, "releases": { "0.1.10": [ { "comment_text": "", "digests": { "md5": "259d67ccb9661262e25ab0f35e24f68d", "sha256": "afceeb8d016e51e1c84f9a7883e7acab6a5e0c08f215462032fa19e0502834c6" }, "downloads": -1, "filename": "marshmallow_union-0.1.10-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "259d67ccb9661262e25ab0f35e24f68d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4876, "upload_time": "2019-06-08T09:21:46", "upload_time_iso_8601": "2019-06-08T09:21:46.328533Z", "url": "https://files.pythonhosted.org/packages/1d/9b/24251becfa22652e9b897755245a65c21281c0224cd57e02d1106f190112/marshmallow_union-0.1.10-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "9257791f0e96768358ec2a7aa55db82c", "sha256": "82ce3d310266b8a1b57d482afdcfbc4216d2232d44a25232d7fd845798dee300" }, "downloads": -1, "filename": "marshmallow-union-0.1.10.tar.gz", "has_sig": false, "md5_digest": "9257791f0e96768358ec2a7aa55db82c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15430, "upload_time": "2019-06-08T09:21:47", "upload_time_iso_8601": "2019-06-08T09:21:47.433087Z", "url": "https://files.pythonhosted.org/packages/d3/33/492f1d0f61187dd2ce47f72ddf925e24c98070524c01cab1ca6624f3562c/marshmallow-union-0.1.10.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.12": [ { "comment_text": "", "digests": { "md5": "0b523247f773341b29d310ff2621b0b9", "sha256": "280708177aba5c2bb69614f7f7603c8a8fd265f6733890c6499fcd72bc27c1e7" }, "downloads": -1, "filename": "marshmallow_union-0.1.12-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0b523247f773341b29d310ff2621b0b9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5197, "upload_time": "2019-10-24T20:43:48", "upload_time_iso_8601": "2019-10-24T20:43:48.895712Z", "url": "https://files.pythonhosted.org/packages/1b/14/b9d448c5ca1e8308dc917bc478a41cfe3b4d62f382f4bcec74fed1d33ea3/marshmallow_union-0.1.12-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "0.1.13": [ { "comment_text": "", "digests": { "md5": "81a1fa8702b7836e742ea5b7763c3ed9", "sha256": "1bed360d40d7081cecbee1cfd2dfb3f1c327f7a2f0a728e518958396f5cd69f0" }, "downloads": -1, "filename": "marshmallow_union-0.1.13-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "81a1fa8702b7836e742ea5b7763c3ed9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5398, "upload_time": "2020-02-02T00:12:32", "upload_time_iso_8601": "2020-02-02T00:12:32.350781Z", "url": "https://files.pythonhosted.org/packages/a7/39/8d2319d5398e0b59b54bc9e8debc5b1f92ce3acca722cff7f03897a170de/marshmallow_union-0.1.13-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "22675ce39d056ca062b4aa7fcf66f92f", "sha256": "674e205fb05b09addb0eda7d8dc0adf994cbb36e326cc13faf989d749313d7a0" }, "downloads": -1, "filename": "marshmallow-union-0.1.13.tar.gz", "has_sig": false, "md5_digest": "22675ce39d056ca062b4aa7fcf66f92f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17114, "upload_time": "2020-02-02T00:12:33", "upload_time_iso_8601": "2020-02-02T00:12:33.651074Z", "url": "https://files.pythonhosted.org/packages/73/7a/a01c807a3ce693c3506c17f9edb3015bbdf5cc2ccdd434d8ddb746e4ffc4/marshmallow-union-0.1.13.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.14": [ { "comment_text": "", "digests": { "md5": "f13911d915a49c2d5c0e014545bc1b08", "sha256": "b55497f3444feefc36aac3182d135eef36c45b951d4d9131615ba3a90cef2892" }, "downloads": -1, "filename": "marshmallow_union-0.1.14-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f13911d915a49c2d5c0e014545bc1b08", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5463, "upload_time": "2020-02-09T21:48:21", "upload_time_iso_8601": "2020-02-09T21:48:21.662531Z", "url": "https://files.pythonhosted.org/packages/c6/7e/427ec930a7df6ad68cbeea3122547a92ef42292a744a6d360d2a6eeefa73/marshmallow_union-0.1.14-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "0.1.15": [ { "comment_text": "", "digests": { "md5": "168b2aba6b8954c9bde88e2bc0611ada", "sha256": "c4a03373e4d60f338a4468df496af5829276e4c13d5b900501528caf392089d9" }, "downloads": -1, "filename": "marshmallow_union-0.1.15-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "168b2aba6b8954c9bde88e2bc0611ada", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4522, "upload_time": "2020-05-30T10:07:05", "upload_time_iso_8601": "2020-05-30T10:07:05.682915Z", "url": "https://files.pythonhosted.org/packages/6b/94/fb3a952b6a910892776b45d7fcd46933b6f349d5e57dfb00554811747ac9/marshmallow_union-0.1.15-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "699f6228253dacd4dc7c488b44339af4", "sha256": "711d4e3e7085ab9110bd29b63d9fd1b6a2d42a752909892ae6463865a5b2b226" }, "downloads": -1, "filename": "marshmallow-union-0.1.15.tar.gz", "has_sig": false, "md5_digest": "699f6228253dacd4dc7c488b44339af4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17498, "upload_time": "2020-05-30T10:07:07", "upload_time_iso_8601": "2020-05-30T10:07:07.109745Z", "url": "https://files.pythonhosted.org/packages/21/46/ac2ff252de98e32ee812a55aa71f1ec8cc9220d642f889a145f8058b3eed/marshmallow-union-0.1.15.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.15.post1": [ { "comment_text": "", "digests": { "md5": "52a8b20dff6c19ba9d417512bb556a98", "sha256": "1e21b759c76735305f99179c1a16759ebb9629733159628241b3f2117ff55e86" }, "downloads": -1, "filename": "marshmallow_union-0.1.15.post1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "52a8b20dff6c19ba9d417512bb556a98", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4607, "upload_time": "2020-06-24T13:47:22", "upload_time_iso_8601": "2020-06-24T13:47:22.955899Z", "url": "https://files.pythonhosted.org/packages/6d/b7/1f3c4575b488435c91c7bf25598ea6d22ae09b55cf1724320f4bd451323d/marshmallow_union-0.1.15.post1-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "1e6c656d702df6b7faa22b49a356b4fb", "sha256": "c08f0a87891ae73dd2b5d4a154bc7daea20c3bc0f99ca0b6a26570c927d20c8c" }, "downloads": -1, "filename": "marshmallow-union-0.1.15.post1.tar.gz", "has_sig": false, "md5_digest": "1e6c656d702df6b7faa22b49a356b4fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17549, "upload_time": "2020-06-24T13:47:24", "upload_time_iso_8601": "2020-06-24T13:47:24.918699Z", "url": "https://files.pythonhosted.org/packages/f4/b3/3b2adcebc922d147637e18866bbce107dc3c0938e715c003697bbab2e9bf/marshmallow-union-0.1.15.post1.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "52a8b20dff6c19ba9d417512bb556a98", "sha256": "1e21b759c76735305f99179c1a16759ebb9629733159628241b3f2117ff55e86" }, "downloads": -1, "filename": "marshmallow_union-0.1.15.post1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "52a8b20dff6c19ba9d417512bb556a98", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4607, "upload_time": "2020-06-24T13:47:22", "upload_time_iso_8601": "2020-06-24T13:47:22.955899Z", "url": "https://files.pythonhosted.org/packages/6d/b7/1f3c4575b488435c91c7bf25598ea6d22ae09b55cf1724320f4bd451323d/marshmallow_union-0.1.15.post1-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "1e6c656d702df6b7faa22b49a356b4fb", "sha256": "c08f0a87891ae73dd2b5d4a154bc7daea20c3bc0f99ca0b6a26570c927d20c8c" }, "downloads": -1, "filename": "marshmallow-union-0.1.15.post1.tar.gz", "has_sig": false, "md5_digest": "1e6c656d702df6b7faa22b49a356b4fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17549, "upload_time": "2020-06-24T13:47:24", "upload_time_iso_8601": "2020-06-24T13:47:24.918699Z", "url": "https://files.pythonhosted.org/packages/f4/b3/3b2adcebc922d147637e18866bbce107dc3c0938e715c003697bbab2e9bf/marshmallow-union-0.1.15.post1.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }