Name | aero-svo-api JSON |
Version |
0.2.0
JSON |
| download |
home_page | None |
Summary | Unoficial api wrapper for Sheremetyevo International Airport |
upload_time | 2024-09-06 08:04:00 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.11 |
license | MIT License Copyright (c) 2023 Nikita Bulavinov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
api
wrapper
airport
svo
sheremetyevo
schedule
flight
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# aero-svo-api
Unofficial Sheremetyevo International Airport [website](https://www.svo.aero/ru/main) API wrapper
* Sync/Async usage
* Pydantic models as a result
## Installation
```commandline
pip install aero-svo-api
```
## Available methods
* `get_schedule` - List of flights for arrival/departure direction in a time range
* `get_flight` - Current flight details by its ID
## Usage example
```python
from datetime import datetime, timedelta
from aero_svo_api import SvoAPI
# each *API instance creates own session with first request if session not provided in constructor
# by default: request.Session for SvoAPI and aiohttp.ClientSession for AsyncSvoAPI
svo_api = SvoAPI()
schedule = svo_api.get_schedule(
direction='departure',
date_start=datetime.now(),
date_end=datetime.now() + timedelta(hours=3),
# additional parameters (e.g. headers, cookies, ...) forwards to session request
headers={'User-Agent': 'Custom user-agent'}
)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "aero-svo-api",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": "api, wrapper, airport, svo, sheremetyevo, schedule, flight",
"author": null,
"author_email": "Nikita Bulavinov <jktujgxtu@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/87/bd/b858722f3fb6c116177b3f4158fad9728de50c397c9a07c8b3a042553fa6/aero_svo_api-0.2.0.tar.gz",
"platform": null,
"description": "# aero-svo-api \nUnofficial Sheremetyevo International Airport [website](https://www.svo.aero/ru/main) API wrapper \n\n* Sync/Async usage\n* Pydantic models as a result\n\n\n## Installation\n```commandline\npip install aero-svo-api\n```\n## Available methods\n* `get_schedule` - List of flights for arrival/departure direction in a time range \n* `get_flight` - Current flight details by its ID \n\n## Usage example\n\n\n```python\nfrom datetime import datetime, timedelta\nfrom aero_svo_api import SvoAPI\n\n# each *API instance creates own session with first request if session not provided in constructor\n# by default: request.Session for SvoAPI and aiohttp.ClientSession for AsyncSvoAPI\n\nsvo_api = SvoAPI()\n\nschedule = svo_api.get_schedule(\n direction='departure',\n date_start=datetime.now(),\n date_end=datetime.now() + timedelta(hours=3),\n # additional parameters (e.g. headers, cookies, ...) forwards to session request\n headers={'User-Agent': 'Custom user-agent'}\n)\n```\n\n\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023 Nikita Bulavinov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "Unoficial api wrapper for Sheremetyevo International Airport",
"version": "0.2.0",
"project_urls": {
"Bug Tracker": "https://github.com/jktujg/aero-svo-api/issues",
"Changelog": "https://github.com/jktujg/aero-svo-api/blob/main/CHANGELOG.md",
"Homepage": "https://github.com/jktujg/aero-svo-api"
},
"split_keywords": [
"api",
" wrapper",
" airport",
" svo",
" sheremetyevo",
" schedule",
" flight"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "49f75c9f445d30c410ed1de799fc02711aeb1cf84e1ef19da7b0d6181f3d4247",
"md5": "06fefc3542b96d07c7e56ebb8cebb398",
"sha256": "1d8f92239ad70fc7252e728b567321aedfd4d26f251b50348932906d36180679"
},
"downloads": -1,
"filename": "aero_svo_api-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "06fefc3542b96d07c7e56ebb8cebb398",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 7434,
"upload_time": "2024-09-06T08:03:59",
"upload_time_iso_8601": "2024-09-06T08:03:59.277570Z",
"url": "https://files.pythonhosted.org/packages/49/f7/5c9f445d30c410ed1de799fc02711aeb1cf84e1ef19da7b0d6181f3d4247/aero_svo_api-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "87bdb858722f3fb6c116177b3f4158fad9728de50c397c9a07c8b3a042553fa6",
"md5": "fa794a87439d728d48e73d7c5111ce35",
"sha256": "7b4f26f51ff4178df7310aaf59909ef020b3c3ff9b97e26c4359d6f9d012797b"
},
"downloads": -1,
"filename": "aero_svo_api-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "fa794a87439d728d48e73d7c5111ce35",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 7628,
"upload_time": "2024-09-06T08:04:00",
"upload_time_iso_8601": "2024-09-06T08:04:00.368561Z",
"url": "https://files.pythonhosted.org/packages/87/bd/b858722f3fb6c116177b3f4158fad9728de50c397c9a07c8b3a042553fa6/aero_svo_api-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-06 08:04:00",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jktujg",
"github_project": "aero-svo-api",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "aero-svo-api"
}