Unoficial api wrapper for Sheremetyevo International Airport
Project description
aero-svo-api
Unofficial Sheremetyevo International Airport website API wrapper
- Sync/Async usage
- Pydantic models as a result
Installation
pip install aero-svo-api
Available methods
get_schedule- List of flights for arrival/departure direction in a time rangeget_flight- Current flight details by its ID
Usage example
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'}
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aero_svo_api-0.2.0.tar.gz
(7.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 aero_svo_api-0.2.0.tar.gz.
File metadata
- Download URL: aero_svo_api-0.2.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b4f26f51ff4178df7310aaf59909ef020b3c3ff9b97e26c4359d6f9d012797b
|
|
| MD5 |
fa794a87439d728d48e73d7c5111ce35
|
|
| BLAKE2b-256 |
87bdb858722f3fb6c116177b3f4158fad9728de50c397c9a07c8b3a042553fa6
|
File details
Details for the file aero_svo_api-0.2.0-py3-none-any.whl.
File metadata
- Download URL: aero_svo_api-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d8f92239ad70fc7252e728b567321aedfd4d26f251b50348932906d36180679
|
|
| MD5 |
06fefc3542b96d07c7e56ebb8cebb398
|
|
| BLAKE2b-256 |
49f75c9f445d30c410ed1de799fc02711aeb1cf84e1ef19da7b0d6181f3d4247
|