Thank you for your interest in contributing to the Reality Capture Python SDK.
This guide describes how to set up the SDK locally, run tests, and build the documentation.
Run the commands in this guide from the python_sdk directory.
To build and run the source code locally, install Python 3.10 or later and create a virtual environment:
python -m venv .venvActivate the virtual environment:
Windows Command Prompt:
.venv\Scripts\activate.batWindows PowerShell:
.venv\Scripts\Activate.ps1Linux or macOS:
source .venv/bin/activateInstall the SDK and development dependencies in editable mode:
python -m pip install -e ".[dev]"Run the test suite from the python_sdk directory:
python -m pytestBuild and install the wheel before generating documentation:
python -m pip install build
python -m buildInstall the generated wheel:
python -m pip install --force-reinstall dist/reality_capture-X.Y.0-py3-none-any.whlThen build the Sphinx documentation from the python_sdk/docs directory:
Linux or macOS:
make htmlWindows:
make.bat htmlThe generated HTML documentation is available in docs/_build/html/index.html.
Before submitting a pull request, run the test suite and build the documentation if your change affects public APIs or documentation:
python -m pytestreality_capture uses towncrier to generate its changelog.
Once your PR is created, use towncrier create to generate the relevant changelog for your feature or fix.
Be sure to include the PR or issue number.