Simple GraphQL Client¶
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.endpoint
to access GraphQL endpoints, notablysgqlc.endpoint.http
providesHTTPEndpoint
that 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.operation
to generate and interpret GraphQL queries.sgqlc.codegen
offers code generation to help usingsgqlc.types
from schema introspection results (schema.json
) andsgqlc.operation
using GraphQL Domain Specific Language (DSL) executable documents.sgqlc.types.datetime
provides bindings fordatetime
and ISO 8601, whilesgqlc.types.relay
exposesNode
,PageInfo
andConnection
types, useful for pagination.
- license:
ISC
Table of Contents¶
- sgqlc module
- sgqlc-codegen Tool
- sgqlc.types module
- sgqlc.types.datetime module
- sgqlc.types.relay module
- sgqlc.types.uuid module
- sgqlc.operation module
- sgqlc.endpoint module
- sgqlc.endpoint.base module
- sgqlc.endpoint.http module
- sgqlc.endpoint.requests module
- sgqlc.endpoint.websocket module
- sgqlc.introspection module
Indices and tables¶
- license:
ISC