Skip to main content

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

MIT

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)

Source distribution for vdr 2.0.4
File Size Uploaded
vdr-2.0.4.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vdr 2.0.4
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

2.0.4 This release

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page