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.11.tar.gz (200.5 kB view details)

Uploaded Source

Built Distribution

pyopensky-2.11-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyopensky-2.11.tar.gz
  • Upload date:
  • Size: 200.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyopensky-2.11.tar.gz
Algorithm Hash digest
SHA256 82a18a6b4a451e9b05104f8a852354e20fefb7025d32c4248f761d918015b877
MD5 328a6ea0e77c9c06a1002699789d6a68
BLAKE2b-256 32585350b782bacde1223ce729177e4fe00ae36ee08ff0c610222582e792b4ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyopensky-2.11-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyopensky-2.11-py3-none-any.whl
Algorithm Hash digest
SHA256 80545152446e22d6930b49810131e0b35cc71f5c1d3e5004774dd32f3a6292ab
MD5 753dc343f2f3765b3b2702a80199aef6
BLAKE2b-256 3f0e73e6ffa7d73ff616ccd6ba1392a817013afc8caab08a368c7f3711c09404

See more details on using hashes here.

Supported by

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