Socket
Socket
Sign inDemoInstall

async-http2

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-http2

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


Maintainers
1

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc