flight-status-1.0.1
توضیحات
PIP package to get status of flight pnr status and other details [Indian Airlines]
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | flight-status-1.0.1 |
| نام | flight-status |
| نسخه کتابخانه | 1.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Aman Tiwari, Shibani Mahapatra |
| ایمیل نویسنده | tiwari.aman85@gmail.com, shibani.mahapatra47@gmail.com |
| آدرس صفحه اصلی | https://github.com/tiwari85aman/flight-status.git |
| آدرس اینترنتی | https://pypi.org/project/flight-status/ |
| مجوز | MIT |
# flight-status
PIP package to get status of flight pnr status and other details [Supports multiple Indian Airlines]
## Architecture

# How to Install
To install this pip package run the following command.
`pip install flight-status`
# Supported Airlines
- Indigo
- Spice Jet
- AirAsia
## Prerequisites
- Chrome webdriver is required for the package to work.
- webdriver execuatable is passed as parameter to the package.
- Download chrome webdriver supported for your installed chrome version.
Download Link: https://chromedriver.chromium.org/downloads
## Usage
- Create an object of class `Airlines` with particular aviation company.
params:
- aviation : Aviation company name
- config : webdriver config
Example:
``driver_config = {"webdriver": "chrome", "executable": "/path/to/executable"}``
``aviation = Airlines(aviation="indigo", config=driver_config)``
- Use available functions to get respective details.
### Get PNR status:
- define a `config` dict with the required parameters
| Airline | Config |
| ------------ | ------------ |
| indigo | `{ "booking_reference": "XXX", "email_lastname": "XXX"}` |
| spice_jet | `{ "booking_reference": "XXX", "email_lastname": "XXX"}` |
| air_asia | `{ "booking_reference": "XXX", "email_lastname": "XXX", "departure_city": "XXX"}` |
`` aviation.get_pnr_status(parameters=config)``
نیازمندی
| مقدار | نام |
|---|---|
| <=4.9.1 | beautifulsoup4 |
| <=3.141.0 | selenium |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=2.7.0 | Python |
نحوه نصب
نصب پکیج whl flight-status-1.0.1:
pip install flight-status-1.0.1.whl
نصب پکیج tar.gz flight-status-1.0.1:
pip install flight-status-1.0.1.tar.gz