Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lume_base-0.5.0.tar.gz (54.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lume_base-0.5.0-py3-none-any.whl (53.6 kB view details)

Uploaded Python 3

File details

Details for the file lume_base-0.5.0.tar.gz.

File metadata

  • Download URL: lume_base-0.5.0.tar.gz
  • Upload date:
  • Size: 54.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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

Hashes for lume_base-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d7bf5f887d2be7228973402a82e1b68078e3ccf5d3563f9b1575d6cf8b35afe9
MD5 649c687a94a8d8d50d0d2747567ef400
BLAKE2b-256 422fd5f91ddd15b92d9ef2fbee68d942dab92d6e0405a50ca25f9551b9fa25c7

See more details on using hashes here.

File details

Details for the file lume_base-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: lume_base-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 53.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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

Hashes for lume_base-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f1c58862f2283a33bcaa01a865227097274f9088109753602b8bc63ade04673
MD5 5ec8f3cee02ada2024c20426c778e340
BLAKE2b-256 7102273715929e5e9583dae5c8c00ebffcae620b9c6f2fd1ed59fff49dc8bc8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page