PYPI PACKAGE AUDIT v0.4.0 Healthy Package

lightfall

Lightfall - control system for the ALS facility

PyPkgScore lightfall
Methodology & Criteria โ™ฅ Donate
770 / 1000
Quick Install
pip install lightfall
1. Governance
50/200
2. PEP Metadata
200/200
3. Security
200/200
4. Docs & SEO
155/200
5. CI Engineering
165/200
๐Ÿ“ฃ Share Audit: Share this report and visual preview in the current language
Advertisement
PYPI TELEMETRY

Downloads & Community Adoption

Last 30 days (without mirrors)
Last 7 days
141
Last 30 days
196
Total (180 days)
809
Metric / Ecosystem Status / Value Source
Downloads (30d / 180d) โ€” PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) โœ“ Verified OIDC PyPI Integrity / Sigstore
Django Packages โ€” djangopackages.org
PyTech / PyPkgScore 770 / 1000 PyPkgScore Engine

Health & Engineering Analysis (5 Pillars)

1. Governance & Community50 / 200 โ–พ
LICENSEโœ“ 50 pts
SECURITY.mdโœ• 0 pts
CONTRIBUTING.mdโœ• 0 pts
CODE_OF_CONDUCT.mdโœ• 0 pts
2. PEP Metadata & Packaging200 / 200 โ–พ
Wheel (.whl)โœ“ 50 pts
pyproject.tomlโœ“ 50 pts
Project URLsโœ“ 50 pts
Trove Classifiersโœ“ 50 pts
3. Security & Supply Chain200 / 200 โ–พ
Zero CVEs (OSV)โœ“ 60 pts
Trusted Publishing (OIDC)โœ“ 50 pts
Snyk / Audit Linkโœ“ 40 pts
HTTPS Repositoryโœ“ 50 pts
4. Documentation, SEO & Ecosystem155 / 200 โ–พ
Structured READMEโœ“ 60 pts
Read the Docsโœ“ 50 pts
Django Packagesโœ• 0 pts
Website / Technical Articlesโœ“ 45 pts
5. Engineering, CI & Quality165 / 200 โ–พ
Automated Testsโœ“ 65 pts
GitHub Actions CIโœ“ 65 pts
CHANGELOG.mdโœ“ 35 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)โœ• 0 pts
Advertisement
README & DOCS

Official Documentation & Usage Guide โ€” lightfall

PyPI Metadata v0.4.0
Show full original documentation (English README) โ–พ

Lightfall

PyPI version Python versions CI Docs License: BSD-3-Clause

A modern, unified control system for synchrotron lightsource facilities that provides facility-wide consistency with beamline-specific customization.

Overview

Lightfall is designed for the Advanced Light Source (ALS) facility, providing:

  • Unified Interface: Consistent look-and-feel across beamlines with skinnable themes
  • API-First Architecture: Modular, extensible design enabling automation and integration
  • LLM/AI Integration: Claude-powered chatbot for natural language control and assistance
  • FAIR-Compliant Data Management: Integration with Tiled for data cataloging and access
  • Secure Remote Operations: Full remote operation capability with fine-grained access control

Features

User Interface

  • Progressive disclosure: user panels with expert panels behind authorization
  • Scripting panel with Jupyter-lab style interface
  • LLM panel for controlling panels via natural language
  • GUI Builder for drag-and-drop interface creation
  • Persistent user preferences saved across sessions

Device Management

  • Centralized device catalog with lifecycle tracking
  • Real-time monitoring via EPICS Channel Access
  • Version-controlled device configurations
  • Rich high-level controls integrated into workflows

Data Acquisition

  • Bluesky-based acquisition engine
  • Flexible signal/stream selection with real-time visualization
  • Interactive, pausable, restartable acquisition
  • Automatic data persistence to Tiled catalog

Data Browser

  • Browse and search data stored in Tiled server
  • Filter by date range, plan type, exit status
  • Pagination for large datasets
  • Click/double-click signals for integration with analysis tools

Installation

pip install lightfall

Development Installation

# Clone the repository
git clone https://github.com/als-controls/lightfall.git
cd lightfall

# Create and activate virtual environment
python -m venv .venv
.venv\Scripts\activate  # Windows
# or
source .venv/bin/activate  # Unix

# Install in development mode with dev dependencies
pip install -e ".[dev]"

Lightfall depends on lightfall-utils (installed from PyPI like any other dependency). To co-develop both packages, install a sibling checkout in editable mode on top:

git clone https://github.com/als-controls/lightfall-utils.git ../lightfall-utils
pip install -e ../lightfall-utils

Running the Application

lightfall

Configuration

Lightfall uses a layered configuration system:

  1. System defaults - Built-in defaults
  2. Site configuration - Facility-wide settings
  3. User preferences - Personal customizations

Configuration files are stored in:

  • Windows: %APPDATA%\lightfall\
  • Linux/Mac: ~/.config/lightfall/

Architecture

Lightfall is built on:

  • PySide6 - Qt for Python GUI framework
  • Bluesky - Data acquisition framework
  • Ophyd - Device abstraction layer
  • Tiled - Data catalog and access
  • EPICS - Control system communication

Plugin System

Lightfall supports plugins for:

  • Panels - Custom UI panels
  • Settings - Preference pages
  • Status Bar - Status indicators
  • Engines - Acquisition backends
  • Plans - Scan procedures

Development

Running Tests

pytest

Code Quality

# Linting
ruff check src tests

# Type checking
mypy src

Project Structure

lightfall/
โ”œโ”€โ”€ src/lightfall/
โ”‚   โ”œโ”€โ”€ acquire/        # Data acquisition engine (Bluesky RunEngine, plans)
โ”‚   โ”œโ”€โ”€ auth/           # Authentication & authorization
โ”‚   โ”œโ”€โ”€ claude/         # Embedded Claude agent integration
โ”‚   โ”œโ”€โ”€ config/         # Configuration management
โ”‚   โ”œโ”€โ”€ core/           # Core application classes
โ”‚   โ”œโ”€โ”€ devices/        # Device catalog & backends
โ”‚   โ”œโ”€โ”€ epics/          # EPICS (caproto) widgets & helpers
โ”‚   โ”œโ”€โ”€ exporter/       # Data exporter CLI
โ”‚   โ”œโ”€โ”€ ipc/            # Inter-process communication (NATS)
โ”‚   โ”œโ”€โ”€ logbook/        # Logbook client
โ”‚   โ”œโ”€โ”€ pipelines/      # Pipeline client
โ”‚   โ”œโ”€โ”€ plugins/        # Plugin system
โ”‚   โ”œโ”€โ”€ services/       # Application services (Tiled, CA tunnel, etc.)
โ”‚   โ”œโ”€โ”€ settings/       # User-portable settings client
โ”‚   โ”œโ”€โ”€ ui/             # User interface
โ”‚   โ”‚   โ”œโ”€โ”€ panels/     # Panel implementations
โ”‚   โ”‚   โ”œโ”€โ”€ widgets/    # Reusable widgets
โ”‚   โ”‚   โ”œโ”€โ”€ preferences/  # Settings UI
โ”‚   โ”‚   โ””โ”€โ”€ theme/      # Theming system
โ”‚   โ”œโ”€โ”€ utils/          # Utilities
โ”‚   โ””โ”€โ”€ visualization/  # Plotting & live visualization
โ””โ”€โ”€ tests/              # Test suite