Skip to content
@Lux-Python

Lux Is Cool

A hyper-fast, Rust-based Python package manager and resolver with built-in OS-level C/C++ dependency bridging.

Lux Logo

Lux Systems Engineering

Next-generation developer infrastructure, SAT resolvers, and hermetic runtimes for Python.

Flagship Rust License

RepositoryQuickstartFeature GuidesArchitectureReleases


About Us

Lux Systems Engineering designs and builds high-performance, deterministic developer toolchains. We believe that developer tools should be instantaneous, zero-overhead, memory-safe, and visually clean.

Our flagship project is Lux (lux): an all-in-one Python package and project manager, SAT dependency solver, hermetic runtime orchestrator, and binary ABI bridge written in 100% safe Rust (#![deny(unsafe_code)]).


Why Lux?

Fast SAT Resolution

A specialized PubGrub SAT solver resolves package dependencies quickly and deterministically directly in memory.

Binary ABI Inspection (lux doctor)

In-process binary inspection parses PE (.pyd), ELF (.so), and Mach-O extensions to catch missing shared libraries and ABI mismatches before execution.

Content-Addressable Storage (CAS)

Global artifact deduplication (~/.lux/cache/cas) hardlinks files into virtual environments with cryptographic SHA-256 validation.

Python Runtime Management

Manage, pin (.python-version), and provision Python runtimes without requiring root permissions.

Drop-in Pip Interface

Seamless replacement for pip with full support for lux pip install -r requirements.txt and -e <path> editable installs.

Single-File Scripts & Workspaces

Execute standalone scripts with PEP 723 inline dependencies (lux run script.py) and coordinate monorepos ([tool.lux.workspace]).


Quickstart

Install Lux with a single command:

Windows (PowerShell)

powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/Lux-Python/Lux/main/install.ps1 | iex"

macOS and Linux

curl -LsSf https://raw.githubusercontent.com/Lux-Python/Lux/main/install.sh | sh

Initialize and run a project in seconds:

# Initialize project with pyproject.toml and .venv
lux init my-app
cd my-app

# Or create a standalone virtual environment anywhere
lux venv

# Add dependencies with instant PubGrub SAT resolution
lux add fastapi uvicorn "pydantic>=2.0"

# Run your application in the virtual environment
lux run uvicorn main:app --reload

Technical Deep Dives

PubGrub-CDCL SAT Solver Architecture

Lux uses a Conflict-Driven Clause Learning (CDCL) dependency solver designed for package version intervals:

  • Unit Propagation: Propagates positive and negative package assignments to minimize decisions.
  • Incompatibility Graph: Derives conflict clauses upon encountering unsatisfiable requirement constraints.
  • Non-Chronological Backjumping: Backjumps directly to the decision level responsible for the conflict.
  • Pure Rust In-Process Execution: Executes directly in-memory without spawning external resolver processes.
Native Binary ABI Inspection (lux doctor)

Compiled C/C++ extensions frequently fail at runtime due to missing dynamic link libraries (e.g. MSVCP140.dll, libgomp.so, libc++.dylib).

lux doctor provides native, zero-copy binary inspection powered by the object crate:

  • Inspects PE/COFF, ELF, and Mach-O import headers directly from disk.
  • Validates that all imported symbols and shared libraries resolve against the active virtual sysroot (.venv/sysroot) and system library paths.
  • Provides immediate diagnostics with actionable resolution paths before running Python.
Content-Addressable Storage (CAS) & Zero-Copy Linking

Lux uses a global CAS directory (~/.lux/cache/cas):

  • Wheel archives are downloaded and decompressed directly into content-addressed directories indexed by SHA-256.
  • Virtual environment installation uses atomic filesystem hardlinks with copy fallback.
  • Disk usage across multiple projects sharing packages is deduplicated.

Core Repositories & Workspace Crates

Our flagship codebase is hosted at Lux-Python/Lux:

lux
├── crates/lux_core       # PEP 440, PEP 508, PEP 621, PEP 723, lux.lock, .python-version
├── crates/lux_resolver   # PubGrub-CDCL SAT dependency solver
├── crates/lux_cache      # CAS store, HTTP/2 range reader, Python runtime manager
├── crates/lux_sysroot    # Binary ABI inspector (PE/ELF/Mach-O) & PEP 517 builder
└── crates/lux_cli        # Minimalist CLI toolchain & pip interface

Engineering Invariants

  1. 100% Safe Rust: #![deny(unsafe_code)] enforced across all workspace crates.
  2. Zero Clippy Warnings: Maintained under -D clippy::all -D clippy::pedantic -D clippy::nursery.
  3. No Marketing Fluff or Emojis: Strict Cargo/uv design language with right-aligned verbs, microsecond timestamps, and pure box-drawing characters.
  4. Hermetic Determinism: Cryptographic integrity hashes (SHA-256) on all locked packages.

© 2026 Lux Systems Engineering • Open Source under MIT OR Apache-2.0

Popular repositories Loading

  1. .github .github Public

  2. Lux Lux Public

    Fast python package manager made by Rust.

    Rust

Repositories

Showing 2 of 2 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…