{"id":13498121,"url":"https://github.com/marshmallow-code/marshmallow-jsonapi","last_synced_at":"2025-03-28T23:30:31.352Z","repository":{"id":45580188,"uuid":"42371441","full_name":"marshmallow-code/marshmallow-jsonapi","owner":"marshmallow-code","description":"JSON API 1.0 (https://jsonapi.org/) formatting with marshmallow","archived":true,"fork":false,"pushed_at":"2023-06-28T21:15:39.000Z","size":604,"stargazers_count":217,"open_issues_count":53,"forks_count":67,"subscribers_count":10,"default_branch":"dev","last_synced_at":"2024-10-30T00:00:14.256Z","etag":null,"topics":["deserialization","flask","json-api","marshmallow","rest-api","serialization","validation"],"latest_commit_sha":null,"homepage":"https://marshmallow-jsonapi.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marshmallow-code.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-09-12T20:10:55.000Z","updated_at":"2024-07-12T14:20:37.000Z","dependencies_parsed_at":"2023-01-21T19:30:11.315Z","dependency_job_id":"1ff28de3-4a65-431e-89ba-fedad1d3e719","html_url":"https://github.com/marshmallow-code/marshmallow-jsonapi","commit_stats":{"total_commits":485,"total_committers":31,"mean_commits":15.64516129032258,"dds":0.6164948453608248,"last_synced_commit":"e7273b4c3e6b7bad6279302caef2a87c96fbb785"},"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marshmallow-code%2Fmarshmallow-jsonapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marshmallow-code%2Fmarshmallow-jsonapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marshmallow-code%2Fmarshmallow-jsonapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marshmallow-code%2Fmarshmallow-jsonapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marshmallow-code","download_url":"https://codeload.github.com/marshmallow-code/marshmallow-jsonapi/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222426423,"owners_count":16982678,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deserialization","flask","json-api","marshmallow","rest-api","serialization","validation"],"created_at":"2024-07-31T20:00:51.430Z","updated_at":"2024-10-31T14:31:27.661Z","avatar_url":"https://github.com/marshmallow-code.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"*******************\nmarshmallow-jsonapi\n*******************\n\n.. image:: https://badgen.net/pypi/v/marshmallow-jsonapi\n    :target: https://pypi.org/project/marshmallow-jsonapi/\n    :alt: PyPI version\n\n.. image:: https://dev.azure.com/sloria/sloria/_apis/build/status/marshmallow-code.marshmallow-jsonapi?branchName=dev\n    :target: https://dev.azure.com/sloria/sloria/_build/latest?definitionId=7\u0026branchName=dev\n    :alt: Build status\n\n.. image:: https://readthedocs.org/projects/marshmallow-jsonapi/badge/\n   :target: https://marshmallow-jsonapi.readthedocs.io/\n   :alt: Documentation\n\n.. image:: https://badgen.net/badge/marshmallow/3\n    :target: https://marshmallow.readthedocs.io/en/latest/upgrading.html\n    :alt: marshmallow 3 compatible\n\n.. image:: https://badgen.net/badge/code%20style/black/000\n    :target: https://github.com/ambv/black\n    :alt: code style: black\n\nHomepage: http://marshmallow-jsonapi.readthedocs.io/\n\nJSON API 1.0 (`https://jsonapi.org \u003chttp://jsonapi.org/\u003e`_) formatting with `marshmallow \u003chttps://marshmallow.readthedocs.io\u003e`_.\n\nmarshmallow-jsonapi provides a simple way to produce JSON API-compliant data in any Python web framework.\n\n.. code-block:: python\n\n    from marshmallow_jsonapi import Schema, fields\n\n\n    class PostSchema(Schema):\n        id = fields.Str(dump_only=True)\n        title = fields.Str()\n\n        author = fields.Relationship(\n            \"/authors/{author_id}\", related_url_kwargs={\"author_id\": \"\u003cauthor.id\u003e\"}\n        )\n\n        comments = fields.Relationship(\n            \"/posts/{post_id}/comments\",\n            related_url_kwargs={\"post_id\": \"\u003cid\u003e\"},\n            # Include resource linkage\n            many=True,\n            include_resource_linkage=True,\n            type_=\"comments\",\n        )\n\n        class Meta:\n            type_ = \"posts\"\n\n\n    post_schema = PostSchema()\n    post_schema.dump(post)\n    # {\n    #     \"data\": {\n    #         \"id\": \"1\",\n    #         \"type\": \"posts\"\n    #         \"attributes\": {\n    #             \"title\": \"JSON API paints my bikeshed!\"\n    #         },\n    #         \"relationships\": {\n    #             \"author\": {\n    #                 \"links\": {\n    #                     \"related\": \"/authors/9\"\n    #                 }\n    #             },\n    #             \"comments\": {\n    #                 \"links\": {\n    #                     \"related\": \"/posts/1/comments/\"\n    #                 }\n    #                 \"data\": [\n    #                     {\"id\": 5, \"type\": \"comments\"},\n    #                     {\"id\": 12, \"type\": \"comments\"}\n    #                 ],\n    #             }\n    #         },\n    #     }\n    # }\n\nInstallation\n============\n::\n\n    pip install marshmallow-jsonapi\n\n\nDocumentation\n=============\n\nFull documentation is available at https://marshmallow-jsonapi.readthedocs.io/.\n\nRequirements\n============\n\n- Python \u003e= 3.6\n\nProject Links\n=============\n\n- Docs: http://marshmallow-jsonapi.readthedocs.io/\n- Changelog: http://marshmallow-jsonapi.readthedocs.io/en/latest/changelog.html\n- Contributing Guidelines: https://marshmallow-jsonapi.readthedocs.io/en/latest/contributing.html\n- PyPI: https://pypi.python.org/pypi/marshmallow-jsonapi\n- Issues: https://github.com/marshmallow-code/marshmallow-jsonapi/issues\n\nLicense\n=======\n\nMIT licensed. See the bundled `LICENSE \u003chttps://github.com/marshmallow-code/marshmallow-jsonapi/blob/master/LICENSE\u003e`_ file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarshmallow-code%2Fmarshmallow-jsonapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarshmallow-code%2Fmarshmallow-jsonapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarshmallow-code%2Fmarshmallow-jsonapi/lists"}