Skip to main content

A Python interface for OpenSky database

Project description

pyopensky

The pyopensky Python library provides functions to download data from the OpenSky Network live API and historical databases. It aims at making ADS-B and Mode S data from OpenSky easily accessible in the Python programming environment.

Full documentation on https://open-aviation.github.io/pyopensky

Installation

pip install pyopensky

The library is also available on conda-forge:

conda install -c conda-forge pyopensky

Development mode (with poetry):

git clone https://github.com/open-aviation/pyopensky
cd pyopensky
poetry install

Credentials

See details in the documentation

Usage

  • from the REST API:

    from pyopensky.rest import REST
    
    rest = REST()
    
    rest.states()
    rest.tracks(icao24)
    rest.routes(callsign)
    rest.aircraft(icao24, begin, end)
    rest.arrival(airport, begin, end)
    rest.departure(airport, begin, end)
    
  • from the Impala shell (requires authentication):

    from pyopensky.impala import Impala
    
    impala = Impala()
    # full description of the whole set of parameters in the documentation
    impala.flightlist(start, stop, *, airport, callsign, icao24)
    impala.history(start, stop, *, callsign, icao24, bounds)
    impala.rawdata(start, stop, *, callsign, icao24, bounds)
    
  • from the Trino database (requires authentication):

    from pyopensky.trino import Trino
    
    trino = Trino()
    # full description of the whole set of parameters in the documentation
    trino.flightlist(start, stop, *, airport, callsign, icao24)
    trino.history(start, stop, *, callsign, icao24, bounds)
    trino.rawdata(start, stop, *, callsign, icao24, bounds)
    

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

pyopensky-2.4.tar.gz (28.5 kB view details)

Uploaded Source

Built Distribution

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

pyopensky-2.4-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

Details for the file pyopensky-2.4.tar.gz.

File metadata

  • Download URL: pyopensky-2.4.tar.gz
  • Upload date:
  • Size: 28.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for pyopensky-2.4.tar.gz
Algorithm Hash digest
SHA256 7dea56d3b03e6574bcbf01d1821da1a754abce80916e70407a68213b803672a8
MD5 bc19439737905b2d76ae49682227d1c5
BLAKE2b-256 67fe21ca444cb39c270dca6bc01fb382579855997cb5d4599a164b071a872ba6

See more details on using hashes here.

File details

Details for the file pyopensky-2.4-py3-none-any.whl.

File metadata

  • Download URL: pyopensky-2.4-py3-none-any.whl
  • Upload date:
  • Size: 31.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for pyopensky-2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b3f1d5b13c66fb94f1afb7fe2be29de2a0efad8db0453b85ab55685212c7daaa
MD5 244db6185850212a55b1c378710800d8
BLAKE2b-256 44df01252e6f206f74e6720f28726ebf467e0dc426d29bc90fed5bc500398193

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