graphql2python

A tool that generates python code out of your GraphQL schema.

MIT License

Downloads
54
Stars
15
Committers
2

Bot releases are hidden (Show)

graphql2python - v0.0.6 Latest Release

Published by denisart almost 2 years ago

New

[PR-18] License file to header of rendered data-model

[PR-19] Moved query sub-package to https://github.com/denisart/graphql-query

[PR-20] Updated documentation

graphql2python - v0.0.5

Published by denisart almost 2 years ago

New

[PR-13] Added derectives for query

Added the special class graphql2python.query.Directive for GraphQL field derectives. See https://denisart.github.io/graphql2python/query.html#directives

[PR-16] Added github actions for docs deploy

After publish a new tag the documentation page will be update: https://denisart.github.io/graphql2python

graphql2python - v0.0.4

Published by denisart almost 2 years ago

Added special typename field to each rendered Interface and Object:

class Character(GraphQLBaseModel):
      """
      An Interface type
      See https://graphql.org/learn/schema/#interfaces
      """
      appearsIn: _t.List[_t.Optional['Episode']]
      id: 'ID'
      character_name: 'String' = Field(..., alias='name')
      friends: _t.Optional[_t.List[_t.Optional['Character']]] = Field(default_factory=list)
      typename__: _t.Literal["Character"] = Field(default="Character", alias="__typename")

Update documentation

graphql2python - v0.0.2

Published by denisart almost 2 years ago

Add pydantic model generation

graphql2python - v0.0.1

Published by denisart almost 2 years ago

Create first release of this project. More info will be in new release notes...