Contains common helper functions, physics calculations, for use in DNAMIC (c)ontrolled labs.
Follow Astral’s install guide: https://docs.astral.sh/uv/getting-started/installation/
From your other project directory:
uv add "dnamic-toolkit @ git+https://github.com/CornishLabs/dnamic-toolkit.git"
uv syncFor having an install, and being able to edit it, see below.
git clone https://github.com/CornishLabs/dnamic-toolkit.git
cd dnamic-toolkit
uv sync # This updates the venv associated with this folderThis creates/updates the project’s .venv and installs the project in editable mode in this project venv for development.
uv run pytestuv run executes commands inside the project environment (it syncs before if necessary).
uv run python -c "import dnamic_toolkit; print('import ok')"(src/ contains the package and tests/ contains the test suite.)
uv run python examples/<example_file>.py(See the examples/ folder for runnable scripts.)
uv add --editable /path/to/cloned/dnamic-toolkit
uv sync-
Add runtime deps:
uv add <package>
-
Add dev deps (tests/lint tooling). The
devgroup is installed by default:uv add --dev pytest
-
CI/repro builds: fail if
uv.lockwould change:uv sync --locked
or
uv run --locked pytest