educelab-pymodule is a template project for creating Python modules in the
educelab namespace.
- Rename the
moduledirectory insrc/educelabto your module's name. - Update
pyproject.toml,LICENSE, andNOTICEwith your project's metadata. Inpyproject.toml, also update the[project.scripts]entry point paths. - Update the distribution name passed to
version()in your module's__init__.py.
Either pip or uv can be used.
With pip (25.1+):
python -m venv .venv
source .venv/bin/activate
pip install -e . --group dev
pytest
ruff check . && ruff format .With uv:
uv run pytest
uv run ruff check . && uv run ruff format .- All module files and apps go in
src/educelab/[MODULE NAME]. src/educelabmust not contain any files, including__init__.pyfiles.- Add runtime dependencies to
dependenciesinpyproject.tomland development tools to[dependency-groups]. - Tests go in
tests/.