Skip to main content

asyncio-compatible HTTP2 client for Python based on `reqwest` Rust crate and pyo3/pyo3-asyncio

Project description

async-http2

GitHub Actions PyPI

asyncio-compatible HTTP2 client for Python based on reqwest Rust crate and pyo3/pyo3-asyncio

Installation

pip install async-http2

Usage

import asyncio
import logging

from async_http2 import Client


def main():
    logging.basicConfig(level=logging.INFO, format='%(asctime)-15s %(message)s')

    client = Client(timeout=60)

    loop = asyncio.get_event_loop()
    loop.run_until_complete(work(client))


async def work(client):
    resp_data = await client.get('http://localhost:1010', {
        'fast': '1',
    })
    logging.info(resp_data)


if __name__ == '__main__':
    main()

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

async_http2-0.1.1-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64

async_http2-0.1.1-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl (3.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.12+ i686

async_http2-0.1.1-cp39-none-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.9 Windows x86-64

async_http2-0.1.1-cp39-none-win32.whl (1.7 MB view details)

Uploaded CPython 3.9 Windows x86

async_http2-0.1.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

async_http2-0.1.1-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl (3.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686

async_http2-0.1.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (4.2 MB view details)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

async_http2-0.1.1-cp39-cp39-macosx_10_7_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

async_http2-0.1.1-cp38-none-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.8 Windows x86-64

async_http2-0.1.1-cp38-none-win32.whl (1.7 MB view details)

Uploaded CPython 3.8 Windows x86

async_http2-0.1.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

async_http2-0.1.1-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl (3.4 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

async_http2-0.1.1-cp37-none-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.7 Windows x86-64

async_http2-0.1.1-cp37-none-win32.whl (1.7 MB view details)

Uploaded CPython 3.7 Windows x86

async_http2-0.1.1-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

async_http2-0.1.1-cp37-cp37m-manylinux_2_12_i686.manylinux2010_i686.whl (3.4 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686

async_http2-0.1.1-cp36-none-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.6 Windows x86-64

async_http2-0.1.1-cp36-none-win32.whl (1.7 MB view details)

Uploaded CPython 3.6 Windows x86

async_http2-0.1.1-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

async_http2-0.1.1-cp36-cp36m-manylinux_2_12_i686.manylinux2010_i686.whl (3.4 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ i686

File details

Details for the file async_http2-0.1.1-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for async_http2-0.1.1-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 fbcaec52bfc0aee47143865eda19ed8b1261c93b86ff52d97c214e5871830666
MD5 9514feba99301ed335e1a689ce0bfdfb
BLAKE2b-256 01a423906420483c785d0c3a09e2730c1c17158f0fabc77e84b5928461940084

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for async_http2-0.1.1-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 ddcb93003d0d1c58e58ec2050aae540a04dee77f31f7c8fbf712cc65500d1614
MD5 62c3706dbba3677681aaa1704788bc50
BLAKE2b-256 8f9c542a312bdfdb7d7a83a63ce40af2e7b20d38f59286c4f99166b7828368da

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp39-none-win_amd64.whl.

File metadata

  • Download URL: async_http2-0.1.1-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for async_http2-0.1.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 cf2284d0dcb4ae78f7dde597d0e4d8cc1262404069dd8c461811eb6e41e591ba
MD5 cc05481cf6f21118beffdc75eda6d25c
BLAKE2b-256 332e152961523f6f0141b730e0c1613f64d4e5f1e005afbf8cea801bab8e6761

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp39-none-win32.whl.

File metadata

  • Download URL: async_http2-0.1.1-cp39-none-win32.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for async_http2-0.1.1-cp39-none-win32.whl
Algorithm Hash digest
SHA256 38c5c017c7ba4063213bdd30bd487ca93a7f543503b212a9c824b1ab498d2e03
MD5 b961f6116913678f73edf9a000023ff4
BLAKE2b-256 2d8b95576783f7356e5ee97da189dabf3bbd62ebf34b7593f3235237abebc239

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for async_http2-0.1.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 689ec54c091e22c1f58923960affef99ddc35a117810247510d1117ce7a1d516
MD5 4472ef0f6949a705ada6d38fecf8ead2
BLAKE2b-256 30870efa7d47365ce854720053ca4ef810877259238d9c4f1eae146c10356354

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for async_http2-0.1.1-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 6bceaf9b3efbd20f00e8620d546cdce6051f239a1484e9e68a022ddca4794966
MD5 0114fd75731185c122611269cbaf4093
BLAKE2b-256 644ae1c5752d1896448c6152a07875f3670dea774b13852ec9f0529c0cb6e886

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for async_http2-0.1.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 af7b15ab53bc9ad9bbcd0b7de7e7872cfaabbe1fd05b991eabef32f961114d86
MD5 c632199e9466a8f4868e8f605a5d0beb
BLAKE2b-256 d2262682a2012ecd99213843857df6f0545994bdf26766124cb7d4654111034a

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp39-cp39-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: async_http2-0.1.1-cp39-cp39-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: CPython 3.9, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for async_http2-0.1.1-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 63168e290a66fd9375f99c91fa4c6ad88bfb4bcfb8b4cb957dcce75ccb893fb1
MD5 8b8e5a4d95bc81ae7473b225168da65b
BLAKE2b-256 11be6c6454bf2e1dca7f9821e29bd3ce7244e2a5086483b956d46b2a6e64c953

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp38-none-win_amd64.whl.

File metadata

  • Download URL: async_http2-0.1.1-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for async_http2-0.1.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 df188d7c5cdc3e540fa7012f47c91740728fe7a9ebdbc50b2d933cf1a476823c
MD5 527b1e4118203f83ee4962b5bbc11fa4
BLAKE2b-256 8e3f220364377ddfe8f27443ad1e42d46acd66845c4fec9710cb64e2b943c246

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp38-none-win32.whl.

File metadata

  • Download URL: async_http2-0.1.1-cp38-none-win32.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for async_http2-0.1.1-cp38-none-win32.whl
Algorithm Hash digest
SHA256 8b1127e54524456b61396d88c405a15a4baaf77d4f77660cb64e6db8d0812851
MD5 9dad37ba3ff36d03292e5626bd04ec64
BLAKE2b-256 0a5ae96e2fb4d122f5b6ef54ea37d69c51cb7185d28122344dbbe397ba8c9b70

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for async_http2-0.1.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 62e70fb3e55df4e1e5f13ae797b28b621ce46464edf5eb03332a2614daceed1e
MD5 8ef85a993fc9e3e216d40638efe5a41b
BLAKE2b-256 718b23c4ce50619c1286ee1438b89fe2957bfcf388ed3373bc952ab3d75cf153

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for async_http2-0.1.1-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 e990060c67b76928887a49a956e2ceefdf6e343157ccb9fec61efdbbbfa0364b
MD5 69b88fa107d6b0110d541aa8eb5afc50
BLAKE2b-256 e0a80245486b961060a5bacc11849c9a171164b14cf57c5e49d15423ea38d197

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp37-none-win_amd64.whl.

File metadata

  • Download URL: async_http2-0.1.1-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for async_http2-0.1.1-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 1a19b8c1e34eb477a19f8437eb04339e85c1a358108444be90893db66970f2c6
MD5 b0b37a72255c09cdc5adf29a05ef77b7
BLAKE2b-256 9d90f6d6c350c89d5b94c54a44e58199ceeb02fdf973beef9c3a4af0afd204cf

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp37-none-win32.whl.

File metadata

  • Download URL: async_http2-0.1.1-cp37-none-win32.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.7, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for async_http2-0.1.1-cp37-none-win32.whl
Algorithm Hash digest
SHA256 582c5804d791e57d4e7618fc5ffd878f5afef7df44e7b9bc3d454cef956f349a
MD5 265bb8455ead72477de4bb15f77749b3
BLAKE2b-256 e23a7a02379a227aba480e0ab1325324daee7d1c198e86f348c9817e76bfdfcb

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for async_http2-0.1.1-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 82e60bd60db5f101906153064800cfe981987877805d42209b9ae38f3ef409b2
MD5 e6de40162be44f37a0bebe5372d87829
BLAKE2b-256 08f8016e40eec8fd4a6d1741a85bd86a4584f31ffc076645d45fc6c6557cd823

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp37-cp37m-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for async_http2-0.1.1-cp37-cp37m-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 c6c38b2f7860281b69101c6e6ca2d950aa75e142ca0c70609f8c6bad3f1eeb51
MD5 dbaef80065e6d7390545e7ab26106a63
BLAKE2b-256 9e62b65a16e713d0bfff3a1b4eb394ad204e5a292b939c05f48c867c49b38048

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp36-none-win_amd64.whl.

File metadata

  • Download URL: async_http2-0.1.1-cp36-none-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.6, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for async_http2-0.1.1-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 0a0f17b24b24f3f423e10faf5b5a5519abefcfc2f25bf625da6056ee893992ce
MD5 b81260cd55b96646724e06550dd9f12e
BLAKE2b-256 229d75a37aca91a60c87bdfa08f003a2cffe657032044d31ee5c482725e4cd00

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp36-none-win32.whl.

File metadata

  • Download URL: async_http2-0.1.1-cp36-none-win32.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.6, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for async_http2-0.1.1-cp36-none-win32.whl
Algorithm Hash digest
SHA256 042b4d2756c75062b0650992491d27ffa30c19cd1d4aed040a8dd547001bf44f
MD5 b8895c2d7db7e9e993e8d01d38777fdd
BLAKE2b-256 ed6b1a1e2fb3413d122bebbe64a35e50134d84834cf6dbb06d629b3575519c0a

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for async_http2-0.1.1-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ee4576a9ef197c0f669830ab202eff5d5e0e6bd8538c54a5135bab4ae8900c24
MD5 3069b843c3cb46b89a81c32acc7ed566
BLAKE2b-256 09d8c2440f6633e676d5b6ba07e6c7c24ca4e7197f2646f89dddee16f8088211

See more details on using hashes here.

File details

Details for the file async_http2-0.1.1-cp36-cp36m-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for async_http2-0.1.1-cp36-cp36m-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 91bbb4e0b437cab3a2830555130cb801f2e71f275fcc1e2f8263539a602f6731
MD5 4bc9e7c639041e0aa3cad143f6e157a7
BLAKE2b-256 03feafdd1decbbcfd92d98ae7a3d04eae047cf0da93e7a19429b6627dd61cb7c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page