Skip to main content

A simple library to simulate a VDR.

Project description

VDR

VDR is a Python library for simulate a VDR.

Installation

Use the package manager pip to install vdr.

pip install vdr

Usage

import vdr

VDR = vdr.Vdr('/home/USER') # Create the VDR with its storage path
VDR.add_connection('ECDIS') # Create socket connection called 'ECDIS'
VDR.add_connection('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()

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vdr-1.0.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

vdr-1.0.0-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page