Simple GraphQL Client
Project description
`sgqlc` - Simple GraphQL Client
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Introduction
------------
This package offers easy to use `GraphQL <http://graphql.org>`_
client. It's composed by the following modules:
- :mod:`sgqlc.types`: declare GraphQL in Python, base to generate and
interpret queries. Submodule :mod:`sgqlc.types.datetime` will
provide bindings for :mod:`datetime` and ISO 8601, while
:mod:`sgqlc.types.relay` will expose ``Node``, ``PageInfo`` and
``Connection``.
- :mod:`sgqlc.operation`: use declared types to generate and
interpret queries.
- :mod:`sgqlc.endpoint`: provide access to GraphQL endpoints, notably
:mod:`sgqlc.endpoint.http` provides :class:`HTTPEndpoint` using
:mod:`urllib.request.urlopen()`.
What's GraphQL?
===============
Straight from http://graphql.org:
**A query language for your API**
GraphQL is a query language for APIs and a runtime for fulfilling
those queries with your existing data. GraphQL provides a complete
and understandable description of the data in your API, gives
clients the power to ask for exactly what they need and nothing
more, makes it easier to evolve APIs over time, and enables
powerful developer tools.
It was created by Facebook based on their problems and solutions using
`REST <https://en.wikipedia.org/wiki/Representational_state_transfer>`_
to develop applications to consume their APIs. It was publicly
announced at
`React.js Conf 2015 <https://reactjs.org/blog/2015/02/20/introducing-relay-and-graphql.html>`_
and started to gain traction since then. Right now there are big names
transitioning from REST to GraphQL:
`Yelp <https://www.yelp.com/developers/graphql/guides/intro>`_
`Shopify <https://help.shopify.com/api/storefront-api/graphql>`_
and `GitHub <https://developer.github.com/v4/>`_, that did an
excellent
`post <https://githubengineering.com/the-github-graphql-api/>`_
to explain why they did change.
A short list of advantages over REST:
- Built-in schema, with documentation, strong typing and
introspection. There is no need to use
`Swagger <https://swagger.io>`_ or any other external tools to play
with it. Actually GraphQL provides a standard in-browser IDE for
exploring GraphQL endpoints: https://github.com/graphql/graphiql;
- Only fields you want. The queries must explicitly select which
fields are required, and that's all you're getting. If more fields
are added to the type, they **won't break** the API, since the new
fields won't be returned to old clients, as they didn't ask for such
fields. This makes much easier to keep APIs stable and **avoids
versioning**. Standard REST usually delivers all available fields in
the results, and when new fields are to be included, a new API
version is added (reflected in the URL path);
- All data in one request. Instead of navigating hypermedia-driven
RESTful services, like discovering new ``"_links": {"href"...`` and
executing a new HTTP request, with GraphQL you specify nested
queries and let the whole navigation to be done by the server. This
reduces latency **a lot**;
- Resulting JSON object matches exactly the given query selections, if
you requested for ``{ parent { child { info } } }``, you're going to
receive the JSON object ``{"parent": {"child": {"info": value }}}``.
From GitHub's
`Migrating from REST to GraphQL <https://developer.github.com/v4/guides/migrating-from-rest/>`_
one can see these in real life::
$ curl -v https://api.github.com/orgs/github/members
[
{
"login": "...",
"id": 1234,
"avatar_url": "https://avatars3.githubusercontent.com/u/...",
"gravatar_id": "",
"url": "https://api.github.com/users/...",
"html_url": "https://github.com/...",
"followers_url": "https://api.github.com/users/.../followers",
"following_url": "https://api.github.com/users/.../following{/other_user}",
"gists_url": "https://api.github.com/users/.../gists{/gist_id}",
"starred_url": "https://api.github.com/users/.../starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/.../subscriptions",
"organizations_url": "https://api.github.com/users/.../orgs",
"repos_url": "https://api.github.com/users/.../repos",
"events_url": "https://api.github.com/users/.../events{/privacy}",
"received_events_url": "https://api.github.com/users/.../received_events",
"type": "User",
"site_admin": true
},
...
]
brings the whole set of member information, however you just want name
and avatar URL::
query {
organization(login:"github") { # select the organization
members(first: 100) { # then select the organization's members
edges { # edges + node: convention for paginated queries
node {
name
avatarUrl
}
}
}
}
}
Likewise, instead of 4 HTTP requests::
curl -v https://api.github.com/repos/profusion/sgqlc/pulls/9
curl -v https://api.github.com/repos/profusion/sgqlc/pulls/9/commits
curl -v https://api.github.com/repos/profusion/sgqlc/issues/9/comments
curl -v https://api.github.com/repos/profusion/sgqlc/pulls/9/reviews
A single GraphQL query brings all the needed information, and just the
needed information::
query {
repository(owner: "profusion", name: "sgqlc") {
pullRequest(number: 9) {
commits(first: 10) { # commits of profusion/sgqlc PR #9
edges {
node { commit { oid, message } }
}
}
comments(first: 10) { # comments of profusion/sgqlc PR #9
edges {
node {
body
author { login }
}
}
}
reviews(first: 10) { # reviews of profusion/sgqlc/ PR #9
edges { node { state } }
}
}
}
}
Motivation to create `sgqlc`
============================
As seen above, writing GraphQL queries is very easy and equally easy
to interpret the results, **what was the rationale to create sgqlc?**
- GraphQL has its domain-specific language (DSL), and mixing two
languages is always painful, as seen with SQL + Python, HTML +
Python... Being able to write just Python in Python is much
better. Not to say that GraphQL naming convention is closer to
Java/JavaScript, using ``aNameFormat`` instead of Python's
``a_name_format``.
- Navigating dict-of-stuff is bit painful:
``d["repository"]["pullRequest"]["commits"]["edges"]["node"]``,
since these are valid Python identifiers, we better write:
``repository.pull_request.commits.edges.node``.
- Handling new ``scalar``. GraphQL allows one to define new scalar
types, such as ``Date``, ``Time`` and ``DateTime``. Often these are
serialized as ISO 8601 strings and the user must parse them in their
application. We offer ``sgqlc.types.datetime`` to automatically
generate :class:`datetime.date`, :class:`datetime.time` and
:class:`datetime.datetime`.
- Make it easy to write dynamic queries, including nested. As seen,
GraphQL can be used to fetch lots of information in one go, however
if what you need (arguments and fields) changes based on some
variable, such as user input or cached data, then you need to
concatenate strings to compose the final query. This can be error
prone and servers may block you due invalid queries. Some tools
"solve" this by parsing the query locally before sending to
server. However usually the indentation is screwed and reviewing it
is painful. We change that approach: use
:class:`sgqlc.operation.Operation` and it will always generate valid
queries, which can be printed out and properly indented. Bonus point
is that it can be used to later interpret the JSON results into native
Python objects.
- Usability improvements whenever needed. For instance
`Relay <https://facebook.github.io/relay/>`_ published their
`Cursor Connections Specification <https://facebook.github.io/relay/graphql/connections.htm>`_
and its widely used. To load more data, you need to extend the
previous data with newly fetched information, updating not only the
nodes and edges, but also page information. This is done
automatically by :class:`sgqlc.types.relay.Connection`.
Future plans include to generate the Python classes from GraphQL
schema, which can be automatically fetched from an endpoint using
the introspection query.
Installation
------------
Automatic::
pip install sgqlc
From source using ``pip``::
pip install .
Usage
-----
To reach a GraphQL endpoint using synchronous `HTTPEndpoint` with a
hand-written query (see more at ``examples/basic/http-endpoint.py``):
.. code-block:: python
from sgqlc.endpoint.http import HTTPEndpoint
url = 'http://server.com/graphql'
headers = {'Authorization': 'bearer TOKEN'}
query = 'query { ... }'
variables = {'varName': 'value'}
endpoint = HTTPEndpoint(url, headers)
data = endpoint(query, variables)
However, writing GraphQL queries and later interpreting the results
may be cumbersome, that's solved with our ``sgqlc.types``, that is
usually paired with ``sgqlc.operation`` to generate queries and then
interpret results (see more at ``examples/basic/types.py``). The
example below matches a subset of `GitHub API v4
<https://developer.github.com/v4/query/>`_, in GraphQL syntax it would
be::
query {
repository(owner: "profusion", name: "sgqlc") {
issues(first: 100) {
nodes {
number
title
}
pageInfo {
hasNextPage
endCursor
}
}
}
}
The output JSON object is:
.. code-block:: json
{
"data": {
"repository": {
"issues": {
"nodes": [
{"number": 1, "title": "..."},
{"number": 2, "title": "..."}
]
},
"pageInfo": {
"hasNextPage": false,
"endCursor": "..."
}
}
}
}
.. code-block:: python
from sgqlc.endpoint.http import HTTPEndpoint
from sgqlc.types import Type, Field, list_of
from sgqlc.types.relay import Connection, connection_args
from sgqlc.operation import Operation
# Declare types matching GitHub GraphQL schema:
class Issue(Type):
number = int
title = str
class IssueConnection(Connection): # Connection provides page_info!
nodes = list_of(Issue)
class Repository(Type):
issues = Field(IssueConnection, args=connection_args())
class Query(Type): # GraphQL's root
repository = Field(Repository, args={'owner': str, 'name': str})
# Generate an operation on Query, selecting fields:
op = Operation(Query)
# select a field, here with selection arguments, then another field:
issues = op.repository(owner=owner, name=name).issues(first=100)
# select sub-fields explicitly: { nodes { number title } }
issues.nodes.number()
issues.nodes.title()
# here uses __fields__() to select by name (*args)
issues.page_info.__fields__('has_next_page')
# here uses __fields__() to select by name (**kwargs)
issues.page_info.__fields__(end_cursor=True)
# you can print the resulting GraphQL
print(op)
# Call the endpoint:
data = endpoint(op)
# Interpret results into native objects
repo = (op + data).repository
for issue in repo.issues.nodes:
print(issue)
Why double-underscore and overloaded arithmetic methods?
========================================================
Since we don't want to cobbler GraphQL fields, we cannot provide
nicely named methods. Then we use overloaded methods such as
``__iadd__``, ``__add__``, ``__bytes__`` (compressed GraphQL
representation) and ``__str__`` (indented GraphQL representation).
To select fields by name ``__fields__(*names, **names_and_args)``.
This helps with repetitive situations and can be used to "include all
fields", or "include all except...":
.. code-block:: python
# just 'a' and 'b'
type_selection.__fields__('a', 'b')
type_selection.__fields__(a=True, b=True) # equivalent
# a(arg1: value1), b(arg2: value2):
type_selection.__fields__(
a={'arg1': value1},
b={'arg2': value2})
# selects all possible fields
type_selection.__fields__()
# all but 'a' and 'b'
type_selection.__fields__(__exclude__=('a', 'b'))
type_selection.__fields__(a=False, b=False)
Code Generator
--------------
Manually converting an existing GraphQL schema to ``sgqlc.types``
subclasses is boring and error prone. To aid such task we offer a code
generator that outputs a Python module straight from JSON of an
introspection call:
.. code-block:: console
user@host$ python3 -m sgqlc.introspection \
--exclude-deprecated \
--exclude-description \
-H "Authorization: bearer ${GH_TOKEN}" \
https://api.github.com/graphql \
github_schema.json
user@host$ sgqlc-codegen github_schema.json github_schema.py
This generates ``github_schema`` that provides the
:class:`sgqlc.types.Schema` instance of the same name
``github_schema``. Then it's a matter of using that in your Python code, as in the example below from ``examples/github/github-agile-dashboard.py``:
.. code-block:: python
from sgqlc.operation import Operation
from github_schema import github_schema as schema
op = Operation(schema.Query) # note 'schema.'
# -- code below follows as the original usage example:
# select a field, here with selection arguments, then another field:
issues = op.repository(owner=owner, name=name).issues(first=100)
# select sub-fields explicitly: { nodes { number title } }
issues.nodes.number()
issues.nodes.title()
# here uses __fields__() to select by name (*args)
issues.page_info.__fields__('has_next_page')
# here uses __fields__() to select by name (**kwargs)
issues.page_info.__fields__(end_cursor=True)
# you can print the resulting GraphQL
print(op)
# Call the endpoint:
data = endpoint(op)
# Interpret results into native objects
repo = (op + data).repository
for issue in repo.issues.nodes:
print(issue)
Authors
-------
- `Gustavo Sverzut Barbieri <barbieri@profusion.mobi>`_
License
-------
`sgqlc` is licensed under the `ISC <https://opensource.org/licenses/ISC>`_.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Introduction
------------
This package offers easy to use `GraphQL <http://graphql.org>`_
client. It's composed by the following modules:
- :mod:`sgqlc.types`: declare GraphQL in Python, base to generate and
interpret queries. Submodule :mod:`sgqlc.types.datetime` will
provide bindings for :mod:`datetime` and ISO 8601, while
:mod:`sgqlc.types.relay` will expose ``Node``, ``PageInfo`` and
``Connection``.
- :mod:`sgqlc.operation`: use declared types to generate and
interpret queries.
- :mod:`sgqlc.endpoint`: provide access to GraphQL endpoints, notably
:mod:`sgqlc.endpoint.http` provides :class:`HTTPEndpoint` using
:mod:`urllib.request.urlopen()`.
What's GraphQL?
===============
Straight from http://graphql.org:
**A query language for your API**
GraphQL is a query language for APIs and a runtime for fulfilling
those queries with your existing data. GraphQL provides a complete
and understandable description of the data in your API, gives
clients the power to ask for exactly what they need and nothing
more, makes it easier to evolve APIs over time, and enables
powerful developer tools.
It was created by Facebook based on their problems and solutions using
`REST <https://en.wikipedia.org/wiki/Representational_state_transfer>`_
to develop applications to consume their APIs. It was publicly
announced at
`React.js Conf 2015 <https://reactjs.org/blog/2015/02/20/introducing-relay-and-graphql.html>`_
and started to gain traction since then. Right now there are big names
transitioning from REST to GraphQL:
`Yelp <https://www.yelp.com/developers/graphql/guides/intro>`_
`Shopify <https://help.shopify.com/api/storefront-api/graphql>`_
and `GitHub <https://developer.github.com/v4/>`_, that did an
excellent
`post <https://githubengineering.com/the-github-graphql-api/>`_
to explain why they did change.
A short list of advantages over REST:
- Built-in schema, with documentation, strong typing and
introspection. There is no need to use
`Swagger <https://swagger.io>`_ or any other external tools to play
with it. Actually GraphQL provides a standard in-browser IDE for
exploring GraphQL endpoints: https://github.com/graphql/graphiql;
- Only fields you want. The queries must explicitly select which
fields are required, and that's all you're getting. If more fields
are added to the type, they **won't break** the API, since the new
fields won't be returned to old clients, as they didn't ask for such
fields. This makes much easier to keep APIs stable and **avoids
versioning**. Standard REST usually delivers all available fields in
the results, and when new fields are to be included, a new API
version is added (reflected in the URL path);
- All data in one request. Instead of navigating hypermedia-driven
RESTful services, like discovering new ``"_links": {"href"...`` and
executing a new HTTP request, with GraphQL you specify nested
queries and let the whole navigation to be done by the server. This
reduces latency **a lot**;
- Resulting JSON object matches exactly the given query selections, if
you requested for ``{ parent { child { info } } }``, you're going to
receive the JSON object ``{"parent": {"child": {"info": value }}}``.
From GitHub's
`Migrating from REST to GraphQL <https://developer.github.com/v4/guides/migrating-from-rest/>`_
one can see these in real life::
$ curl -v https://api.github.com/orgs/github/members
[
{
"login": "...",
"id": 1234,
"avatar_url": "https://avatars3.githubusercontent.com/u/...",
"gravatar_id": "",
"url": "https://api.github.com/users/...",
"html_url": "https://github.com/...",
"followers_url": "https://api.github.com/users/.../followers",
"following_url": "https://api.github.com/users/.../following{/other_user}",
"gists_url": "https://api.github.com/users/.../gists{/gist_id}",
"starred_url": "https://api.github.com/users/.../starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/.../subscriptions",
"organizations_url": "https://api.github.com/users/.../orgs",
"repos_url": "https://api.github.com/users/.../repos",
"events_url": "https://api.github.com/users/.../events{/privacy}",
"received_events_url": "https://api.github.com/users/.../received_events",
"type": "User",
"site_admin": true
},
...
]
brings the whole set of member information, however you just want name
and avatar URL::
query {
organization(login:"github") { # select the organization
members(first: 100) { # then select the organization's members
edges { # edges + node: convention for paginated queries
node {
name
avatarUrl
}
}
}
}
}
Likewise, instead of 4 HTTP requests::
curl -v https://api.github.com/repos/profusion/sgqlc/pulls/9
curl -v https://api.github.com/repos/profusion/sgqlc/pulls/9/commits
curl -v https://api.github.com/repos/profusion/sgqlc/issues/9/comments
curl -v https://api.github.com/repos/profusion/sgqlc/pulls/9/reviews
A single GraphQL query brings all the needed information, and just the
needed information::
query {
repository(owner: "profusion", name: "sgqlc") {
pullRequest(number: 9) {
commits(first: 10) { # commits of profusion/sgqlc PR #9
edges {
node { commit { oid, message } }
}
}
comments(first: 10) { # comments of profusion/sgqlc PR #9
edges {
node {
body
author { login }
}
}
}
reviews(first: 10) { # reviews of profusion/sgqlc/ PR #9
edges { node { state } }
}
}
}
}
Motivation to create `sgqlc`
============================
As seen above, writing GraphQL queries is very easy and equally easy
to interpret the results, **what was the rationale to create sgqlc?**
- GraphQL has its domain-specific language (DSL), and mixing two
languages is always painful, as seen with SQL + Python, HTML +
Python... Being able to write just Python in Python is much
better. Not to say that GraphQL naming convention is closer to
Java/JavaScript, using ``aNameFormat`` instead of Python's
``a_name_format``.
- Navigating dict-of-stuff is bit painful:
``d["repository"]["pullRequest"]["commits"]["edges"]["node"]``,
since these are valid Python identifiers, we better write:
``repository.pull_request.commits.edges.node``.
- Handling new ``scalar``. GraphQL allows one to define new scalar
types, such as ``Date``, ``Time`` and ``DateTime``. Often these are
serialized as ISO 8601 strings and the user must parse them in their
application. We offer ``sgqlc.types.datetime`` to automatically
generate :class:`datetime.date`, :class:`datetime.time` and
:class:`datetime.datetime`.
- Make it easy to write dynamic queries, including nested. As seen,
GraphQL can be used to fetch lots of information in one go, however
if what you need (arguments and fields) changes based on some
variable, such as user input or cached data, then you need to
concatenate strings to compose the final query. This can be error
prone and servers may block you due invalid queries. Some tools
"solve" this by parsing the query locally before sending to
server. However usually the indentation is screwed and reviewing it
is painful. We change that approach: use
:class:`sgqlc.operation.Operation` and it will always generate valid
queries, which can be printed out and properly indented. Bonus point
is that it can be used to later interpret the JSON results into native
Python objects.
- Usability improvements whenever needed. For instance
`Relay <https://facebook.github.io/relay/>`_ published their
`Cursor Connections Specification <https://facebook.github.io/relay/graphql/connections.htm>`_
and its widely used. To load more data, you need to extend the
previous data with newly fetched information, updating not only the
nodes and edges, but also page information. This is done
automatically by :class:`sgqlc.types.relay.Connection`.
Future plans include to generate the Python classes from GraphQL
schema, which can be automatically fetched from an endpoint using
the introspection query.
Installation
------------
Automatic::
pip install sgqlc
From source using ``pip``::
pip install .
Usage
-----
To reach a GraphQL endpoint using synchronous `HTTPEndpoint` with a
hand-written query (see more at ``examples/basic/http-endpoint.py``):
.. code-block:: python
from sgqlc.endpoint.http import HTTPEndpoint
url = 'http://server.com/graphql'
headers = {'Authorization': 'bearer TOKEN'}
query = 'query { ... }'
variables = {'varName': 'value'}
endpoint = HTTPEndpoint(url, headers)
data = endpoint(query, variables)
However, writing GraphQL queries and later interpreting the results
may be cumbersome, that's solved with our ``sgqlc.types``, that is
usually paired with ``sgqlc.operation`` to generate queries and then
interpret results (see more at ``examples/basic/types.py``). The
example below matches a subset of `GitHub API v4
<https://developer.github.com/v4/query/>`_, in GraphQL syntax it would
be::
query {
repository(owner: "profusion", name: "sgqlc") {
issues(first: 100) {
nodes {
number
title
}
pageInfo {
hasNextPage
endCursor
}
}
}
}
The output JSON object is:
.. code-block:: json
{
"data": {
"repository": {
"issues": {
"nodes": [
{"number": 1, "title": "..."},
{"number": 2, "title": "..."}
]
},
"pageInfo": {
"hasNextPage": false,
"endCursor": "..."
}
}
}
}
.. code-block:: python
from sgqlc.endpoint.http import HTTPEndpoint
from sgqlc.types import Type, Field, list_of
from sgqlc.types.relay import Connection, connection_args
from sgqlc.operation import Operation
# Declare types matching GitHub GraphQL schema:
class Issue(Type):
number = int
title = str
class IssueConnection(Connection): # Connection provides page_info!
nodes = list_of(Issue)
class Repository(Type):
issues = Field(IssueConnection, args=connection_args())
class Query(Type): # GraphQL's root
repository = Field(Repository, args={'owner': str, 'name': str})
# Generate an operation on Query, selecting fields:
op = Operation(Query)
# select a field, here with selection arguments, then another field:
issues = op.repository(owner=owner, name=name).issues(first=100)
# select sub-fields explicitly: { nodes { number title } }
issues.nodes.number()
issues.nodes.title()
# here uses __fields__() to select by name (*args)
issues.page_info.__fields__('has_next_page')
# here uses __fields__() to select by name (**kwargs)
issues.page_info.__fields__(end_cursor=True)
# you can print the resulting GraphQL
print(op)
# Call the endpoint:
data = endpoint(op)
# Interpret results into native objects
repo = (op + data).repository
for issue in repo.issues.nodes:
print(issue)
Why double-underscore and overloaded arithmetic methods?
========================================================
Since we don't want to cobbler GraphQL fields, we cannot provide
nicely named methods. Then we use overloaded methods such as
``__iadd__``, ``__add__``, ``__bytes__`` (compressed GraphQL
representation) and ``__str__`` (indented GraphQL representation).
To select fields by name ``__fields__(*names, **names_and_args)``.
This helps with repetitive situations and can be used to "include all
fields", or "include all except...":
.. code-block:: python
# just 'a' and 'b'
type_selection.__fields__('a', 'b')
type_selection.__fields__(a=True, b=True) # equivalent
# a(arg1: value1), b(arg2: value2):
type_selection.__fields__(
a={'arg1': value1},
b={'arg2': value2})
# selects all possible fields
type_selection.__fields__()
# all but 'a' and 'b'
type_selection.__fields__(__exclude__=('a', 'b'))
type_selection.__fields__(a=False, b=False)
Code Generator
--------------
Manually converting an existing GraphQL schema to ``sgqlc.types``
subclasses is boring and error prone. To aid such task we offer a code
generator that outputs a Python module straight from JSON of an
introspection call:
.. code-block:: console
user@host$ python3 -m sgqlc.introspection \
--exclude-deprecated \
--exclude-description \
-H "Authorization: bearer ${GH_TOKEN}" \
https://api.github.com/graphql \
github_schema.json
user@host$ sgqlc-codegen github_schema.json github_schema.py
This generates ``github_schema`` that provides the
:class:`sgqlc.types.Schema` instance of the same name
``github_schema``. Then it's a matter of using that in your Python code, as in the example below from ``examples/github/github-agile-dashboard.py``:
.. code-block:: python
from sgqlc.operation import Operation
from github_schema import github_schema as schema
op = Operation(schema.Query) # note 'schema.'
# -- code below follows as the original usage example:
# select a field, here with selection arguments, then another field:
issues = op.repository(owner=owner, name=name).issues(first=100)
# select sub-fields explicitly: { nodes { number title } }
issues.nodes.number()
issues.nodes.title()
# here uses __fields__() to select by name (*args)
issues.page_info.__fields__('has_next_page')
# here uses __fields__() to select by name (**kwargs)
issues.page_info.__fields__(end_cursor=True)
# you can print the resulting GraphQL
print(op)
# Call the endpoint:
data = endpoint(op)
# Interpret results into native objects
repo = (op + data).repository
for issue in repo.issues.nodes:
print(issue)
Authors
-------
- `Gustavo Sverzut Barbieri <barbieri@profusion.mobi>`_
License
-------
`sgqlc` is licensed under the `ISC <https://opensource.org/licenses/ISC>`_.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
sgqlc-3-py3.7.egg
(47.2 kB
view details)
sgqlc-3-py3-none-any.whl
(48.4 kB
view details)
File details
Details for the file sgqlc-3.macosx-10.13-x86_64.tar.gz
.
File metadata
- Download URL: sgqlc-3.macosx-10.13-x86_64.tar.gz
- Upload date:
- Size: 41.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac6659052c2784c69d45e7f27d5f1fdc87e4c9313f62e1947203c503614bc063 |
|
MD5 | b176e85f84d73ed68a25d4d00ca30396 |
|
BLAKE2b-256 | 4aa6ce3041033bffd194d5c8026437e33d86fed499daba8289dbd6b78ce9b5ad |
File details
Details for the file sgqlc-3-py3.7.egg
.
File metadata
- Download URL: sgqlc-3-py3.7.egg
- Upload date:
- Size: 47.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d219233354e17366df88e0aa747d8c3a5e2ecbe1e492c77b53eb7a0d620b1880 |
|
MD5 | 794cea101b4fefbb18276d6e23d5341f |
|
BLAKE2b-256 | bbc249a7e3af98e0f8e368a7f4ebfe35977cf27971ca39ef53fac0a6e571d14f |
File details
Details for the file sgqlc-3-py3-none-any.whl
.
File metadata
- Download URL: sgqlc-3-py3-none-any.whl
- Upload date:
- Size: 48.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c1de9179312e193fd31d42e55f483e6bee6b17fdf2201f152d26a4eab5c4f36 |
|
MD5 | 4e327df6e2da4e8869f07248065c3798 |
|
BLAKE2b-256 | 1253bc3d5bf6e96f83939e7b3170a7ebc628a6028ee7cae4f4fd9b66d52e62da |