aero-svo-api


Nameaero-svo-api JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummaryUnoficial api wrapper for Sheremetyevo International Airport
upload_time2024-03-13 09:32:19
maintainer
docs_urlNone
author
requires_python>=3.11
licenseMIT 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 aiohttp pydantic
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # aero-svo-api  
Unoficial API wrapper for Sheremetyevo International Airport [svo.aero](https://www.svo.aero/ru/main)
* Asynchronous usage
* Pydantic models as a result

## Install
```commandline
pip install aero-svo-api
```
## Basic Usage
### Example
```python
import asyncio
from datetime import datetime, timedelta
from aero_svo_api import AsyncSvoApi


async def main():
    async with AsyncSvoApi() as api:
        schedule = await api.get_schedule(
            direction='arrival',
            date_start=datetime.now() - timedelta(hours=2),
            date_end=datetime.now(),
            per_page=3,
            page=1,
        )
        print(schedule)

        
asyncio.run(main())
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "aero-svo-api",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": "",
    "keywords": "api,wrapper,airport,svo,sheremetyevo,schedule,flight",
    "author": "",
    "author_email": "Nikita Bulavinov <jktujgxtu@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/62/60/3f3bd162b6ec20a9f34dde93e2a0e28e7ad9e603a7531af3cf978372f34f/aero-svo-api-0.1.1.tar.gz",
    "platform": null,
    "description": "# aero-svo-api  \r\nUnoficial API wrapper for Sheremetyevo International Airport [svo.aero](https://www.svo.aero/ru/main)\r\n* Asynchronous usage\r\n* Pydantic models as a result\r\n\r\n## Install\r\n```commandline\r\npip install aero-svo-api\r\n```\r\n## Basic Usage\r\n### Example\r\n```python\r\nimport asyncio\r\nfrom datetime import datetime, timedelta\r\nfrom aero_svo_api import AsyncSvoApi\r\n\r\n\r\nasync def main():\r\n    async with AsyncSvoApi() as api:\r\n        schedule = await api.get_schedule(\r\n            direction='arrival',\r\n            date_start=datetime.now() - timedelta(hours=2),\r\n            date_end=datetime.now(),\r\n            per_page=3,\r\n            page=1,\r\n        )\r\n        print(schedule)\r\n\r\n        \r\nasyncio.run(main())\r\n```\r\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.1.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/jktujg/aero-svo-api/issues",
        "Homepage": "https://github.com/jktujg/aero-svo-api"
    },
    "split_keywords": [
        "api",
        "wrapper",
        "airport",
        "svo",
        "sheremetyevo",
        "schedule",
        "flight"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "66b76886d084faaede5c1a4db4edf63efaa16a57f1c37609c314fcc5da5c4fd4",
                "md5": "f606efc43eaf8b472321ff5a4d9d793b",
                "sha256": "a7a24a0c408547dd384919cf971335ed8879d2647fcdb2829e0259795733a808"
            },
            "downloads": -1,
            "filename": "aero_svo_api-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f606efc43eaf8b472321ff5a4d9d793b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 6453,
            "upload_time": "2024-03-13T09:32:18",
            "upload_time_iso_8601": "2024-03-13T09:32:18.662454Z",
            "url": "https://files.pythonhosted.org/packages/66/b7/6886d084faaede5c1a4db4edf63efaa16a57f1c37609c314fcc5da5c4fd4/aero_svo_api-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "62603f3bd162b6ec20a9f34dde93e2a0e28e7ad9e603a7531af3cf978372f34f",
                "md5": "2127eede32841b5e216a479711cab6e3",
                "sha256": "de6d43b293f3168605a97d0e54af36257643fc813a183e66edfd58e16cde6390"
            },
            "downloads": -1,
            "filename": "aero-svo-api-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "2127eede32841b5e216a479711cab6e3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 7384,
            "upload_time": "2024-03-13T09:32:19",
            "upload_time_iso_8601": "2024-03-13T09:32:19.703820Z",
            "url": "https://files.pythonhosted.org/packages/62/60/3f3bd162b6ec20a9f34dde93e2a0e28e7ad9e603a7531af3cf978372f34f/aero-svo-api-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-13 09:32:19",
    "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": [
        {
            "name": "aiohttp",
            "specs": [
                [
                    "==",
                    "3.9.3"
                ]
            ]
        },
        {
            "name": "pydantic",
            "specs": [
                [
                    "==",
                    "2.6.3"
                ]
            ]
        }
    ],
    "lcname": "aero-svo-api"
}
        
Elapsed time: 0.21264s