py-graphql-client icon indicating copy to clipboard operation
py-graphql-client copied to clipboard

Dead-simple GraphQL client with subscriptions over websockets

Results 13 py-graphql-client issues
Sort by recently updated
recently updated
newest added

If there is an open subscription the client should automatically retry / reconnect, maybe with an exponential backoff. I have found the tenacity package helpful for this in the past....

On Python 3.8.12 with py-graphql-client 0.1.1 and websockets-client 0.54.0 running on Ubuntu focal, I see this exception when I call close(): ``` stopping 5990f26aabc1472bad9913d8d3cf34b9 Exception in thread Thread-1: Traceback (most...

Hi @ecthiender . Trying to implement your solution to reach the WS : wss://ws.sorare.com/cable (correct URL given by the dev team) Wrote a basic subscription that works on Playground. But...

Is there a way to send some flag to ignore ssl certificate check? I have one environment which is failing to connect with below message: `ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify...

running the simple example on the homepage ``` from graphql_client import GraphQLClient def callback(_id, data): print("got new data..") print(f"msg id: {_id}. data: {data}") with GraphQLClient(endpoint) as client: sub_id = client.subscribe(subscription,...

Hi, I'm looking to pass some auth information in subscription parameters, but the payload for the connection initialization wraps the headers in a nested `headers` attribute ([here](https://github.com/ecthiender/py-graphql-client/blob/master/graphql_client/__init__.py#L149), instead of passing...

Can I get the Id of the web socket connection exposed on the GraphQlClient object? I wanted to use it for logging purposes and reconciliation with the server side records

enhancement
good first issue

Hi !, maybe my question is out the range of this library , but i need handle exception when the client lost connection whit the server for any reason, and...

Hi there! Here is a short fix for better logging configuration, based on https://docs.python.org/3/howto/logging.html#configuring-logging-for-a-library.

``` (.venv) ➜ fetcher python main.py --- request header --- GET /graphql HTTP/1.1 Upgrade: websocket Connection: Upgrade Host: localhost:8080 Origin: http://localhost:8080 Sec-WebSocket-Key: Y/T3i5rm6rUT2DcY1WBSHQ== Sec-WebSocket-Version: 13 ----------------------- --- response header ---...

question