lightning-utilities
Lightning toolbox for across the our ecosystem.
Decision gist · record as of 2026-08-14
Yes, if you maintain multiple Python projects or use GitHub Actions for CI/CD. The package is actively maintained, has low install friction, and offers genuine value through workflow reuse and utility functions. The Apache-2.0 license is permissive. Install only if you actually use the GitHub workflows or need the CLI and import utilities; it is not a general-purpose dependency.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low install friction with only two lightweight runtime dependencies (packaging and typing_extensions).
- Actively maintained with recent commits; marked as Alpha status.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions.
last release 2026-02-22 (173 days) · last repo commit 2026-08-03 · 62 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 11,451,044 downloads/mo, #1,395 on PyPI
Alternatives
Verify before relying
pip install lightning_utilities
from lightning_utilities.core.imports import module_available
if module_available("package_name"):
# handle optional dependency- Whether the GitHub workflows and composite actions are compatible with non-Lightning-AI projects or require specific repository structure.
- Performance characteristics of the CLI requirement-version management for large dependency trees.
- Specific use cases and limitations of the module_available utility function.
What it is and what it does
Lightning Utilities is a collection of shared development tools for Python projects, centered on CI/CD automation and common utility functions. It offers reusable GitHub workflows for schema checks and code validation, composite GitHub actions for caching and environment setup, and a Python module with utilities for handling optional imports and a CLI for managing requirement versions.
The package is designed to reduce duplication across projects by centralizing workflow definitions and common patterns. It depends only on packaging and typing_extensions, making it lightweight to add to projects. The CLI can automatically pin or unpin dependency versions in requirements files, and the core imports module helps handle optional dependencies gracefully.
Use it for
- Standardize CI/CD checks across multiple repositories by referencing shared workflows from a central location.
- Manage Python requirement versions programmatically, converting version ranges to pinned versions or vice versa.
- Handle optional dependencies safely without hard failures when packages are not installed.
- Set up consistent caching strategies in GitHub Actions across projects using composite actions.
- Reduce boilerplate in GitHub Actions workflows by reusing tested composite action definitions.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you maintain multiple Python projects or use GitHub Actions for CI/CD.
The package is actively maintained, has low install friction, and offers genuine value through workflow reuse and utility functions. The Apache-2.0 license is permissive. Install only if you actually use the GitHub workflows or need the CLI and import utilities; it is not a general-purpose dependency.
Install
lightning-utilities on PyPI
Before you install
Low install friction with only two lightweight runtime dependencies (packaging and typing_extensions). Actively maintained with recent commits; marked as Alpha status.
Requires Python 3.10 or later.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions.
Quickstart
pip install lightning_utilities
from lightning_utilities.core.imports import module_available
if module_available("package_name"):
# handle optional dependency
Verify before relying
- Whether the GitHub workflows and composite actions are compatible with non-Lightning-AI projects or require specific repository structure.
- Performance characteristics of the CLI requirement-version management for large dependency trees.
- Specific use cases and limitations of the module_available utility function.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespackagingtyping_extensions |
| Maintenance | Actively maintained 173 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 11,451,044 / month, #1,395 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaEnvironment :: ConsoleIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: lightning_utilities-0.15.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “github workflows reusable”
- lightning-utilitiesProvides reusable GitHub workflows, composite actions, and Python…
- ghapighapi provides a complete, always-current Python client for the…
- aip-agents-binaryA local execution agent library for building and running AI agents…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also actionlint-py · tox-gh-actions · pytest-github-actions-annotate-failures · scverse-misc · lightning-sdk · lightning · pytorch-lightning · pyproject2conda · azure-devops · lightning-cloud