Base classes and architecture for LUME Python projects
Project description
lume-base
Base classes and architecture for LUME Python projects
Installation
Install using pip:
pip install lume-base
Development
We recommend using uv for development:
# Install uv
pip install uv
# Initialize uv project
uv init
# Install package in editable mode with dev dependencies
uv sync --extra dev
# Run tests
uv run pytest
or alternatively run pip commands directly in uv:
# Install package in editable mode with dev dependencies
uv pip install -e ".[dev]"
# Run tests
pytest
Linting and Formatting
This project uses pre-commit to manage code quality checks, including ruff for linting and formatting. Pre-commit hooks will automatically run on every commit.
# Install pre-commit (if not already installed from dev dependencies)
uv pip install pre-commit
# Install the git hook scripts
pre-commit install
# (Optional) Run against all files manually
pre-commit run --all-files
Once installed, pre-commit will automatically run checks whenever you commit changes. If any checks fail, the commit will be blocked until you fix the issues.
To manually run checks before committing:
# Run all pre-commit hooks
pre-commit run --all-files
# Or run only ruff checks
pre-commit run ruff --all-files
pre-commit run ruff-format --all-files
The CI pipeline will automatically run these checks on every push and pull request.
Building Documentation
# Install with docs dependencies
uv sync --extra docs
# Build docs
uv run mkdocs build
# Serve docs locally
uv run mkdocs serve
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 lume_base-0.4.2.tar.gz.
File metadata
- Download URL: lume_base-0.4.2.tar.gz
- Upload date:
- Size: 47.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a69420d400d17b4072d5970b920a37089103f1198d9ccffa3b279ef1e4e9474
|
|
| MD5 |
e6c67c33e4775de0adc937adea411e07
|
|
| BLAKE2b-256 |
ec1d05042a1a5c0c32257c11a6ab838ff0a182ffae4bbca781a33a365e079a5d
|
File details
Details for the file lume_base-0.4.2-py3-none-any.whl.
File metadata
- Download URL: lume_base-0.4.2-py3-none-any.whl
- Upload date:
- Size: 49.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9b3d7910841490063a975e09605296db442847a87959d4b501214595107c337
|
|
| MD5 |
fc1a36ad5564f713198c2020a6ac6cbc
|
|
| BLAKE2b-256 |
34a6fe2cabda7d59beff27f0d5e6bf12a8e044aee54be12f5e674858c744bd58
|