{"repo":"lovasoa/marshmallow_dataclass","free":true,"listed":false,"github":"https://github.com/lovasoa/marshmallow_dataclass","clone":"git clone https://github.com/lovasoa/marshmallow_dataclass.git","description":"Automatic generation of marshmallow schemas from dataclasses.","language":"Python","stars":475,"topics":["orm","marshmallow","serialization","dataclass"],"license":"MIT","category":"databases-storage","readme_excerpt":"marshmallow-dataclass Automatic generation of marshmallow schemas from dataclasses. Why Using schemas in Python often means having both a class to represent your data and a class to represent its schema, which results in duplicated code that could fall out of sync. As of Python 3.6, types can be defined for class members, which allows libraries to generate schemas automatically. Therefore, you can document your APIs in a way that allows you to statically check that the code matches the documentation. Installation This package is hosted on PyPI. marshmallow 2 support marshmallow-dataclass no longer supports marshmallow 2. Install marshmallow dataclass NewType is deprecated in favor or type aliases using Annotated, as described above. This library exports a NewType function to create types that generate customized marshmallow fields. Keyword arguments to NewType are passed to the marshmallow field constructor. You can also pass a marshmallow field to NewType . Note: if you are using mypy , you will notice that mypy throws an error if a variable defined with NewType is used in a type annotation. To resolve this, add the marshmallow dataclass.mypy plugin to your mypy configuration, e.g.: Meta options Meta options are set the same way as a marshmallow Schema . Documentation The project documentation is hosted on GitHub Pages: https://lovasoa.github.io/marshmallow dataclass/ Contributing To install this project and make changes to it locally, follow the instructions in CONTRIBUTING","default_branch":null,"files":null,"tree":[],"storefront":"/r/lovasoa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lovasoa/marshmallow_dataclass/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}