sgqlc moduleΒΆ
This package offers an easy-to-use GraphQL client. The source code is extensively documented, so to get started, have a look at the following modules:
Use
sgqlc.endpointto access GraphQL endpoints, notablysgqlc.endpoint.httpprovidesHTTPEndpointthat makes use ofurllib.request.urlopen().To declare GraphQL schema types as Python classes, use
sgqlc.types.These type classes can then be used by
sgqlc.operationto generate and interpret GraphQL queries.sgqlc.codegenoffers code generation to help usingsgqlc.typesfrom schema introspection results (schema.json) andsgqlc.operationusing GraphQL Domain Specific Language (DSL) executable documents.sgqlc.types.datetimeprovides bindings fordatetimeand ISO 8601, whilesgqlc.types.relayexposesNode,PageInfoandConnectiontypes, useful for pagination.
- license:
ISC