A tool that generates python code out of your GraphQL schema.
MIT License
Bot releases are hidden (Show)
[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
Published by denisart almost 2 years ago
[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
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
Published by denisart almost 2 years ago
Published by denisart almost 2 years ago
Add pydantic model generation
Published by denisart almost 2 years ago
Create first release of this project. More info will be in new release notes...