{"repo":"wyfo/apischema","free":true,"listed":false,"github":"https://github.com/wyfo/apischema","clone":"git clone https://github.com/wyfo/apischema.git","description":"JSON (de)serialization, GraphQL and JSON schema generation using Python typing.","language":"Python","stars":242,"topics":["dataclasses","python-typing","json-api","json-schema","openapi","python","validation","pypy3","graphql","graphql-schema"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"apischema JSON (de)serialization, GraphQL and JSON schema generation using Python typing. apischema makes your life easier when dealing with API data. Documentation https://wyfo.github.io/apischema/ Install It requires only Python 3.8+. PyPy3 is also fully supported. Why another library? (If you wonder how this differs from the pydantic library, see the dedicated section of the documentation — there are many differences.) This library fulfills the following goals: - stay as close as possible to the standard library (dataclasses, typing, etc.) — as a consequence we do not need plugins for editors/linters/etc.; - avoid object-oriented limitations — do not require a base class — thus handle easily every type ( Foo , list[Bar] , NewType(Id, int) , etc.) the same way. - be adaptable, provide tools to support any types (ORM, etc.); - avoid dynamic things like using raw strings for attributes name - play nicely with your IDE. No known alternative achieves all of this, and apischema is also (a lot) faster than all of them. On top of that, because APIs are not only JSON, apischema is also a complete GraphQL library Actually, apischema is even adaptable enough to enable support of competitor libraries in a few dozens of line of code (pydantic support example using conversions feature) Example apischema works out of the box with your data model. This example and further ones are using pytest API because they are in fact run as tests in the library CI Run the documentation examples All d","default_branch":null,"files":null,"tree":[],"storefront":"/r/wyfo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wyfo/apischema/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."}