aiohttp-client-manager-1.1.2
توضیحات
Automatic aiohttp ClientSession management
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aiohttp-client-manager-1.1.2 |
| نام | aiohttp-client-manager |
| نسخه کتابخانه | 1.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Nathan Van Gheem |
| ایمیل نویسنده | vangheem@gmail.com |
| آدرس صفحه اصلی | https://pypi.python.org/pypi/aiohttp_client_manager |
| آدرس اینترنتی | https://pypi.org/project/aiohttp-client-manager/ |
| مجوز | BSD |
Introduction
============
A module to automatically manage `aiohttp.ClientSession` objects for you
to improve performance.
The package manages a global cache of `aiohttp.ClientSession` objects based
on the host a particular request is connecting to so connections can be
reused between requests.
It also simplifies the API.
Usage
-----
The usage is similar to the python `requests` library::
import aiohttp_client
async with aiohttp_client.get('http://www.google.com') as resp:
# do something here
Configuration
-------------
Uses env variables to configure max number of reqeusts/sessions to manage:
- AIOHTTP_SESSION_SIZE: max number of sessions to keep in cache(default 200)
- AIOHTTP_SESSION_DNS_CACHE: number of seconds to keep dns lookup in cache(default 20)
- AIOHTTP_SESSION_LIMIT: number of simultaneous connections to have per session(default 500)
1.1.2 (2022-10-20)
------------------
- Change to bsd license
1.1.1 (2020-04-15)
------------------
- better session connector defaults
1.1.0 (2019-06-06)
------------------
- update max requests and sessions
- Updated setup.py to point to aihttp_client.py
1.0.0 (2018-04-09)
------------------
- initial release
نیازمندی
| مقدار | نام |
|---|---|
| - | lru-dict |
| - | aiohttp |
| ==4.4.0 | pytest |
| - | pytest-runner |
| - | pytest-aiohttp |
| - | pytest-asyncio |
| >=19.1.0 | attrs |
نحوه نصب
نصب پکیج whl aiohttp-client-manager-1.1.2:
pip install aiohttp-client-manager-1.1.2.whl
نصب پکیج tar.gz aiohttp-client-manager-1.1.2:
pip install aiohttp-client-manager-1.1.2.tar.gz