esi-requests


Nameesi-requests JSON
Version 0.0.1.8 PyPI version JSON
download
home_page
SummaryA simple library for asynchronous ESI requests
upload_time2023-08-30 04:13:40
maintainer
docs_urlNone
author
requires_python>=3.7
licenseBSD-3-Clause
keywords python esi eve-online asyncio
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # esi_requests

esi_requests tries to use **requests** style methods:

```python
>>> 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:

```python
>>> 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 `async` enabled: no need to master *aiohttp* and *asyncio*
* Simple `requests`-like api
* Simplified `OAuth2` SSO authentication: all you need is to log in your account
* Support `ETag` headers: compliant with [ESI recommendation](https://developers.eveonline.com/blog/article/esi-etag-best-practices)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "esi-requests",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "python,esi,eve-online,asyncio",
    "author": "",
    "author_email": "Hanbo <hb.evetools@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/34/ef/30c5fcefd48075fb4d9aa75a6c22fce0331d747d073482860ef50b2edefc/esi_requests-0.0.1.8.tar.gz",
    "platform": null,
    "description": "# esi_requests\n\nesi_requests tries to use **requests** style methods:\n\n```python\n>>> import esi_requests\n>>> r = esi_requests.get(\"/markets/{region_id}/orders/\", region_id=10000002, type_id=1403)\n>>> r.status\n200\n>>> r.json()\n{[{'duration': 90, 'is_buy_order': False, ...}\n```\n\nwith **async** enabled and simplified:\n\n```python\n>>> resps = esi_requests.get(\"/markets/{region_id}/orders/\", region_id=10000002, type_id=[1403, 12005, 626])\n# equivalent to: esi_requests.get(\"/markets/{region_id}/orders/\", region_id=10000002, params={\"type_id\": [1403, 12005, 626]})\n>>> resps\n[<Response [200]>, <Response [200]>, <Response [200]>]\n>>> resps[0].status\n200\n>>> resps[0].url\n'https://esi.evetech.net/latest/markets/10000002/orders/?datasource=tranquility&order_type=all&page=1&type_id=1403'\n```\n\nwhich internally uses *aiohttp* to send requests asynchronously. \n\n### Features\n\n* One-line `async` enabled: no need to master *aiohttp* and *asyncio*\n* Simple `requests`-like api\n* Simplified `OAuth2` SSO authentication: all you need is to log in your account\n* Support `ETag` headers: compliant with [ESI recommendation](https://developers.eveonline.com/blog/article/esi-etag-best-practices)\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "A simple library for asynchronous ESI requests",
    "version": "0.0.1.8",
    "project_urls": null,
    "split_keywords": [
        "python",
        "esi",
        "eve-online",
        "asyncio"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "da9d0953529bcec68443ae4a5fc55b70bb32b715995de8a1c626c6b1919f5426",
                "md5": "8ffb157a4c1025758fec939dca77204d",
                "sha256": "c164712d3ad377e5d3bcc319044a4b08fbf557bc5d0e6f86d71da9e36e00f23f"
            },
            "downloads": -1,
            "filename": "esi_requests-0.0.1.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8ffb157a4c1025758fec939dca77204d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 41812,
            "upload_time": "2023-08-30T04:13:38",
            "upload_time_iso_8601": "2023-08-30T04:13:38.450467Z",
            "url": "https://files.pythonhosted.org/packages/da/9d/0953529bcec68443ae4a5fc55b70bb32b715995de8a1c626c6b1919f5426/esi_requests-0.0.1.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "34ef30c5fcefd48075fb4d9aa75a6c22fce0331d747d073482860ef50b2edefc",
                "md5": "7dd97a04d010f6120b9f92ee6942e7e4",
                "sha256": "a5d411118db154cb717a3e933475afcc62b1714438c47348008e10ad11b411c9"
            },
            "downloads": -1,
            "filename": "esi_requests-0.0.1.8.tar.gz",
            "has_sig": false,
            "md5_digest": "7dd97a04d010f6120b9f92ee6942e7e4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 34462,
            "upload_time": "2023-08-30T04:13:40",
            "upload_time_iso_8601": "2023-08-30T04:13:40.096487Z",
            "url": "https://files.pythonhosted.org/packages/34/ef/30c5fcefd48075fb4d9aa75a6c22fce0331d747d073482860ef50b2edefc/esi_requests-0.0.1.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-30 04:13:40",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "esi-requests"
}
        
Elapsed time: 0.22539s