Skip to main content

Python connector for Hoppie's ACARS service

Project description

hoppie-connector

License PyPI - Version

The hoppie-connector project is an API implementation for Jeroen Hoppenbrouwers' "Hoppie's ACARS" services for online multiplayer flight simulation. It can be used to create custom flight tracking and dispatch systems, or serve as a basis for airborne station implementations!

Installation

A pre-built package is hosted on PyPI and can be installed and updated using the pip utility:

pip install -U hoppie-connector

Usage Example

from hoppie_connector import HoppieConnector, HoppieError

cnx = HoppieConnector('<your callsign>', '<your logon code>')

try:
    # Send a telex message
    cnx.send_telex('<other callsign>', '<message>')

    # Fetch and print incoming messages
    messages, delay = cnx.peek()
    for m_id, msg in messages: 
        print(f"Message {m_id}: {msg}")
except HoppieError as e:
    print(e)

[!NOTE] In order to minimize unnecessary server load, keep the idle polling rate to at most once every 60 seconds. During active communication, the polling rate may be temporarily increased to once every 20 seconds.[^1]

Documentation

A more comprehensive documentation is currently in development on this project's GitHub Wiki.

Acknowledgements

Great thanks to Jeroen Hoppenbrouwers for creating and maintaining the "Hoppie's ACARS" services.

Licensing

The contents of this repository are licensed under the MIT License. The full license text is provided in the LICENSE file.

SPDX-License-Identifier: MIT

[^1]: "ACARS Server API". www.hoppie.nl. Retrieved April 3, 2024.

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

hoppie_connector-0.2.1.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

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

hoppie_connector-0.2.1-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file hoppie_connector-0.2.1.tar.gz.

File metadata

  • Download URL: hoppie_connector-0.2.1.tar.gz
  • Upload date:
  • Size: 27.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hoppie_connector-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f7d1ca05e94ca233dfe69ccdb0c67be950a7366a424577fe9634e232d19a1e7c
MD5 d437b06a451ae52c61d8b821d403b2e5
BLAKE2b-256 0138d55ecbb22637080e9ad526960925abcbc00c72e7f77dec175c54a07b79ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for hoppie_connector-0.2.1.tar.gz:

Publisher: publish-pypi.yml on islandcontroller/hoppie-connector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hoppie_connector-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hoppie_connector-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9909dd9dbcb0285706d86ceaa628d322e2d2dc866b44517861e2e3cd18c49ff
MD5 0cce04f4e9e16a12393e158151783621
BLAKE2b-256 2d278036fc190494ee0a1d4fa13b36ebac4cbb16ca374f103f89a302727e1ee0

See more details on using hashes here.

Provenance

The following attestation bundles were made for hoppie_connector-0.2.1-py3-none-any.whl:

Publisher: publish-pypi.yml on islandcontroller/hoppie-connector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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