Skip to content

1minds3t/omnipkg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

omnipkg Logo

omnipkg - The Ultimate Python Dependency Resolver

One environment. Infinite Python and package versions. Zero conflicts.

License PyPI Conda Version PyPI Downloads Docker Pulls Platforms / Noarch Global Reach Badge Python Versions

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 hourly. 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

The "Quantum Multiverse Warp": 3 Pythons, 1 Script, < 600ms

Our "Quantum Multiverse Warp" demo, validated live in our CI, executes a single script across three different Python interpreters and three package versions concurrently in the same environment. The results are not just fast; they redefine what's possible for CI/CD.

Task (Same Script, Same Environment) Execution Time
🧵 Thread 1: Python 3.9 + Rich 13.4.2 579.6ms
🧵 Thread 2: Python 3.10 + Rich 13.6.0 548.4ms
🧵 Thread 3: Python 3.11 + Rich 13.7.1 571.8ms
🏆 Total Concurrent Runtime 580.1ms

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

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

uv pip install omnipkg && omnipkg demo

**Live CI Output from Multiverse Analysis:**
```bash
🚀 Launching multiverse analysis from Python 3.11…

📦 Step 1: Swapping to Python 3.9…
🐍 Active interpreter switched in <1 second!
✅ All dependencies auto-healed
   - NumPy 1.26.4
   - SciPy 1.13.1
🧪 SciPy result: 225

📦 Step 2: Swapping back to Python 3.11…
🐍 Hot-swapped Python interpreter instantly
✅ TensorFlow 2.20.0 ready to go
🧪 TensorFlow prediction: SUCCESS

🌀 SAFETY PROTOCOL: Returned to original Python 3.11 environment

Key Achievement: Total test runtime only ~10 seconds for complete multiverse analysis, with automatic healing when NumPy compatibility issues arise. Interpreter swaps finish in just 0.25 seconds!


2. Real-Time Auto-Healing & Environment Repair ⚡ Auto-Healing: 7.76x Faster than UV

omnipkg is the first tool that actively repairs your environment while you work.

  • omnipkg run: Our intelligent script runner detects ModuleNotFoundError, AssertionError (for version conflicts), and even NumPy C-extension failures. It then automatically creates and activates a version-specific "bubble" to heal the script, often completing the entire process faster than other tools take to simply fail.
  • The Ghost Hunter: On every startup, omnipkg proactively scans all managed site-packages for corrupted installations (e.g., ~temp-name.dist-info) left behind by failed pip installs and surgically removes them, preventing environment rot before it starts.

Live CI Output from Auto-Healing:

⏱️  UV run failed in: 5379.237 ms (5,379,236,666 ns)
🔍 NumPy 2.0 compatibility issue detected. Auto-healing with numpy downgrade...
   - Downgrading to numpy<2.0 for compatibility
✅ Using bubble: numpy-1.26.4

🚀 Re-running with omnipkg auto-heal...
✅ Script completed successfully inside omnipkg bubble.

======================================================================
🚀 PERFORMANCE COMPARISON: UV vs OMNIPKG
======================================================================
UV Failed Run:      5379.237 ms  (5,379,236,666 ns)
omnipkg Healing:     693.212 ms  ( 693,211,844 ns)
----------------------------------------------------------------------
🎯 omnipkg is   7.76x FASTER than UV!
💥 That's   675.99% improvement!
======================================================================

3. Dynamic Package Switching 💥 Nuclear Test: NumPy+SciPy

Switch package versions mid-script using omnipkgLoader, without restarting or changing environments. omnipkg seamlessly juggles C-extension packages like numpy and scipy in the same Python process. The loader even handles complex nested dependency contexts, a feat unmatched by other tools.

Example Code:

from omnipkg.loader import omnipkgLoader
from omnipkg.core import ConfigManager # Recommended for robust path discovery

config = ConfigManager().config # Load your omnipkg config once

with omnipkgLoader("numpy==1.24.3", config=config):
    import numpy
    print(numpy.__version__)  # Outputs: 1.24.3
import numpy # Re-import/reload might be needed if numpy was imported before the 'with' block
print(numpy.__version__)  # Outputs: Original main env version (e.g., 1.26.4)

Key CI Output Excerpts (Nested Loaders):

--- Nested Loader Test ---
🌀 Testing nested loader usage...
✅ Outer context - Typing Extensions: 4.5.0
🌀 omnipkg loader: Activating tensorflow==2.13.0...
✅ Inner context - TensorFlow: 2.13.0
✅ Inner context - Typing Extensions: 4.5.0
✅ Nested loader test: Model created successfully

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 Includes Redis/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.

Ready to end dependency hell? uv pip install omnipkg && omnipkg demo to see the magic in under 30 seconds.

Installation Options

Available via UV, pip, conda-forge, Docker, brew, Github, and piwheels, support for Linux, Windows, Mac, and Rasperry Pi

⚡ UV

uv Install
uv pip install omnipkg

📦 PyPi

PyPI
pip install omnipkg

🏠 Official Conda-Forge Channel

Platforms / Noarch Conda-forge
# Easiest guaranteed way
conda install -c conda-forge omnipkg

# Or with mamba if you prefer speed
mamba install -c conda-forge omnipkg
Minds3t Conda Channel
conda install -c minds3t omnipkg
# Or with mamba
mamba install -c minds3t omnipkg

🐋 Docker

Docker Pulls
# Pull from Docker Hub
docker pull 1minds3t/omnipkg:latest

# Pull from GitHub Container Registry (GHCR)
docker pull ghcr.io/1minds3t/omnipkg:latest

🍺 Homebrew

# Add the tap first
brew tap 1minds3t/omnipkg
# Install omnipkg
brew install omnipkg

🥧 piwheels (for Raspberry Pi)

piwheels Install

For users on Raspberry Pi, you can 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:

  1. Rich test (Python module switching)
  2. UV test (binary switching)
  3. NumPy + SciPy stress test (C-extension switching)
  4. TensorFlow test (complex dependency switching)
  5. 🚀 Multiverse Healing Test (Cross-Python Hot-Swapping Mid-Script) Flask test (under construction)
  6. Auto-healing Test (omnipkg run)
  7. 🌠 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)


🔬 How It Works (Simplified Flow)

  1. Adopt Interpreters: On first run, omnipkg automatically adopts your native Python. Add more with omnipkg python adopt <version>.
  2. Install Packages: Use omnipkg install uv==0.7.13 uv==0.7.14 or omnipkg install -r req.txt
  3. Conflict Detection: omnipkg spots version clashes and isolates them in bubbles.
  4. Dynamic Package Switching: Use omnipkgLoader to switch package versions mid-script.
  5. Interpreter Hot-Swapping: Switch your shell's active Python instantly with omnipkg swap python <version>.
  6. Intelligence Database: High-performance knowledge base built for all packages (Redis preferred, SQLite fallback).
  7. Auto-healing: omnipkg run automatically fixes compatibility issues in real-time.
  8. Atomic Snapshots: Instant rollback with omnipkg revert.

Example: Safe Flask-Login Downgrade:

omnipkg install flask-login==0.4.1
📸 Taking LIVE pre-installation snapshot...
🛡️ DOWNGRADE PROTECTION ACTIVATED!
-> Detected conflict: flask-login v0.6.3 → v0.4.1
🫧 Creating bubble for flask-login v0.4.1... ✅ Done
🔄 Restoring flask-login v0.6.3... ✅ Environment secure

Verify:

omnipkg info flask-login
📋 flask-login STATUS:
🎯 Active: 0.6.3 (main)
🫧 Available: 0.4.1 (bubble)
📊 Space Saved: 55.5%

You now have both versions available in one environment, ready for use anytime!


🌟 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 ~