A simple library for asynchronous ESI requests
Project description
esi_requests
esi_requests tries to use requests style methods:
>>> import esi_requests
>>> r = esi_requests.get("/markets/{region_id}/orders/", region_id=10000002, type_id=1403)
>>> r.status
200
>>> r.json()
{[{'duration': 90, 'is_buy_order': False, ...}
with async enabled and simplified:
>>> resps = esi_requests.get("/markets/{region_id}/orders/", region_id=10000002, type_id=[1403, 12005, 626])
# equivalent to: esi_requests.get("/markets/{region_id}/orders/", region_id=10000002, params={"type_id": [1403, 12005, 626]})
>>> resps
[<Response [200]>, <Response [200]>, <Response [200]>]
>>> resps[0].status
200
>>> resps[0].url
'https://esi.evetech.net/latest/markets/10000002/orders/?datasource=tranquility&order_type=all&page=1&type_id=1403'
which internally uses aiohttp to send requests asynchronously.
Features
- One-line
asyncenabled: no need to master aiohttp and asyncio - Simple
requests-like api - Simplified
OAuth2SSO authentication: all you need is to log in your account - Support
ETagheaders: compliant with ESI recommendation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
esi_requests-0.0.1.10.tar.gz
(34.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file esi_requests-0.0.1.10.tar.gz.
File metadata
- Download URL: esi_requests-0.0.1.10.tar.gz
- Upload date:
- Size: 34.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1011cd3189cf2baa01576831734ba3c00d71d12aeaf8fe32798629199b0d201
|
|
| MD5 |
11b024047c3186fe25cf4307cc4f3dc8
|
|
| BLAKE2b-256 |
d3beaee43a759815ecb70ca0a3e10b10bd79c452a102982eeca25dc8470153e2
|
File details
Details for the file esi_requests-0.0.1.10-py3-none-any.whl.
File metadata
- Download URL: esi_requests-0.0.1.10-py3-none-any.whl
- Upload date:
- Size: 42.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae6f56c20254329a10475b43c3436a7460faf79df797dd8377beae6a5d2f9678
|
|
| MD5 |
4168e8687d4c1b58dd901646fdc4b0f4
|
|
| BLAKE2b-256 |
0dbe9371cd753bef03551a87091fa00be615f592df4d6b07ee226dc198d4fe5b
|