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
Metadata
Release files for vdr 2.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vdr-2.0.4.tar.gz | 8.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vdr-2.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.8 kB
Release files / vdr-2.0.4.tar.gz
| Download URL | vdr-2.0.4.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
255131e49f34018f2f3bc713b431e65c1b49fac58201d3144a958a4faa677e0b
|
|
BLAKE2b-256 checksum How to use checksums |
e9c7be018ce9a5d3b63b3eaddf4da210717318b9a0432fac6b1040a323cf82fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / vdr-2.0.4-py3-none-any.whl
| Download URL | vdr-2.0.4-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e55692fea7e4de16f00d09023efd16ce2311daf7042419dc5bf2eacbcabd7bd
|
|
BLAKE2b-256 checksum How to use checksums |
959a1d07c8e8227d669f1b04879c20c988abf7581a7da801f003c539abce1a5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|