Skip to main content

Flighter is an easy-to-use Python module that allows users to explore aviation using Python

Project description

Flighter

Flighter is an easy-to-use Python module that allows users to explore aviation using Python Features include: flight time from airport A to airport B; full functionality for both ICAO and IATA codes ; checks whether a particular airport exists per ICAO/IATA; airport details per ICAO/IATA. Data is returned in a json format, so extracting data has never been easier!


Version 2.0.4

  • Added Kai Tak Airport
  • Bug Fixes

Installation

pip install Flighter

Quickstart

You can initialise the attributes directly via Flighter:

from Flighter import Flighter
x = Flighter(
  plane="F18",
  speed=1000,
  icao1="EGLL",
  icao2="LFPG"
)
print(x.checkFlight())

# Returns in a json format with:
# Flight, Plane, Approx. Speed, Approx. Time (in mins or hrs)

Or, by initialising them one by one:

from Flighter import Flighter
x = Flighter()
x.plane = "F18"  # Defualt=None
x.speed = 1000   # Default=0
x.icao1 = "EGLL" # Default=None
x.icao2 = "LFPG" # Default=None
print(x.checkFlight())

# Returns in a json format with:
# Flight, Plane, Approx. Speed, Approx. Time (in mins or hrs)

You can also check whether an ICAO or IATA exists:

from Flighter import Flighter
x = Flighter()
print(x.checkICAO("EGLL"))
print(x.checkIATA("LHR"))

# Returns True or False

And by using an ICAO or IATA, you can find out an airport's details

from Flighter import Flighter
x = Flighter()
print(x.airportInfo("EGLL")) #or print(x.airportInfo("LHR"))

# Returns in a json format with:
# Name, Country/State, City, ICAO, IATA (if it has one), Elevation, Latitude, Longitude and Timezone

Contributing

You can open a PR on Github :D

Help

You can email me or send a friend request via Discord to Zeliktric#4282.

Thank you! :D

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

Flighter-2.0.4.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Flighter-2.0.4-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file Flighter-2.0.4.tar.gz.

File metadata

  • Download URL: Flighter-2.0.4.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for Flighter-2.0.4.tar.gz
Algorithm Hash digest
SHA256 b5f53552bd82f5ac9944a952280542620a0812f54584d741899adf0cf424985b
MD5 aaa04e5cc82cfe7522f6e011b355efd2
BLAKE2b-256 11ed53aac72b599449d9fbf6f3b9e14dcd5a8e3b153ced14d61a0cb7ac82b7f4

See more details on using hashes here.

File details

Details for the file Flighter-2.0.4-py3-none-any.whl.

File metadata

  • Download URL: Flighter-2.0.4-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for Flighter-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 69945ec59528410629d48d54d22ad9950778c231583923c631730ebf0f1b3c26
MD5 d4b43e92f4879b17a37ad8e29d46a807
BLAKE2b-256 19f5650a55e6be9dd6db01571b6c378f42e7f5548289dd7b52618cb469d71e60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page