A simple library to simulate a VDR.
Project description
VDR
VDR is a Python library to simulate a VDR (Voyage Data Recorder).
Installation
Use the package manager pip to install vdr.
pip install vdr
Usage
You first need to configure your VDR that will receive all the data.
import vdr
VDR = vdr.Vdr('/home/USER') # Create the VDR with its storage path
VDR.add_connection("localhost", 12345, 'ECDIS') # Create socket connection called 'ECDIS'
VDR.add_connection("localhost", 12346, 'nmea') # Create socket connection called 'nmea'
# Initialize threads with each data type that connections will received
ecdis = vdr.ReceivingFrame(VDR, "ECDIS")
nmea = vdr.ReceivingNmea(VDR, "nmea")
# Start threads, ready to receive and store data
ecdis.start()
nmea.start()
Then, the library proposed different kind of agent to facilitate data emission.
Frame Agent
import screenagent
agent = screenagent.ScreenAgent("localhost", 12345)
agent.send_screenshot()
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
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
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 vdr-2.0.4.tar.gz.
File metadata
- Download URL: vdr-2.0.4.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
255131e49f34018f2f3bc713b431e65c1b49fac58201d3144a958a4faa677e0b
|
|
| MD5 |
ff40dc0eb7f5cee840b697f84c9ca140
|
|
| BLAKE2b-256 |
e9c7be018ce9a5d3b63b3eaddf4da210717318b9a0432fac6b1040a323cf82fe
|
File details
Details for the file vdr-2.0.4-py3-none-any.whl.
File metadata
- Download URL: vdr-2.0.4-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e55692fea7e4de16f00d09023efd16ce2311daf7042419dc5bf2eacbcabd7bd
|
|
| MD5 |
adbf023834e84bc27dc5784928726086
|
|
| BLAKE2b-256 |
959a1d07c8e8227d669f1b04879c20c988abf7581a7da801f003c539abce1a5d
|