Skip to main content

Cuvis-AI Core Framework

Project description

Cuvis-AI Core Framework

image

PyPI version CI Status codecov License Python

Overview

cuvis-ai-core is the foundational framework that powers the cuvis-ai machine learning pipeline for hyperspectral image analysis. This repository provides the core infrastructure and building blocks that enable flexible, extensible AI workflows for hyperspectral measurements.

While the cuvis-ai repository contains domain-specific nodes and pre-built models for tasks like anomaly detection and classification, cuvis-ai-core provides the essential framework components:

  • Node System: Base classes for creating processing nodes with typed input/output ports
  • Pipeline Infrastructure: Graph-based pipeline orchestration, execution, and visualization
  • Plugin System: Dynamic node loading from Git repositories or local filesystem paths
  • Serialization & Restoration: Save and restore complete pipeline states and configurations
  • Type Safety: Strongly-typed port system with runtime validation
  • gRPC Services: Remote pipeline management, training, and inference APIs
  • Training Framework: Integration with PyTorch Lightning for model training workflows

This separation allows the core framework to evolve independently while the catalog of domain-specific nodes grows through a plugin architecture.

Installation

Prerequisites

If you want to directly work with cubert session files (.cu3s), you need to install cuvis C SDK from here.

Local development now relies on uv for Python and dependency management. If uv is not already available on your system you can install it following their installation instructions.

Install from PyPI (Recommended)

# Install cuvis-ai-core from PyPI
uv add cuvis-ai-core

PyTorch will be installed automatically with CUDA support if available on your system.

Local development with uv

Create or refresh a development environment at the repository root with:

uv sync --all-extras --dev

This installs the runtime dependencies declared in pyproject.toml. uv automatically provisions the Python version declared in the project metadata, so no manual interpreter management is required.

Enable Git Hooks (Required)

After cloning the repository, enable the git hooks for code quality enforcement:

git config core.hooksPath .githooks

This configures Git to use the version-controlled hooks in .githooks/ which automatically enforce code formatting, linting, and testing standards before commits and pushes. See docs/development/git-hooks.md for details.

Advanced environment setup

When you need the reproducible development toolchain (JupyterLab, TensorBoard, etc.) from the lock file, run:

uv sync --locked --extra dev

Use uv run to execute project tooling without manually activating virtual environments, for example:

uv run pytest

Collect coverage details (the dev extra installs pytest-cov) with:

uv run pytest --cov=cuvis_ai --cov-report=term-missing

Ruff handles both formatting and linting. Format sources and check style with:

uv run ruff format .
uv run ruff check .

The configuration enforces import ordering, newline hygiene, modern string formatting, safe exception chaining, and practical return type annotations while avoiding noisy Any policing.

Validate packaging metadata and build artifacts before publishing:

uv build

To build the documentation, add the docs extra:

uv sync --locked --extra docs

Combine extras as needed (e.g. uv sync --locked --extra dev --extra docs). Whenever the pyproject.toml or uv.lock changes, rerun uv sync --locked with the extras you need to stay up to date.

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

cuvis_ai_core-0.3.2.tar.gz (444.4 kB view details)

Uploaded Source

Built Distribution

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

cuvis_ai_core-0.3.2-py3-none-any.whl (140.8 kB view details)

Uploaded Python 3

File details

Details for the file cuvis_ai_core-0.3.2.tar.gz.

File metadata

  • Download URL: cuvis_ai_core-0.3.2.tar.gz
  • Upload date:
  • Size: 444.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cuvis_ai_core-0.3.2.tar.gz
Algorithm Hash digest
SHA256 f1084ae3b9d55250c00792b6b8c45b91b02733cf9dddb107ea4a66fe662f48e0
MD5 0a302a58c651558a1f341e0b3c2b2f5b
BLAKE2b-256 7cefc101cf0cdea94dab082a0c7433816612bdfc5fc8ed46f1fd73083c31e0da

See more details on using hashes here.

Provenance

The following attestation bundles were made for cuvis_ai_core-0.3.2.tar.gz:

Publisher: pypi-release.yml on cubert-hyperspectral/cuvis-ai-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cuvis_ai_core-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: cuvis_ai_core-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 140.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cuvis_ai_core-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cc102fde9a7decd5861cc3fcb8106edf2f1ac80e8145fce882a94b00f2b2f37f
MD5 aaf61558e686cad72f75fd063f612d94
BLAKE2b-256 e589662c54856b3696a6e3cab33d53d2301adf91a469ca8a5f9275dbb5e2201f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cuvis_ai_core-0.3.2-py3-none-any.whl:

Publisher: pypi-release.yml on cubert-hyperspectral/cuvis-ai-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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