Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Qlient AIOHTTP: Python GraphQL Client

DeepSource DeepSource pypi versions license

A blazingly fast and modern graphql client based on qlient-core and aiohttp

Key Features

  • Compatible with Python 3.7 and above
  • Build on top of qlient-core and aiohttp
  • support for subscriptions

Help

See the documentation for more details.

Quick Preview

This preview is using the official github/graphql/swapi-graphql graphql api.

import asyncio

from qlient.aiohttp import AIOHTTPClient, GraphQLResponse


async def main():
    async with AIOHTTPClient("https://swapi-graphql.netlify.app/.netlify/functions/index") as client:
        result: GraphQLResponse = await client.query.film(
            ["title", "id"],  # fields selection
            id="ZmlsbXM6MQ=="  # query arguments
        )

        print(result.request.query)
        print(result.data)


asyncio.run(main())

Which results in the following query being sent to the server

query film($id: ID) {
    film(id: $id) {
        title
        id
    }
}

And returns the body below

{
  "film": {
    "title": "A New Hope",
    "id": "ZmlsbXM6MQ=="
  }
}

Metadata

Release files for qlient-aiohttp 0.1.0b2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qlient-aiohttp 0.1.0b2
File Size Uploaded
qlient-aiohttp-0.1.0b2.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qlient-aiohttp 0.1.0b2
File Interpreter ABI Platform
qlient_aiohttp-0.1.0b2-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / qlient-aiohttp-0.1.0b2.tar.gz

Download URL qlient-aiohttp-0.1.0b2.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
12bc9aeb947df3b620094af5d3dd698a2f42970b8b378aa3041e3215c7789f8e
BLAKE2b-256 checksum
How to use checksums
13ed7bc7ca788fc36a0900e30d2084509f0c52497a131e24f23cd3bea39349ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.13 Linux/5.13.0-1031-azure

Release files / qlient_aiohttp-0.1.0b2-py3-none-any.whl

Download URL qlient_aiohttp-0.1.0b2-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7fd0c72ae351fe863bee9d0a9bb61ec4f00e76c0f83d29e49938538d9da1f29
BLAKE2b-256 checksum
How to use checksums
3fafd4097c607a3e328a8cc7f67d88afcb6b3464f11c056ad2424ddeee98b60f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.13 Linux/5.13.0-1031-azure

Release history Release notifications | RSS feed

This release

0.1.0b2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page