๐Ÿš€ Big News:Socket Has Acquired Secure Annex.Learn More โ†’
Socket
Book a DemoSign in
Socket

omnipkg

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

omnipkg

Runtime Hypervisor. Run infinite Python package & interpreter versions concurrently in one environment in milliseconds.

pipPyPI
Version
1.1.2
Maintainers
1

omnipkg Logo

omnipkg โ€“ Python Runtime Hypervisor

Run infinite Python package & interpreter versions concurrently in one environment in milliseconds.

License PyPI Conda Downloads Conda Downloads (minds3t) PyPI Downloads Docker Pulls Global Reach Badge

Python Versions Supported Platforms

Security Safety Pylint Bandit CodeQL Socket

Concurrent Python Interpreters Hot-Swapping Python Hot-Swapping Auto-Healing Performance 24 Languages

omnipkg is not just another package manager. It's an intelligent, self-healing runtime orchestrator that breaks the fundamental laws of Python environments. For 30 years, developers accepted that you couldn't run multiple Python versions in one script, or safely switch C-extensions like NumPy mid-execution. Omnipkg proves this is no longer true.

Born from a real-world nightmareโ€”a forced downgrade that wrecked a production environmentโ€”omnipkg was built to solve what others couldn't: achieving perfect dependency isolation and runtime adaptability without the overhead of containers or multiple venvs.

โš–๏ธ Multi-Version Support

omnipkg pip uv

Multi-version installation tests run every 3 hours. Live results here.

๐Ÿ’ก Why This Matters

The Multi-Version Nightmare is Over: Modern projects are messy. You need tensorflow==2.10 for a legacy model but tensorflow==2.15 for new training. A critical library requires numpy==1.21 while your latest feature needs numpy==2.0. Traditional solutions like Docker or virtual environments force you into a painful choice: duplicate entire environments, endure slow context switching, or face crippling dependency conflicts.

The Multi-Interpreter Wall is Gone: Legacy codebases often require older Python versions (e.g., Django on 3.8) while modern ML demands the latest (Python 3.11+). This forces developers to constantly manage and switch between separate, isolated environments, killing productivity.

The omnipkg Solution: One Environment, Infinite Python Versions & Packages, Zero Conflicts, Downtime, or Setup. Faster than UV.

omnipkg doesn't just solve these problemsโ€”it makes them irrelevant.

  • Run Concurrently: Execute tests for Python 3.9, 3.10, and 3.11 at the same time, from one command, test is done in under 500ms. No more sequential CI jobs.
  • Switch Mid-Script: Seamlessly use torch==2.0.0 and torch==2.7.1 in the same script without restarting.
  • Instant Healing: Recover from environment damage in microseconds, not hours.
  • Speak Your Language: All of this, in your native tongue.

This is the new reality: one environment, one script, everything just works.

๐Ÿง  Revolutionary Core Features

1. Multiverse Orchestration & Python Hot-Swapping <600ms 3 Py Interps 1 Script 1 Env ๐ŸŽ macOS

The "Quantum Multiverse Warp": 3 Pythons, 1 Script, Sub-3ms Execution

Our "Quantum Multiverse Warp" demo, validated live in CI across multiple platforms, executes a single script across three different Python interpreters and three package versions concurrently in the same environment. The hot worker performance isn't just fast; it redefines what's possible for high-performance Python automation.

Production Benchmark Results (macOS CI)

Task (Same Script, Same Environment)Hot Worker Execution
๐Ÿงต Thread 1: Python 3.9 + Rich 13.4.2โœ… 2.2ms
๐Ÿงต Thread 2: Python 3.10 + Rich 13.6.0โœ… 2.3ms
๐Ÿงต Thread 3: Python 3.11 + Rich 13.7.1โœ… 2.3ms
๐Ÿ† Total Concurrent Runtime2.3ms
โฑ๏ธ Total Test Duration (with setup)2.14s

Platform-Specific Performance:

PlatformHot Worker BenchmarkTotal w/ SetupCI Link
๐Ÿง Linux3.8ms avg (3.2-4.5ms range)~580msView CI
๐ŸŽ macOS2.3ms avg (2.2-2.3ms range)2.14sView CI

What This Actually Means

The numbers that matter are the hot worker benchmarks (sub-5ms). This is the actual execution time for running code across three concurrent Python interpreters with three different package versions. The "Total w/ Setup" includes one-time initialization:

  • Worker pool spawning
  • Package installation (if not cached)
  • Environment validation

Why This Is Revolutionary:

  • Traditional approach: Docker containers or separate venvs would take 30-90 seconds minimum to achieve the same multi-version testing
  • omnipkg approach: After initial setup, switching between Python versions and package combinations happens in microseconds, not seconds

This isn't just a speedup; it's a paradigm shift. What traditionally takes minutes with Docker or complex venv scripting, omnipkg accomplishes in milliseconds. This isn't a simulation; it's a live, production-ready capability for high-performance Python automation.

Benchmark Methodology

Our production benchmark follows industry-standard practices:

  • ๐Ÿ“ฅ Setup Phase: Verify Python interpreters are available and daemon is running (one-time cost)
  • ๐Ÿ”ฅ Warmup Phase: Spawn workers and install packages - timing discarded (matches real-world "first run" scenario)
  • โšก Benchmark Phase: Execute with hot workers - THIS IS THE METRIC (pure execution performance)
  • ๐Ÿ” Verification Phase: Prove correctness with version checks (not timed)

Key Achievement: The hot worker performance (2-4ms) represents the actual overhead of omnipkg's multiverse orchestration. Once warmed up, switching between Python interpreters and package versions is faster than most function calls.

Don't believe it? See the live proof, then run Demo 8 to experience it yourself:

uv pip install omnipkg && omnipkg demo
# Select option 8: ๐ŸŒ  Quantum Multiverse Warp

Live CI Output from Multiverse Benchmark:

โšก Phase 3: PRODUCTION BENCHMARK (hot workers, concurrent execution)
----------------------------------------------------------------------------------------------------
[T1] โšก Benchmarking Python 3.9 + Rich 13.4.2...
[T1] โœ… Benchmark: 2.2ms
[T2] โšก Benchmarking Python 3.10 + Rich 13.6.0...
[T2] โœ… Benchmark: 2.3ms
[T3] โšก Benchmarking Python 3.11 + Rich 13.7.1...
[T3] โœ… Benchmark: 2.3ms

====================================================================================================
๐Ÿ“Š PRODUCTION BENCHMARK RESULTS
====================================================================================================
Thread   Python       Rich       Warmup          Benchmark      
----------------------------------------------------------------------------------------------------
T1       3.9          13.4.2     3.4ms           2.2ms          
T2       3.10         13.6.0     3.0ms           2.3ms          
T3       3.11         13.7.1     3.5ms           2.3ms          
----------------------------------------------------------------------------------------------------
โฑ๏ธ  Sequential time (sum of all):  6.8ms
โฑ๏ธ  Concurrent time (longest one):  2.3ms
====================================================================================================

๐ŸŽฏ PERFORMANCE METRICS:
----------------------------------------------------------------------------------------------------
   Warmup (cold start):     3.3ms avg
   Benchmark (hot workers): 2.3ms avg
   Range:                   2.2ms - 2.3ms
   Speedup (warmupโ†’hot):    1.5x
   Concurrent speedup:      2.93x
----------------------------------------------------------------------------------------------------

๐ŸŽ‰ BENCHMARK COMPLETE!

โœจ KEY ACHIEVEMENTS:
   โœ… 3 different Python interpreters executing concurrently
   โœ… 3 different Rich versions loaded simultaneously
   โœ… Hot worker performance: sub-50ms execution!
   โœ… Zero state corruption or interference
   โœ… Production-grade benchmark methodology

โฑ๏ธ  Total test duration: 2.14s

๐Ÿš€ This is IMPOSSIBLE with traditional Python environments!

Real-World Impact

For CI/CD Pipelines:

  • Before: Sequential matrix testing across Python 3.9, 3.10, 3.11 = 3-5 minutes
  • After: Concurrent testing with omnipkg = < 3 seconds (including setup)
  • Improvement: 60-100x faster CI/CD workflows

For Development:

  • Before: Switch Python versions โ†’ wait 30-90s for new venv/container
  • After: Switch with omnipkg โ†’ < 5ms overhead
  • Improvement: Instant iteration, zero context-switching penalty

This is the new reality: one environment, one script, everything just works โ€” and it's blazing fast.

๐Ÿ”„ Reproducible State Sync & Environment Reconstruction

Omnipkg treats your environment as a State Engine โ€” a deterministic, rebuildable artifact rather than a collection of installed files. Two commands drive this:

8pkg export โ€” Snapshot your environment

8pkg export

Scans all registered interpreters and writes two files:

  • Local lock โ€” <venv>/.omnipkg/omnipkg.lock โ€” full environment inventory including interpreter registry, active packages, and bubble state per Python version
  • Canonical state โ€” ~/.config/omnipkg/locks/states/sha256_<hash>.toml โ€” a privacy-scrubbed, path-free cryptographic fingerprint of your environment (safe to commit or share)

If the environment has changed since the last export, the SHA transitions automatically:

๐Ÿ”„ Environment changed โ€” updating lock file
   sha256:aaaaaa... โ†’ sha256:bbbbbb...

If nothing changed, it's a no-op.

8pkg sync โ€” Rebuild or verify from a lock file

8pkg sync

Runs an interactive flow. Auto-selects the most recent lock file for the current environment, shows a full sync plan across all registered interpreters, then computes a live SHA and compares it against the lock.

If the environment already matches:

โœ… Environment already matches lock file (sha256:bbbbbb...).

   What would you like to do?
   [1] Exit โ€” nothing to do  (default)
   [2] Rebuild anyway
   [3] Sync from a different lock file
   [4] Manage lock files (delete old ones)

If the environment has drifted:

โš ๏ธ  This will DESTROY and rebuild the listed python environments.
Proceed? (y/N):

The destructive rebuild warning is explicit โ€” sync is not a partial patch, it fully reconstructs all listed interpreter environments to match the lock exactly.

Switching lock files (--pick)

If you have multiple environments or historical snapshots:

8pkg sync --pick

Presents a numbered list of every lock file Omnipkg knows about, grouped by environment:

  โ”€โ”€ my_env โ”€โ”€
    1) <venv>/.omnipkg/omnipkg.lock
       python: 3.11  9 interpreter(s)  918 active packages  โ—€ most recent

  โ”€โ”€ ? โ”€โ”€
    2) sha256_bbbbbb...toml   9 interpreters  918 pkgs  2026-04-16
    3) sha256_aaaaaa...toml   9 interpreters  826 pkgs  2026-04-14

  โ”€โ”€ used by: other_env โ”€โ”€
    4) sha256_cccccc...toml   3 interpreters  152 pkgs  2026-04-06

Select by number, or [m] to manage/delete old states.

How the SHA split works

LayerLocationContainsShareable?
Local lock<venv>/.omnipkg/omnipkg.lockPaths, env kind, distro, venv originNo
Canonical state~/.config/omnipkg/locks/states/Package hashes, ABI tags, arch, Python versionYes โ€” zero PII

The canonical SHA is deterministic: same packages + same arch + same Python patch version always produces the same hash, regardless of machine or user. Two machines can confirm environment parity by comparing SHAs without exchanging any local path data.

CI/CD

CI flags and --yes / -y are not yet implemented โ€” sync is currently interactive only. For unattended use, pipe input directly:

echo "y" | 8pkg sync

Non-interactive flag support is planned for a future release.


### 2. Intelligent Script Runner (`omnipkg run`) [![โšก Auto-Healing: 12.94x Faster than UV](https://img.shields.io/badge/โšก_Auto--Healing-12.94x_Faster_than_UV-gold?logo=lightning&logoColor=white)](https://github.com/1minds3t/omnipkg/actions/workflows/old_rich_test.yml)
`omnipkg run` is an intelligent script and CLI executor that **automatically detects and fixes** dependency errors using bubble versionsโ€”without modifying your main environment.

## What is `omnipkg run`?
Think of it as a "smart wrapper" around Python scripts and CLI commands that:
1. **Tries to execute** your script or command
2. **Detects errors** (ImportError, ModuleNotFoundError, version conflicts)
3. **Finds the right version** from existing bubbles or creates new ones
4. **Re-runs successfully** in millisecondsโ€”all automatically

**The magic:** Your broken main environment stays broken, but everything works anyway.

## Two Modes of Operation

### Mode 1: Script Execution (`omnipkg run script.py`)
Automatically heals Python scripts with dependency conflicts:

```bash
$ python broken_script.py
AssertionError: Incorrect rich version! Expected 13.4.2, got 13.7.1

$ omnipkg run broken_script.py
๐Ÿ” Runtime version assertion failed. Auto-healing...
   - Conflict identified for: rich==13.4.2
๐Ÿ› ๏ธ  Installing bubble for rich==13.4.2...
   โšก HEALED in 16,223.1 ฮผs (16.2ms)
โœ… Script completed successfully!

Performance vs UV:

UV Failed Run      : 210.007ms (fails, no recovery)
omnipkg Activation :  16.223ms (succeeds automatically)
๐ŸŽฏ omnipkg is 12.94x FASTER than UV!

Mode 2: CLI Command Execution (omnipkg run <command>)

Automatically heals broken command-line tools:

# Regular execution fails
$ http --version
ImportError: cannot import name 'SKIP_HEADER' from 'urllib3.util'

# omnipkg run heals and executes
$ omnipkg run http --version
โš ๏ธ  Command failed (exit code 1). Starting Auto-Healer...
๐Ÿ” Import error detected. Auto-healing with bubbles...
โ™ป๏ธ  Loading: ['urllib3==2.6.3']
   โšก HEALED in 12,371.6 ฮผs (12.4ms)
3.2.4
โœ… Success!

What happened: The main environment still has urllib3 1.25.11 (broken), but omnipkg run used urllib3 2.6.3 from a bubble to make the command work.

How It Works

Step 1: Detect the Error

omnipkg run recognizes multiple error patterns:

# Import errors
ModuleNotFoundError: No module named 'missing_package'
ImportError: cannot import name 'SKIP_HEADER'

# Version conflicts  
AssertionError: Incorrect rich version! Expected 13.4.2, got 13.7.1
requires numpy==1.26.4, but you have numpy==2.0.0

# C-extension failures
A module compiled using NumPy 1.x cannot run in NumPy 2.0

Step 2: Build a Healing Plan

Analyzes the error and identifies what's needed:

๐Ÿ” Comprehensive Healing Plan Compiled (Attempt 1): ['rich==13.4.2']

For CLI commands, it includes the owning package:

๐Ÿ” Analyzing error: ImportError from urllib3
โ™ป๏ธ  Loading: ['urllib3==2.6.3']

Step 3: Find or Create Bubbles

Checks if the needed version exists:

# Bubble exists - instant activation
๐Ÿš€ INSTANT HIT: Found existing bubble urllib3==2.6.3 in KB
   โšก HEALED in 12.4ms

# Bubble doesn't exist - create it
๐Ÿ› ๏ธ  Installing bubble for rich==13.4.2...
   ๐Ÿ“Š Bubble: 4 packages, 0 conflicts
   โšก HEALED in 16.2ms

Step 4: Execute with Bubbles

Re-runs the script/command with the correct versions activated:

๐ŸŒ€ omnipkg auto-heal: Wrapping with loaders for ['rich==13.4.2']...
๐Ÿš€ Fast-activating rich==13.4.2 ...
   ๐Ÿ“Š Bubble: 4 packages, 0 conflicts
   ๐Ÿงน Purging 4 module(s) from memory...
๐Ÿ”— Linked 20 compatible dependencies to bubble
   โœ… Bubble activated

๐Ÿš€ Running target script inside the bubble...
โœ… Successfully imported rich version: 13.4.2

Step 5: Clean Restoration

After execution, environment is restored to original state:

๐ŸŒ€ omnipkg loader: Deactivating rich==13.4.2...
   โœ… Environment restored.
   โฑ๏ธ  Swap Time: 35,319.103 ฮผs (35.3ms)

Real-World Examples

Example 1: Version Conflict Resolution

Scenario: Script needs rich==13.4.2 but main environment has rich==13.7.1

$ omnipkg run test_rich.py
๐Ÿ” Runtime version assertion failed. Auto-healing...
   - Conflict identified for: rich==13.4.2

๐Ÿ› ๏ธ  Installing bubble for rich==13.4.2...
   - ๐Ÿงช Running SMART import verification...
   โœ… markdown-it-py: OK
   โœ… rich: OK
   โœ… mdurl: OK
   โœ… Pygments: OK
   
   โšก HEALED in 16.2ms
โœ… Script completed successfully inside omnipkg bubble.

Main environment after execution:

$ python -c "import rich; print(rich.__version__)"
13.7.1  # Still the original version - untouched!

Example 2: Broken CLI Tool

Scenario: httpie broken by urllib3 downgrade to 1.25.11

# Shows the error first
$ http --version
Traceback (most recent call last):
  File "/usr/bin/http", line 13, in <module>
    from urllib3.util import SKIP_HEADER
ImportError: cannot import name 'SKIP_HEADER' from 'urllib3.util'

# Heals and executes
$ omnipkg run http --version
โš ๏ธ  Command 'http' failed. Starting Auto-Healer...
๐Ÿ” Analyzing error: ImportError from module
   - Installing missing package: urllib3

๐Ÿ” Resolving latest version for 'urllib3'...
   ๐Ÿš€ INSTANT HIT: Found existing bubble urllib3==2.6.3
   
๐Ÿ [omnipkg loader] Running in Python 3.11 context
๐Ÿš€ Fast-activating urllib3==2.6.3 ...
   ๐Ÿ“Š Bubble: 1 packages, 0 conflicts
   ๐Ÿงน Purging 31 modules for 'urllib3'
   โšก HEALED in 12.4ms

๐Ÿš€ Re-launching '/usr/bin/http' in healed environment...
3.2.4
โœ… Success!

Main environment after execution:

$ python -c "import urllib3; print(urllib3.__version__)"
1.25.11  # Still broken - but who cares? omnipkg run works!

Performance Benchmarks

Script Healing (Demo 7)

OperationTimeStatus
UV failed run210.007msโŒ Fails, no recovery
omnipkg detection<1msโœ… Instant
omnipkg healing16.223msโœ… Creates bubble
omnipkg execution~35msโœ… Runs successfully
Total recovery~51ms12.94x faster than UV

CLI Healing (Demo 10)

OperationTraditionalomnipkg run
Error detectionManual (minutes)Automatic (<1ms)
Finding fixManual researchAutomatic KB lookup
Applying fix30-90s (reinstall)12.4ms (bubble activation)
Main env impactโš ๏ธ Modifiedโœ… Untouched
Success rate~50% (manual)100% (automated)

Key Features

1. Zero Main Environment Impact

Traditional approach:

$ pip install old-package==1.0.0
# Breaks 5 other packages
# Spend 30 minutes fixing

omnipkg run approach:

$ omnipkg run script-needing-old-version.py
# Works instantly
# Main environment untouched

2. Intelligent Error Detection

Recognizes and fixes:

  • ModuleNotFoundError โ†’ Installs missing package
  • ImportError โ†’ Fixes import conflicts
  • AssertionError (version checks) โ†’ Switches to correct version
  • NumPy C-extension errors โ†’ Downgrades to compatible version
  • CLI command failures โ†’ Heals dependencies automatically

3. Smart Dependency Resolution

๐Ÿ” Analyzing script for additional dependencies...
   โœ… No additional dependencies needed

# Or if dependencies are found:
๐Ÿ”— [omnipkg loader] Linked 20 compatible dependencies to bubble

Automatically detects and includes all required dependencies, not just the primary package.

4. Bubble Reuse

Once a bubble is created, it's instantly available:

# First time - creates bubble
๐Ÿ› ๏ธ  Installing bubble for rich==13.4.2...
   โšก HEALED in 16.2ms

# Second time - instant activation
๐Ÿš€ INSTANT HIT: Found existing bubble rich==13.4.2
   โšก HEALED in <1ms

Usage

Basic Script Execution

# Run a Python script with auto-healing
omnipkg run script.py

# Pass arguments to the script
omnipkg run script.py --arg1 value1 --arg2 value2

CLI Command Execution

# Run any CLI command with auto-healing
omnipkg run http GET https://api.github.com

# Run tools that depend on specific library versions
omnipkg run pytest
omnipkg run black mycode.py
omnipkg run mypy myproject/

With Verbose Output

# See detailed healing process
omnipkg run -v script.py

When to Use omnipkg run

โœ… Perfect For:

  • Scripts with version conflicts: Need old numpy but have new numpy installed
  • Broken CLI tools: Tool worked yesterday, broken after an upgrade today
  • Testing different versions: Try multiple library versions without changing environment
  • CI/CD pipelines: Guaranteed success even with dependency conflicts
  • Legacy code: Run old code without downgrading your entire environment

โš ๏ธ Not Needed For:

  • Fresh scripts with satisfied dependencies: Just use python script.py
  • Well-maintained environments: If everything works, no need to heal

Performance Comparison

Traditional Workflow (Broken Tool):
1. Tool fails ........................... 0s
2. Debug error (find root cause) ....... 300s (5 min)
3. Research fix ........................ 600s (10 min)
4. Apply fix (reinstall) ............... 60s (1 min)
5. Test fix ............................ 10s
6. Fix breaks other things ............. 1800s (30 min)
Total: 2770s (46 minutes) โŒ

omnipkg run Workflow:
1. omnipkg run <command> ............... 0.012s (12ms)
Total: 0.012s (12 milliseconds) โœ…

Speedup: 230,833x faster

Try It Yourself

# Install omnipkg
uv pip install omnipkg

# Run Demo 7: Script auto-healing
omnipkg demo
# Select option 7

# Run Demo 10: CLI auto-healing
omnipkg demo
# Select option 10

See for yourself how omnipkg run turns minutes of frustration into milliseconds of automated healing.

The Future: Package Manager Interception

This healing capability is the foundation for our vision of transparent package management:

# Coming soon: omnipkg intercepts all package managers
$ pip install broken-package==old-version
โš ๏ธ  This would break 3 packages in your environment
๐Ÿ›ก๏ธ  omnipkg: Creating bubble instead to protect environment
โœ… Installed to bubble - use 'omnipkg run' to access

# Everything just works
$ omnipkg run my-script-using-old-version.py
โœ… Success (using bubbled version)

$ python my-script-using-new-version.py  
โœ… Success (using main environment)

The endgame: Infinite package coexistence, zero conflicts, microsecond switchingโ€”all invisible to the user.

3. Dynamic Package Switching & Process Isolation

๐Ÿ’ฅ Nuclear Test: Multi-Framework Battle Royale Daemon Status

omnipkg allows you to switch package versions mid-script and run conflicting dependencies simultaneously. It offers two distinct modes depending on the severity of the dependency conflict:

  • In-Process Overlay: For "safe" packages (NumPy, SciPy, Pandas) โ€” Zero latency.
  • Daemon Worker Pool: For "heavy" frameworks (TensorFlow, PyTorch) โ€” True isolation.

๐Ÿ›‘ The Hard Truth: Why You Need Daemons

Traditional Python wisdom says you cannot switch frameworks like PyTorch or TensorFlow without restarting the interpreter. This is true. Their C++ backends (_C symbols) bind to memory and refuse to let go.

What happens if you try to force-switch PyTorch in-process?

# โŒ THIS CRASHES IN STANDARD PYTHON
import torch  # Loads version 2.0.1
# ... try to unload and reload 2.1.0 ...
import torch
# NameError: name '_C' is not defined

The C++ backend remains resident, causing symbol conflicts and segfaults.

๐ŸŸข The Solution: omnipkg Daemon Workers

Instead of fighting the C++ backend, omnipkg accepts it. We spawn persistent, lightweight worker processes for each framework version.

  • Workers persist across script runs: Cold start once, hot-swap forever.
  • Zero-Copy Communication: Data moves between workers via shared memory (no pickling overhead).
  • Sub-millisecond switching: Switching contexts takes ~0.37ms.

๐Ÿš€ The Impossible Made Real: Benchmark Results

We ran omnipkg demo (Scenario 11: Chaos Theory) to prove capabilities that should be impossible.

1. Framework Battle Royale (Concurrent Execution)

The Challenge: Run TensorFlow, PyTorch, and NumPy (different versions) at the exact same time.

๐ŸฅŠ ROUND 1: Truly Concurrent Execution
   โšก NumPy Legacy    โ†’  (0.71ms)
   โšก NumPy Modern    โ†’  (0.71ms)
   โšก PyTorch         โ†’  (0.80ms)
   โšก TensorFlow      โ†’  (1.15ms)

๐Ÿ“Š RESULT: 4 Frameworks executed in 1.69ms total wall-clock time.

2. The TensorFlow Resurrection Test

The Challenge: Kill and respawn a TensorFlow environment 5 times.

  • Standard Method (Cold Spawn): ~2885ms per reload.
  • omnipkg Daemon (Warm Worker): ~716ms first run, 3ms subsequent runs.
  • Result: 4.0x Speedup (and nearly instant after warm-up).

3. Rapid Circular Switching

The Challenge: Toggle between PyTorch 2.0.1 (CUDA 11.8) and 2.1.0 (CUDA 12.1) doing heavy tensor math.

ROUND  | WORKER          | VERSION         | TIME       
-------------------------------------------------------
 #1    | torch-2.0.1     | 2.0.1+cu118     | 0.63ms     
 #2    | torch-2.1.0     | 2.1.0+cu121     | 1570ms (Cold)
 #3    | torch-2.0.1     | 2.0.1+cu118     | 0.66ms (Hot)
 #4    | torch-2.1.0     | 2.1.0+cu121     | 0.44ms (Hot)
 ...
 #10   | torch-2.1.0     | 2.1.0+cu121     | 0.37ms (Hot)

๐Ÿ’ป Usage

Mode A: In-Process Loader (NumPy, SciPy, Tools)

Best for nested dependencies and libraries that clean up after themselves.

from omnipkg.loader import omnipkgLoader

# Layer 1: NumPy 1.24
with omnipkgLoader("numpy==1.24.3"):
    import numpy as np
    print(f"Outer: {np.__version__}") # 1.24.3
    
    # Layer 2: SciPy 1.10 (Nested)
    with omnipkgLoader("scipy==1.10.1"):
        import scipy
        # Works perfectly, sharing the NumPy 1.24 context
        print(f"Inner: {scipy.__version__}")

Mode B: Daemon Client (TensorFlow, PyTorch)

Best for heavy ML frameworks and conflicting C++ backends.

from omnipkg.isolation.worker_daemon import DaemonClient

client = DaemonClient()

# Execute code in PyTorch 2.0.1
client.execute_smart("torch==2.0.1+cu118", """
import torch
print(f"Running on {torch.cuda.get_device_name(0)} with Torch {torch.__version__}")
""")

# Instantly switch to PyTorch 2.1.0 (Different process, shared memory)
client.execute_smart("torch==2.1.0", "import torch; print(torch.__version__)")

๐Ÿ“Š Resource Efficiency

You might think running multiple worker processes consumes massive RAM. It doesn't. omnipkg uses highly optimized stripping to keep workers lean.

Live omnipkg daemon monitor Output:

โš™๏ธ  ACTIVE WORKERS:
  ๐Ÿ“ฆ torch==2.0.1+cu118  | RAM: 390.1MB
  ๐Ÿ“ฆ torch==2.1.0        | RAM: 415.1MB
  
๐ŸŽฏ EFFICIENCY COMPARISON:
  ๐Ÿ’พ omnipkg Memory:   402.6MB per worker
  ๐Ÿ”ฅ vs DOCKER:        1.9x MORE EFFICIENT (saves ~700MB)
  โšก Startup Time:     ~5ms (vs 800ms+ for Docker/Conda)

๐ŸŒ€ Try The Chaos

Don't believe us? Run the torture tests yourself.

omnipkg demo
# Select option 11: ๐ŸŒ€ Chaos Theory Stress Test

Available Scenarios:

  • [14] Circular Dependency Hell: Package A imports B, B imports A across version bubbles.
  • [16] Nested Reality Hell: 7 layers of nested dependency contexts.
  • [19] Zero Copy HFT: High-frequency data transfer between isolated processes.
  • [23] Grand Unified Benchmark: Run everything at once.

4. ๐ŸŒ Global Intelligence & AI-Driven Localization ๐Ÿค– AI-Powered: 24 Languages

omnipkg eliminates language barriers with advanced AI localization supporting 24+ languages, making package management accessible to developers worldwide in their native language.

Key Features: Auto-detection from system locale, competitive AI translation models, context-aware technical term handling, and continuous self-improvement from user feedback.

# Set language permanently
omnipkg config set language zh_CN
# โœ… Language permanently set to: ไธญๆ–‡ (็ฎ€ไฝ“)

# Temporary language override
omnipkg --lang es install requests

# View current configuration
cat ~/.config/omnipkg/config.json

Zero setup requiredโ€”works in your language from first run with graceful fallbacks and clear beta transparency.

5. Downgrade Protection & Conflict Resolution ๐Ÿ”ง Simple UV Multi-Version Test

omnipkg automatically reorders installations and isolates conflicts, preventing environment-breaking downgrades.

Example: Conflicting torch versions:

omnipkg install torch==2.0.0 torch==2.7.1

What happens? omnipkg reorders installs to trigger the bubble creation, installs torch==2.7.1 in the main environment, and isolates torch==2.0.0 in a lightweight "bubble," sharing compatible dependencies to save space. No virtual environments or containers needed.

๐Ÿ”„ Reordered: torch==2.7.1, torch==2.0.0
๐Ÿ“ฆ Installing torch==2.7.1... โœ… Done
๐Ÿ›ก๏ธ Downgrade detected for torch==2.0.0
๐Ÿซง Creating bubble for torch==2.0.0... โœ… Done
๐Ÿ”„ Restoring torch==2.7.1... โœ… Environment secure

6. Deep Package Intelligence with Import Validation ๐Ÿ” Package Discovery Demo

omnipkg goes beyond simple version tracking, building a deep knowledge base (in Redis or SQLite) for every package. In v1.5.0, this now includes live import validation during bubble creation.

  • The Problem: A package can be "installed" but still be broken due to missing C-extensions or incorrect sys.path entries.
  • The Solution: When creating a bubble, omnipkg now runs an isolated import test for every single dependency. It detects failures (e.g., absl-py: No module named 'absl_py') and even attempts to automatically repair them, ensuring bubbles are not just created, but are guaranteed to be functional.

Example Insight:

omnipkg info uv
๐Ÿ“‹ KEY DATA for 'uv':
๐ŸŽฏ Active Version: 0.8.11
๐Ÿซง Bubbled Versions: 0.8.10

---[ Health & Security ]---
๐Ÿ”’ Security Issues : 0  
๐Ÿ›ก๏ธ Audit Status  : checked_in_bulk
โœ… Importable      : True
Intelligence IncludesRedis/SQLite Superpowers
โ€ข Binary Analysis (ELF validation, file sizes)โ€ข 0.2ms metadata lookups
โ€ข CLI Command Mapping (all subcommands/flags)โ€ข Compressed storage for large data
โ€ข Security Audits (vulnerability scans)โ€ข Atomic transaction safety
โ€ข Dependency Graphs (conflict detection)โ€ข Intelligent caching of expensive operations
โ€ข Import Validation (runtime testing)โ€ข Enables future C-extension symlinking

7. Instant Environment Recovery

๐Ÿ›ก๏ธ UV Revert Test

If an external tool (like pip or uv) causes damage, omnipkg revert restores your environment to a "last known good" state in seconds.

Key CI Output Excerpt:

Initial uv version (omnipkg-installed):uv 0.8.11
$ uv pip install uv==0.7.13
 - uv==0.8.11
 + uv==0.7.13
uv self-downgraded successfully.
Current uv version (after uv's operation): uv 0.7.13

โš–๏ธ  Comparing current environment to the last known good snapshot...
๐Ÿ“ The following actions will be taken to restore the environment:
  - Fix Version: uv==0.8.11
๐Ÿš€ Starting revert operation...
โœ… Environment successfully reverted to the last known good state.

--- Verifying UV version after omnipkg revert ---
uv 0.8.11

UV is saved, along with any deps!

๐Ÿ› ๏ธ Get Started in 30 Seconds

No Prerequisites Required!

omnipkg works out of the box with automatic SQLite fallback when Redis isn't available. Redis is optional for enhanced performance.

โšก Native C-dispatcher

Typing 8pkg no longer spawns a Python process. A compiled C binary handles routing in under 1ms, compiling itself automatically on first run (MSVC on Windows, gcc/clang on Linux/macOS). For edge cases it can't handle natively, it hands off to the Python dispatcher transparently.

Force Python dispatch if you need to debug:

OMNIPKG_FORCE_PYTHON_DISPATCH=1 8pkg install numpy

Ready to end dependency hell?

uv pip install omnipkg && omnipkg demo

See the magic in under 30 seconds.

๐ŸŒ Verified Platform Support

Platforms Verified

omnipkg is a pure Python package (noarch) with no C-extensions, ensuring universal compatibility across all platforms and architectures.

๐Ÿ“Š Platform Matrix

Linux (Native)

PlatformArchitectureStatusInstallation Notes
Linux x86_64x86_64โœ…Native installation

macOS (Native)

PlatformArchitectureStatusInstallation Notes
macOS Intelx86_64 (Intel)โœ…Native installation
macOS ARM64ARM64 (Apple Silicon)โœ…Native installation

Windows (Native)

PlatformArchitectureStatusInstallation Notes
Windows Serverx86_64โœ…Latest Server

Debian/Ubuntu

PlatformArchitectureStatusInstallation Notes
Debian 12 (Bookworm)x86_64โœ…--break-system-packages required
Debian 11 (Bullseye)x86_64โœ…Standard install
Ubuntu 24.04 (Noble)x86_64โœ…--break-system-packages required
Ubuntu 22.04 (Jammy)x86_64โœ…Standard install
Ubuntu 20.04 (Focal)x86_64โœ…Standard install

RHEL/Fedora

PlatformArchitectureStatusInstallation Notes
Fedora 39x86_64โœ…Standard install
Fedora 38x86_64โœ…Standard install
Rocky Linux 9x86_64โœ…Standard install
Rocky Linux 8x86_64โœ…Requires Python 3.9+ (default is 3.6)
AlmaLinux 9x86_64โœ…Standard install

Other Linux

PlatformArchitectureStatusInstallation Notes
Arch Linuxx86_64โœ…--break-system-packages required
Alpine Linuxx86_64โœ…Requires build deps (gcc, musl-dev)

๐Ÿ“ Special Installation Notes

Ubuntu 24.04+ / Debian 12+ (PEP 668)

Modern Debian/Ubuntu enforce PEP 668 to protect system packages:

# Use --break-system-packages flag
python3 -m pip install --break-system-packages omnipkg

# Or use a virtual environment (recommended for development)
python3 -m venv .venv
source .venv/bin/activate
pip install omnipkg

Rocky/Alma Linux 8 (Python 3.6 โ†’ 3.9)

EL8 ships with Python 3.6, which is too old for modern pyproject.toml:

# Install Python 3.9 first
sudo dnf install -y python39 python39-pip

# Make python3 point to 3.9
sudo ln -sf /usr/bin/python3.9 /usr/bin/python3
sudo ln -sf /usr/bin/pip3.9 /usr/bin/pip3

# Now install omnipkg
python3 -m pip install omnipkg

Alpine Linux (Build Dependencies)

Alpine requires build tools for dependencies like psutil:

# Install build tools first
apk add --no-cache gcc python3-dev musl-dev linux-headers

# Then install omnipkg
python3 -m pip install --break-system-packages omnipkg

Arch Linux

# Arch uses --break-system-packages for global installs
python -m pip install --break-system-packages omnipkg

# Or use pacman if available in AUR (future)
yay -S python-omnipkg

๐Ÿ Python Version Support

Supported: Python 3.7 - 3.15 (including beta/rc releases)

Architecture: noarch (pure Python, no compiled extensions)

This means omnipkg runs on any architecture where Python is available:

  • โœ… x86_64 (Intel/AMD) - verified in CI
  • โœ… ARM32 (armv6/v7) - verified on piwheels
  • โœ… ARM64 (aarch64) - Python native support
  • โœ… RISC-V, POWER, s390x - anywhere Python runs!

โœ… ARM64 Support Verified (QEMU)

ARM64 Verified

omnipkg is fully verified on ARM64. This was achieved without needing expensive native hardware by using a powerful QEMU emulation setup on a self-hosted x86_64 runner. This process proves that the package installs and functions correctly on the following ARM64 Linux distributions:

PlatformArchitectureStatusNotes
Debian 12 (Bookworm)ARM64 (aarch64)โœ…QEMU Emulation
Ubuntu 24.04 (Noble)ARM64 (aarch64)โœ…QEMU Emulation
Ubuntu 22.04 (Jammy)ARM64 (aarch64)โœ…QEMU Emulation
Fedora 39ARM64 (aarch64)โœ…QEMU Emulation
Rocky Linux 9ARM64 (aarch64)โœ…QEMU Emulation
Alpine LinuxARM64 (aarch64)โœ…QEMU Emulation

This verification acts as a critical pre-release gate, ensuring that any version published to PyPI is confirmed to work for ARM64 users before it's released.

Current build status

Azure
VariantStatus
linux_64_python3.10.____cpython variant
linux_64_python3.11.____cpython variant
linux_64_python3.12.____cpython variant
linux_64_python3.13.____cp313 variant
linux_aarch64_python3.10.____cpython variant
linux_aarch64_python3.11.____cpython variant
linux_aarch64_python3.12.____cpython variant
linux_aarch64_python3.13.____cp313 variant
linux_ppc64le_python3.10.____cpython variant
linux_ppc64le_python3.11.____cpython variant
linux_ppc64le_python3.12.____cpython variant
linux_ppc64le_python3.13.____cp313 variant
osx_64_python3.10.____cpython variant
osx_64_python3.11.____cpython variant
osx_64_python3.12.____cpython variant
osx_64_python3.13.____cp313 variant
osx_arm64_python3.10.____cpython variant
osx_arm64_python3.11.____cpython variant
osx_arm64_python3.12.____cpython variant
osx_arm64_python3.13.____cp313 variant
win_64_python3.10.____cpython variant
win_64_python3.11.____cpython variant
win_64_python3.12.____cpython variant
win_64_python3.13.____cp313 variant

Installation Options

Available via UV, pip, conda-forge, Docker, brew, Github, and piwheels. Support for Linux, Windows, Mac, and Raspberry Pi.

uv Install
uv pip install omnipkg

๐Ÿ“ฆ PyPI

PyPI
pip install omnipkg
Pixi Install
# Add to your project
pixi add omnipkg

# Run globally without installation
pixi global install omnipkg

๐Ÿ  Conda & prefix.dev

Platforms / Noarch Conda-forge Minds3t Conda Channel

Official conda-forge (Recommended):

# Using prefix.dev (Ultra-fast resolver)
conda install -c https://prefix.dev/conda-forge omnipkg

# Standard conda-forge
conda install -c conda-forge omnipkg

# Using mamba
mamba install -c conda-forge omnipkg

Personal minds3t channel (Latest features first):

# Using conda
conda install -c minds3t omnipkg

# Using mamba
mamba install -c minds3t omnipkg

๐Ÿ‹ Docker (Multi-Registry)

Docker Pulls Docker Hub Version GitHub Container Registry

Docker Hub (Development + Releases):

# Latest release
docker pull 1minds3t/omnipkg:latest

# Specific version
docker pull 1minds3t/omnipkg:2.0.3

# Development branch
docker pull 1minds3t/omnipkg:main

GitHub Container Registry (Releases Only):

# Latest release
docker pull ghcr.io/1minds3t/omnipkg:latest

# Specific version
docker pull ghcr.io/1minds3t/omnipkg:2.0.3

Multi-Architecture Support:

  • โœ… linux/amd64 (x86_64)
  • โœ… linux/arm64 (aarch64)

๐Ÿบ Homebrew

# Add the tap first
brew tap 1minds3t/omnipkg

# Install omnipkg
brew install omnipkg

๐Ÿฅง piwheels (for Raspberry Pi)

๐Ÿฅง ARM32 Support (Raspberry Pi)

piwheels Latest Version: 3.0.0 | Python: 3.9 (Bullseye), 3.11 (Bookworm), 3.13 (Trixie) | View on piwheels

pip3 install omnipkg==3.0.0

Verified Platforms:

piwheels Install

For users on Raspberry Pi, use the optimized wheels from piwheels for faster installation:

pip install --index-url=https://www.piwheels.org/simple/ omnipkg

๐ŸŒฑ GitHub

# Clone the repo
git clone https://github.com/1minds3t/omnipkg.git
cd omnipkg

# Install in editable mode (optional for dev)
pip install -e .

Instant Demo

omnipkg demo

Choose from:

  • Rich test (Python module switching)
  • UV test (binary switching)
  • NumPy + SciPy stress test (C-extension switching)
  • TensorFlow test (complex dependency switching)
  • ๐Ÿš€ Multiverse Healing Test (Cross-Python Hot-Swapping Mid-Script)
  • Flask test (under construction)
  • Auto-healing Test (omnipkg run)
  • ๐ŸŒ  Quantum Multiverse Warp (Concurrent Python Installations)

Experience Python Hot-Swapping

# Let omnipkg manage your native Python automatically
omnipkg status
# ๐ŸŽฏ Your native Python is now managed!

# See available interpreters
omnipkg info python

# Install a new Python version if needed (requires Python >= 3.10)
omnipkg python adopt 3.10

# Hot-swap your entire shell context
omnipkg swap python 3.10
python --version  # Now Python 3.10.x

Optional: Enhanced Performance with Redis

For maximum performance, install Redis:

Linux (Ubuntu/Debian):

sudo apt-get update && sudo apt-get install redis-server
sudo systemctl enable redis && sudo systemctl start redis

macOS (Homebrew):

brew install redis && brew services start redis

Windows: Use WSL2 or Docker:

docker run -d -p 6379:6379 --name redis-omnipkg redis

Verify Redis: redis-cli ping (should return PONG)

๐ŸŒŸ Coming Soon

๐Ÿš€ What We've Already Delivered (The Impossible Made Real)

โœ… Concurrent 3x Python & Package Versions in Single Environment

Already working in production: Our "Quantum Multiverse Warp" demo proves you can run Python 3.9, 3.10, and 3.11 concurrently in the same script, same environment, in under 6.22 seconds.

โœ… Flawless CI/CD Python Interpreter Hot-Swapping

Already working in CI: Mid-script interpreter switching now works reliably in automated environments with atomic safety guarantees.

โœ… Bubble Import Validation and Auto-Healing

Ensures your bubbles are 100% working and auto heals if they don't.

๐ŸŒŸ Coming Soon

  • Time Machine Technology for Legacy Packages: Install ancient packages with historically accurate build tools and dependencies that are 100% proven to work in any environment.

๐Ÿš€ C++/Rust Core for Extreme Performance

  • 10-100x speedup on I/O operations and concurrent processing
  • Memory-safe concurrency for atomic operations at scale
  • Zero-copy architecture for massive dependency graphs

โšก Intelligent Cross-Language Dependency Resolution

  • Auto-detect language boundaries and manage cross-stack dependencies
  • Unified dependency graph across Python, Node.js, Rust, and system packages
  • Smart conflict resolution between language-specific package managers

๐Ÿ”’ Global Atomic Operations

  • Cross-process locking for truly safe concurrent installations
  • Distributed transaction support for multi-machine environments
  • Crash-proof operation sequencing with guaranteed rollback capabilities

๐Ÿ”Œ Universal Package Manager Integration

  • Transparent uv/conda/pip interoperability with smart fallbacks
  • Unified CLI interface across all supported package managers
  • Intelligent backend selection based on performance characteristics

๐Ÿ“š Documentation

Learn more about omnipkg's capabilities:

๐Ÿ“„ Licensing

omnipkg uses a dual-license model designed for maximum adoption and sustainable growth:

Commercial inquiries: omnipkg@proton.me

๐Ÿค Contributing

This project thrives on community collaboration. Contributions, bug reports, and feature requests are incredibly welcome. Join us in revolutionizing Python dependency management.

Translation Help: Found translation bugs or missing languages? Submit pull requests with corrections or new translationsโ€”we welcome community contributions to make omnipkg accessible worldwide.

โ†’ Start Contributing

Dev Humor

 ________________________________________________________________
/                                                                \
| pip:    "Version conflicts? New env please!"                   |
| Docker: "Spin up containers for 45s each!"                     |
| venv:   "90s of setup for one Python version!"                 |
|                                                                |
| omnipkg: *runs 3 Python versions concurrently in 580ms,        |
|           caches installs in 50ms*                             |
|                                                                |
|          "Hold my multiverseโ€”I just ran your entire            |
|           CI matrix faster than you blinked."                  |
\________________________________________________________________/
        \   ^__^
         \  (๐Ÿ)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

                ~ omnipkg: The Multiverse Package Manager ~

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts