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.5.tar.gz (9.9 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.5-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file expedition_python-1.0.5.tar.gz.

File metadata

  • Download URL: expedition_python-1.0.5.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for expedition_python-1.0.5.tar.gz
Algorithm Hash digest
SHA256 effa3068267caf17d21e031e95b082448896baec4fc83b36f43e68744e56889d
MD5 43372b29cd34958a66d440aea50f9ae6
BLAKE2b-256 f12fc12d3eeff30fd954928beabacb93b2a947c4b0ae43f6e6d05155c1b7c4ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for expedition_python-1.0.5.tar.gz:

Publisher: workflow.yml on TTCMarine/Expedition-Python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file expedition_python-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for expedition_python-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 15c5f051a26ef7d8d655e6f67556ad08e1579953ed8fd538b5795732dfebc326
MD5 abcb6b72c0b59b7c4b227bf5e9fee9aa
BLAKE2b-256 605d4a448eec8843b8b1e5813058d45d62a47ed0c625f0d9396f9c362cbe9df2

See more details on using hashes here.

Provenance

The following attestation bundles were made for expedition_python-1.0.5-py3-none-any.whl:

Publisher: workflow.yml on TTCMarine/Expedition-Python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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