Graphql2python

Latest version: v0.0.6

Safety actively analyzes 624875 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.0.6

New

[[PR-18]](https://github.com/denisart/graphql2python/pull/18) License file to header of rendered data-model

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

[[PR-20]](https://github.com/denisart/graphql2python/pull/20) Updated documentation

0.0.5

New

**[[PR-13](https://github.com/denisart/graphql2python/pull/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](https://github.com/denisart/graphql2python/pull/16)]** Added github actions for docs deploy

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

0.0.4

Added special typename field to each rendered Interface and Object:

python
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

0.0.3

**New**

- [Add update_forward_refs to each rendered object and interface](https://github.com/denisart/graphql2python/pull/6)
- [Add docs with sphinx](https://github.com/denisart/graphql2python/pull/7)

**Fixed**

- [Fix bug when union has one element](https://github.com/denisart/graphql2python/pull/5)

0.0.2

Add pydantic model generation

0.0.1

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

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.