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 uv):

curl -LsSf https://astral.sh/uv/install.sh | sh  # Linux and MacOS
irm https://astral.sh/uv/install.ps1 | iex  # Windows
uv sync --dev

Credentials

See details in the documentation

Usage

[!IMPORTANT] The Impala shell is now deprecated. Please upgrade to Trino.

  • 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 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.15.tar.gz (273.7 kB view details)

Uploaded Source

Built Distribution

pyopensky-2.15-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyopensky-2.15.tar.gz
  • Upload date:
  • Size: 273.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyopensky-2.15.tar.gz
Algorithm Hash digest
SHA256 2bdb65e89b728fd401258f2299ca73b6b9e9ad83090a66414b0ef37df8a16820
MD5 5a8237d7c12e30c8b59a7bf898481101
BLAKE2b-256 45a1f547695d6b3734ce7164b6ffbf0653f39b444e5d65b95a0f50412a04044c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopensky-2.15-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyopensky-2.15-py3-none-any.whl
Algorithm Hash digest
SHA256 6824e162139eefc05cfab68405285e85d2b9580be9bdea9d3d642b55cb8deae1
MD5 159ff814f01486d9848d637b3ebd9a00
BLAKE2b-256 9d81776ac7c2b91371b4f304d4ff9828db7b96f1be474d82b2d7268db7529878

See more details on using hashes here.

Supported by

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