Giter Site home page Giter Site logo

ladien / iata-arrivals-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from e3v3a/iata-arrivals-cli

2.0 1.0 0.0 113 KB

Get airport arrivals, departures, details and METAR weather info from CLI

License: GNU General Public License v3.0

Python 100.00%

iata-arrivals-cli's Introduction

The IATA Arrivals CLI (Command Line Interface)

pypi supported versions PyPI version Maintenance GitHub last commit Average time to resolve an issue

A simple tool to show dapartures, arrivals and various airport information given an IATA code or country name.

STATUS: Version Date Maintained?
Working 1.0.1 2018-11-28 YES

Example Output:

Full
(FFS always include a screenshot in your GitHub repo!)

Repo Description

This is a repository of various Python3 and (eventually) Node.js tools that can be used to obtain various flight information from airports around the globe. The tools here depend on both some open source libraries and some provider API's. However, most likely the functionality of this can easily be broken as the services are private and the tools often depend on various forms of web scraping and API hacking.


Q: What does arrivals do?

arrivals is a Python3 script that display current arrivals and departures given an airport IATA code. However, it can also show additional airport and weather information. These include items such as:

  • The official IATA (full) Name of the airport
  • The ICAO airport code
  • The Lat/Lon GPS coordinates with map URL
  • The Airport Web Site URL
  • The current weather info such as:
    Nav, Sky, Visibility, Temperature, Pressure, Wind Speed/Direction, Humidity etc.
  • The Airport's current METAR info
  • The ICAO code and IATA names of most officially listed airports for a given country name.

Q: What does it not do?

  • show detailed flight info
  • show aircraft or carrier info
  • itshow aiport info for airports not connected to the international
    air traffic controller (ATC) network or internet.
  • it may not show the very latest METAR data (depending on Airport availability)

Screenshots!

Full Full Full

Dependencies

This package depend on the API library pyflightdata, which is used to collect all the relevant data from the FlightRadar24 site. However, that library in turn depend on:

  • beautifulsoup4, jsonpath-rw, lxml, metar, requests

It is highly recommended to install lxml before, you install pyflightdata, because that dependency often require extra source compiling, which is prone to additional dependency errors.

Installation

For pip install:

pip install iata-arrivals-cli

For manual/development install:

  1. First install all dependencies from above
  2. Then install pyflightdata
  3. Then clone this repository
  4. Then install it in your bin path at your convenience

In other words you can do this:

# pip install <dependencies-from-above>
pip install pyflightdata
git clone https://github.com/E3V3A/iata-arrivals-cli.git
cd iata-arrivals-cli
#pip install iata-arrivals-cli

Usage

$ arrivals -h

 Usage:  arrivals [options] <airport-IATA-code>

 Options:
        -d <airport-iata>    -- Show Departures instead of Arrivals
        -n <n>               -- Only show next <n> number of flights
        -i <airport-iata>    -- Show information about an Airport given its IATA code [Country, Lat/Lon, TZ]
        -j <1,2>             -- Enable debug mode at level 1 or 2 to print the full JSON response
        -l <country-name>    -- List all available airport IATA codes for a country given by <country-name>
        -c                   -- Display Copyright License and maintenance URL.
        -v                   -- Print program Version
        -h, --help           -- Print this help


 --- IMPORTANT! -----------------------------------------------
   • All times shown are in the timezone of your computer!
   • Do not attempt to run these queries in rapid succession,
     as your IP might get blocked by the API providers.
 --------------------------------------------------------------

Development

Feel free to send a PR in case you have some improvements.

Related Projects

Even more...

and so on...

Related Services Used

  1. http://pyflightdata.readthedocs.io/en/latest/pyflightdata.html
  2. https://www.latlong.net/
  3. https://aviationweather.gov/
  4. http://services.faa.gov/airport/status/<IATA_CODE>?format=application/json
  5. http://www.fly.faa.gov/flyfaa/usmap.jsp

License

GPLv3 Logo
GitHub license
A license to 💖!

I use GPLv3 because sharing code modifications is more beneficial for the world.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.