https://github.com/alekseyl1992/async_http2
asyncio compatible HTTP2 client for Python based on `reqwest` Rust crate and pyo3/pyo3-asyncio
https://github.com/alekseyl1992/async_http2
Last synced: about 2 months ago
JSON representation
asyncio compatible HTTP2 client for Python based on `reqwest` Rust crate and pyo3/pyo3-asyncio
- Host: GitHub
- URL: https://github.com/alekseyl1992/async_http2
- Owner: alekseyl1992
- License: mit
- Created: 2021-07-27T15:23:34.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-05T20:40:28.000Z (almost 4 years ago)
- Last Synced: 2025-03-25T03:51:10.250Z (3 months ago)
- Language: Rust
- Size: 9.77 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# async-http2
[](https://github.com/alekseyl1992/async_http2/actions?query=workflow%3APython)
[](https://pypi.org/project/async-http2)asyncio-compatible HTTP2 client for Python based on `reqwest` Rust crate and pyo3/pyo3-asyncio
## Installation
```bash
pip install async-http2
```## Usage
```python3
import asyncio
import loggingfrom 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](../LICENSE) file.