A simple CPDLC client
Project description
python-cpdlc
A simple CPDLC client for flight simulation written by python
Quick Start
- install package with pip or any tools you like
pip install python-cpdlc
- use example code under
By the way, dont forgot to logon your ATC CPDLC first :)
import asyncio
from python_cpdlc import CPDLC, Network
async def main():
# Create CPDLC client with your email and hoppie code
# Please dont use mine :(
cpdlc = CPDLC("halfnothingno@gmail.com", "9BWovZBXLUy21m")
# of course, you can use your own hoppie server
# cpdlc = CPDLC("halfnothingno@gmail.com", "9BWovZBXLUy21m", "http://www.hoppie.nl/acars/system")
# Set your callsign first, and you can change this anytime you like
# But if you change this callsign, you may miss some message send to you
cpdlc.set_callsign("CES2352")
# You can change your network if necessary
# You can got your current network by cpdlc.network
cpdlc.change_network(Network.VATSIM)
# Start poll thread for message reveiver
# If you dont call this function you cant receive message
await cpdlc.start_poller()
# send login request
cpdlc.cpdlc_login("ZSHA")
# you can also send some other thing like DCL or just some message to someone
# wait 60 seconds
await asyncio.sleep(60)
# request logout
cpdlc.cpdlc_logout()
if __name__ == "__main__":
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_cpdlc-1.0.3.tar.gz
(19.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_cpdlc-1.0.3.tar.gz.
File metadata
- Download URL: python_cpdlc-1.0.3.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.25.2 CPython/3.10.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7c5f04bf44a5399f1947975bba1ebb54b83dac10355ae12479cbf7ba2b45cd1
|
|
| MD5 |
ed5de0577dd02469dc8281b3b83e2fc0
|
|
| BLAKE2b-256 |
10411f2c293be3765e3a6fcf1561daee969a3f2fc679ebc0bf2c771a86c7b0a8
|
File details
Details for the file python_cpdlc-1.0.3-py3-none-any.whl.
File metadata
- Download URL: python_cpdlc-1.0.3-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.25.2 CPython/3.10.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7695155711cba5e0b426b0048ce0b30e6835f8803bcb7cd358e773043533537
|
|
| MD5 |
2c04a3c1622e60cc51c2fa4b1a309c04
|
|
| BLAKE2b-256 |
62e1bd47d9c428e700c3520cca15c2a6dc82bdb286e41534797cc1b54061e125
|