Skip to main content

Python wrapper for the Expedition DLL

Project description

Expedition-Python

Description

Expedition is a Windows-based software application for sailing navigation and racing. It has been used in multiple Volvo Ocean Race, America's Cup and Grand Prix events and is the most advanced and usable software available. It can be purchased from Expedition Marine.

This Expedition-Python library is a module for reading and writing data from Expedition. It provides a simple and intuitive API for reading and writing variables and system variables in Expedition. You can also do basic route and waypoint manipulation.

Installation

To install the Expedition module, you can use pip:

pip install Expedition-Python

Usage

There is a static method called from_default_location that can be used to create an instance of the ExpeditionDLL class. This method will attempt to locate the Expedition DLL file and create an instance of the ExpeditionDLL. This relies on the installation directory being in a registry key, so it may not work for all installations.

Note on 64 vs 32-bit: If you are using a 32-bit version of Expedition, then you need to use a 32-bit version of Python.

Here's a simple example of how to use the Expedition module:

from Expedition import ExpeditionDLL, Var, SysVar

# Create an instance of the ExpeditionDLL class
expedition = ExpeditionDLL.from_default_location()

# Set and get a variable value
expedition.set_exp_var_value(Var.Bsp, 10.4)
value = expedition.get_exp_var_value(Var.Bsp)
print(value)  # Outputs: 10.4

Contributing

If you would like to contribute to the Expedition module, please submit a pull request.

Tests

To run the tests for the Expedition module, you can use the following command:

python -m unittest discover tests

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

Expedition-Python-1.0.3.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Expedition_Python-1.0.3-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file Expedition-Python-1.0.3.tar.gz.

File metadata

  • Download URL: Expedition-Python-1.0.3.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for Expedition-Python-1.0.3.tar.gz
Algorithm Hash digest
SHA256 588f8c0b50142bf7dbe249c21accacbb79f9b4107f66b7e38a92fe1fd1dfa609
MD5 191c4faaa87d9c6c7a9d906938a0a999
BLAKE2b-256 ed9a255de5615553e919bfd7ee3f406f0416b0a8265931e0615a55e04ed5190e

See more details on using hashes here.

File details

Details for the file Expedition_Python-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for Expedition_Python-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bb4350fcfdd02c668119bfe7a23fc406e8c9bd97115348957541149b6f1a3d5b
MD5 25f246eb7bab4c856977a04dc0893bc6
BLAKE2b-256 4cbacf7bbd87645847ece4b9071b5140e0ebbdc53533a473b8833460fc1be07b

See more details on using hashes here.

Supported by

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