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.1.0.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.1.0.tar.gz.
File metadata
- Download URL: python_cpdlc-1.1.0.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 |
942d78261ec74c9f65702af895dbc03f21d0116ac53b1ed440d256e9b7957b97
|
|
| MD5 |
54edaf35880470465acc0ffa06d19260
|
|
| BLAKE2b-256 |
9f0d55539b8230cfbad2b2ec9161888de6a3c3b6647410301fb76bc5980db0a0
|
File details
Details for the file python_cpdlc-1.1.0-py3-none-any.whl.
File metadata
- Download URL: python_cpdlc-1.1.0-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 |
cd515ca668a83a6f28f626715769d7429d5a1bf543bea53dfb2ce8b832b56ac9
|
|
| MD5 |
5064c8f4277d717a07f99927b361f5a2
|
|
| BLAKE2b-256 |
65ee2f07034c2f0a8870f855d1131dd4e0a18e91dd55d6344dd2dc13148d59ed
|