Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use httpx with gql-cli if aiohttp is not available on auto transport #528

Conversation

leszekhanusz
Copy link
Collaborator

Using the httpx transport by default with gql-cli if aiohttp is not available if no transport is specified.

Related: #527

Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (57ef910) to head (47b15ef).
Report is 22 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #528   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           30        30           
  Lines         3102      3139   +37     
=========================================
+ Hits          3102      3139   +37     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@leszekhanusz leszekhanusz merged commit b066e89 into graphql-python:master Jan 30, 2025
15 checks passed
@leszekhanusz leszekhanusz deleted the feature_gql_cli_auto_httpx_transport branch January 30, 2025 23:57
@traylenator
Copy link

echo 'query { continent(code:"AF") { name } }' | gql-cli https://countries.trevorblades.com
Error: 

No suitable dependencies has been found for an http(s) backend (aiohttp or httpx).

Please check the install documentation at:
https://gql.readthedocs.io/en/stable/intro.html#installation

Thanks.

@leszekhanusz
Copy link
Collaborator Author

@traylenator What is the problem? Did you check the installation instructions?

@traylenator
Copy link

@traylenator What is the problem? Did you check the installation instructions?

Nothing is wrong - was just saying thanks . All good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants