{"library":"marshmallow3-annotations","title":"marshmallow3-annotations","description":"A library that allows using Python type annotations to define marshmallow 3 schemas, automatically generating Schema classes from annotated dataclasses or models. Version 1.1.0 supports dicts; release cadence is sporadic.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install marshmallow3-annotations"],"cli":null},"imports":["from marshmallow3_annotations import annotation_schema","from marshmallow3_annotations import AnnotationSchema"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from marshmallow import Schema, fields\nfrom marshmallow3_annotations import annotation_schema\nfrom dataclasses import dataclass\n\n@dataclass\nclass User:\n    name: str\n    email: str\n\nUserSchema = annotation_schema(User)\n# Use UserSchema like any marshmallow Schema\nschema = UserSchema()\nresult = schema.dump(User(name='John', email='john@example.com'))\nprint(result)  # {'name': 'John', 'email': 'john@example.com'}","lang":"python","description":"Decorate a dataclass with type annotations, then call annotation_schema to generate a marshmallow Schema.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}