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
Development Installation
For development, use uv to create a virtual environment and install the package in editable mode with dev tools:
git clone https://github.com/TTCMarine/Expedition-Python.git
cd Expedition-Python
uv sync
Alternatively, you can use pip: pip install -e .
Platform Support
- Windows: Full support with the Expedition DLL
- macOS/Linux: Mock implementation available for development and testing (see note below)
Note for macOS/Linux users: On non-Windows platforms, the package installs a mock implementation that allows you to develop and test code without the actual Expedition DLL. All methods are available but return dummy values. This is useful for developing code that will run on Windows.
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
Contributions are welcome! If you would like to contribute to the Expedition module:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests to ensure everything works
- Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Please ensure your code follows the project's style guidelines and includes tests for new features.
Development
Requirements
- Python 3.10 or higher (3.12 recommended for local development; see
.python-version) - uv for development (optional but recommended)
- For Windows: Expedition software installed
Expedition API headers (local only)
Expedition’s C headers (ExpDLL.h, user_channels.h, sys_channels.h) are proprietary and are not committed or shipped with this package. On Windows, after installing or updating Expedition, sync them for local development and AI-assisted binding work:
uv run python scripts/sync_expedition_headers.py
uv run python scripts/generate_enums_from_headers.py --write
uv run python scripts/check_enums_against_headers.py
Headers are copied to reference/expedition/ (gitignored). Enums in Expedition/enums.py are generated from those headers (see CHANGELOG.md for 2.0 breaking renames). See reference/README.md and AGENTS.md.
Running Tests
After uv sync, run tests with:
uv run pytest tests/ -v
You can also use unittest: python -m unittest discover tests
Note: Tests require the Expedition DLL to be installed on Windows. On non-Windows platforms or when the DLL is not found, tests will be automatically skipped. This is expected behavior and allows the test suite to run on CI/CD systems without Expedition installed.
Building the Package
The package uses modern Python packaging with pyproject.toml. To build:
uv build
This will create distribution files in the dist/ directory.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file expedition_python-2.0.4.tar.gz.
File metadata
- Download URL: expedition_python-2.0.4.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95850792fb4d7c2eb2c1f19e1f9e35f84c07cf53bcab7315821fc91d6d1a0929
|
|
| MD5 |
73e987f31882de1d779b0daf88f9180c
|
|
| BLAKE2b-256 |
5543ad45c8792b5ba9c6ac98df3e32d841f9cde40e4f586b4c1c922b0afab31e
|
Provenance
The following attestation bundles were made for expedition_python-2.0.4.tar.gz:
Publisher:
publish.yml on TTCMarine/Expedition-Python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
expedition_python-2.0.4.tar.gz -
Subject digest:
95850792fb4d7c2eb2c1f19e1f9e35f84c07cf53bcab7315821fc91d6d1a0929 - Sigstore transparency entry: 1672376505
- Sigstore integration time:
-
Permalink:
TTCMarine/Expedition-Python@b09dd86f18ca563b848b64849539a18b458bd998 -
Branch / Tag:
refs/tags/v2.0.4 - Owner: https://github.com/TTCMarine
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b09dd86f18ca563b848b64849539a18b458bd998 -
Trigger Event:
release
-
Statement type:
File details
Details for the file expedition_python-2.0.4-py3-none-any.whl.
File metadata
- Download URL: expedition_python-2.0.4-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b53b50d837bea2b743e39f30599c2b7171122adc5fa4868e1c8720f714cd8ab5
|
|
| MD5 |
bed9d1e560d06975926e110a013723d9
|
|
| BLAKE2b-256 |
80da0c1bd6a07bd2d781b8590bcdffeed273d7b84dcc6480c6089cc0f85cc057
|
Provenance
The following attestation bundles were made for expedition_python-2.0.4-py3-none-any.whl:
Publisher:
publish.yml on TTCMarine/Expedition-Python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
expedition_python-2.0.4-py3-none-any.whl -
Subject digest:
b53b50d837bea2b743e39f30599c2b7171122adc5fa4868e1c8720f714cd8ab5 - Sigstore transparency entry: 1672376514
- Sigstore integration time:
-
Permalink:
TTCMarine/Expedition-Python@b09dd86f18ca563b848b64849539a18b458bd998 -
Branch / Tag:
refs/tags/v2.0.4 - Owner: https://github.com/TTCMarine
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b09dd86f18ca563b848b64849539a18b458bd998 -
Trigger Event:
release
-
Statement type: