Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/1minds3t/omnipkg
/ functions
Functions
1,775 in github.com/1minds3t/omnipkg
⨍
Functions
1,775
◇
Types & classes
163
↳
Endpoints
4
↓ 4 callers
Method
_debug_sys_path
Dump sys.path if OMNIPKG_DEBUG=1
src/omnipkg/loader.py:455
↓ 4 callers
Method
_find_compatible_python_version
(REWRITTEN) Queries PyPI to find a compatible Python version for a package. Handles both UPGRADE and DOWNGRADE scenarios by analyzing
src/omnipkg/core.py:12453
↓ 4 callers
Function
_find_python
Find the path to a specific Python version managed by omnipkg, or fall back to system PATH. Returns None if not found.
tests/test_omnipkg_contracts.py:783
↓ 4 callers
Method
_get_bubble_dependencies
Gets all packages from a bubble.
src/omnipkg/loader.py:1238
↓ 4 callers
Method
_get_cache_key
Generate a context-aware cache key.
src/omnipkg/core.py:16718
↓ 4 callers
Method
_get_exact_record_hash
Hash the RECORD file contents (which itself contains SHA-256 of every installed file) to produce a byte-level cache key. Two
src/omnipkg/package_meta_builder.py:3025
↓ 4 callers
Method
_get_latest_version_from_pypi
(self, *a, **kw)
src/omnipkg/installation/smart_install.py:236
↓ 4 callers
Method
_get_port
Retrieve port from log file.
src/omnipkg/apis/local_bridge.py:856
↓ 4 callers
Function
_header
(title)
src/omnipkg/tests/benchmark_transport.py:217
↓ 4 callers
Method
_is_binary
Robustly checks if a file is a binary executable, excluding C extensions. Uses multiple detection strategies with intelligent fallbac
src/omnipkg/core.py:4775
↓ 4 callers
Method
_make_entries
(self)
tests/test_uv_ffi_contracts.py:331
↓ 4 callers
Function
_make_fake_registry
Write a registry.json and stub interpreter binaries; return the venv root.
tests/test_dispatcher_contracts.py:65
↓ 4 callers
Function
_omnipkg_version
()
src/omnipkg/integration/reproducible.py:536
↓ 4 callers
Function
_print_performance_comparison
Prints the final performance summary comparing Runner failure time to omnipkg execution time.
src/omnipkg/commands/run.py:2483
↓ 4 callers
Method
_reference_healer
Reference self-healer: given a plan and a target dir, returns a dict describing what actions were/would be taken. Contract r
tests/test_uv_ffi_contracts.py:479
↓ 4 callers
Function
_run_cmd
(cmd: list[str], check: bool = True)
src/omnipkg/integration/reproducible.py:2434
↓ 4 callers
Method
_save_file_cache
Save cache to local file — no-op unless data changed (dirty flag).
src/omnipkg/core.py:16741
↓ 4 callers
Function
_scan_active_from_fs
Scan *.dist-info dirs for active (non-bubbled) packages.
src/omnipkg/integration/reproducible.py:380
↓ 4 callers
Function
_scan_bubbles_from_fs
Scan .omnipkg_versions/ for bubbled package versions. Each top-level subdirectory is named <pkg>-<version> and represents ONE bubble. Dep
src/omnipkg/integration/reproducible.py:407
↓ 4 callers
Function
_site_packages_for
Ask the interpreter where its site-packages is.
src/omnipkg/integration/reproducible.py:273
↓ 4 callers
Function
_srecv
(conn, n)
src/omnipkg/tests/benchmark_transport.py:228
↓ 4 callers
Method
_synchronize_knowledge_base_with_reality
(UPGRADED - THE REPAIR BOT v7) Now uses resolved paths consistently for hash generation to prevent ghost/rebuild loops.
src/omnipkg/core.py:8336
↓ 4 callers
Method
_test_install_to_get_compatible_version
Test-installs a package to a temporary directory to get pip's actual compatibility error messages, then parses them to find the lates
src/omnipkg/core.py:15354
↓ 4 callers
Function
_write_build_manifest
Write <venv>/.omnipkg/build_manifest.json with the outcome of every C/Rust compilation step. CI can read this file directly instead of g
setup.py:485
↓ 4 callers
Function
assert_ok
(label, r, *dist_info_globs, target=None)
tests/diag_uv_ffi.py:315
↓ 4 callers
Method
assign_spec
Converts an IDLE worker into a specific package worker.
src/omnipkg/isolation/worker_daemon.py:2765
↓ 4 callers
Method
attach
Attach to the watcher's shared flag. Returns a no-op guard if the watcher isn't running. Caches the result but re-validates o
src/omnipkg/isolation/fs_watcher.py:1183
↓ 4 callers
Function
create_parser
Argparse skeleton for omnipkg — parsing structure only, no display help strings. Top-level help text (8pkg --help / omnipkg --help) is served fro
src/omnipkg/cli.py:762
↓ 4 callers
Function
daemon_connect
* daemon_connect — platform-transparent daemon connection. * * Reads daemon_connection.txt from the platform temp dir. * Unix: "unix:///path/t
src/omnipkg/dispatcher.c:546
↓ 4 callers
Function
daemon_set_timeouts
Set send+recv timeouts on a connected daemon socket. */
src/omnipkg/dispatcher.c:638
↓ 4 callers
Function
fetch
(request, env, ctx)
cloud/worker.js:5
↓ 4 callers
Function
ffi_install
(pkg)
tests/test_ffi_verify.py:33
↓ 4 callers
Function
get_interpreter_path
(version: str)
src/omnipkg/tests/test_concurrent_install.py:118
↓ 4 callers
Function
get_python_version
Get current Python version in X.Y format
src/omnipkg/package_meta_builder.py:71
↓ 4 callers
Function
get_urllib3_version
Get current urllib3 version using importlib.metadata
src/omnipkg/tests/test_cli_healing.py:126
↓ 4 callers
Function
handle_python_requirement
Checks if the current Python context matches the requirement. If not, it automatically finds, adopts (or downloads), and swaps to it. Ar
src/omnipkg/cli.py:231
↓ 4 callers
Function
json_get_str
── minimal JSON value extractor ─────────────────────────────────────── */ * Finds the value of "key" in a flat JSON object string. * Handles: "key"
src/omnipkg/dispatcher.c:439
↓ 4 callers
Method
list_available_pythons
List all available Python interpreters with their versions. FIXED: Prioritize actual interpreters over symlinks, show hotswapped path
src/omnipkg/core.py:2626
↓ 4 callers
Method
load
Load a CUDA tensor from IPC metadata. Returns PyTorch tensor pointing to shared GPU memory.
src/omnipkg/isolation/worker_daemon.py:745
↓ 4 callers
Method
mark_clean
(self)
src/omnipkg/isolation/fs_watcher.py:200
↓ 4 callers
Function
normalize_language_code
Normalize a user-supplied language code to its canonical form. Handles: - Wrong case: "zh_cn" -> "zh_CN" - Hyphen vs
src/omnipkg/i18n.py:233
↓ 4 callers
Function
patch_flask_code
(code, interactive=False, validate_only=False)
src/omnipkg/tests/test_flask_port_finder.py:108
↓ 4 callers
Method
ping
(self)
src/omnipkg/cache.py:49
↓ 4 callers
Function
print_unescaped
src/omnipkg/dispatcher.c:780
↓ 4 callers
Function
read_self_config
src/omnipkg/dispatcher.c:512
↓ 4 callers
Method
rebuild_package_kb
(CORRECTED) Forces a targeted KB rebuild, now correctly determining and passing the Python context to prevent accidental ghost exorci
src/omnipkg/core.py:13253
↓ 4 callers
Function
recv_json
Receives a JSON dictionary over a socket with timeout protection.
src/omnipkg/isolation/worker_daemon.py:572
↓ 4 callers
Method
refresh_bubble_map
Immediately adds a newly created bubble to the internal version map to prevent race conditions during validation.
src/omnipkg/core.py:6064
↓ 4 callers
Function
release_port
(port)
src/omnipkg/tests/test_flask_port_finder.py:62
↓ 4 callers
Method
remove_interpreter
Forcefully removes a managed Python interpreter directory, purges its knowledge base from Redis, and updates the registry. S
src/omnipkg/core.py:11479
↓ 4 callers
Function
row
(label, ms, d, want_status=None, want_pid=None)
src/omnipkg/tests/test_daemon_tags.py:82
↓ 4 callers
Function
run_capped
run() capturing stderr; prints coloured; returns result tuple.
tests/diag_uv_ffi.py:301
↓ 4 callers
Function
run_chaos_suite
(tests_to_run=None)
src/omnipkg/tests/test_loader_stress_test.py:4604
↓ 4 callers
Function
run_hooks
Run all registered hooks of a given type. Args: hook_type: Which hooks to run context: Context to pass to hooks Returns
src/omnipkg/installation/verification_hooks.py:81
↓ 4 callers
Function
run_script
Run code in a subprocess. Returns (success, elapsed_ms).
src/omnipkg/tests/test_tensorflow_switching.py:214
↓ 4 callers
Function
run_subprocess_with_output
Run subprocess with improved real-time output streaming.
src/omnipkg/tests/test_version_combos.py:28
↓ 4 callers
Method
share
Share a PyTorch CUDA tensor via CUDA IPC handle. Returns serializable metadata that can be sent over socket.
src/omnipkg/isolation/worker_daemon.py:686
↓ 4 callers
Function
spawn_swap_shell
Spawn an interactive sub-shell with the swapped Python context. Handles all shim setup, PATH manipulation, .bat writing (Windows), rcfile
src/omnipkg/dispatcher.py:1603
↓ 4 callers
Function
start_monitor
(watch_mode=False)
src/omnipkg/isolation/resource_monitor.py:788
↓ 4 callers
Method
teardown
(self)
src/omnipkg/tests/benchmark_transport.py:253
↓ 4 callers
Function
temporary_install_strategy
Context manager to temporarily set the install strategy and restore it on exit.
src/omnipkg/cli.py:139
↓ 4 callers
Function
temporary_install_strategy
A context manager to temporarily set the install strategy and restore it on exit.
src/omnipkg/tests/test_cli_healing.py:49
↓ 4 callers
Method
validate_bubble
(SMARTER VALIDATION) Validates a bubble's integrity. It now intelligently checks for a 'bin' directory ONLY if the bubble's manifest
src/omnipkg/core.py:6093
↓ 4 callers
Method
wait_for_ready
(self, timeout=5.0)
src/omnipkg/tests/test_flask_port_finder.py:96
↓ 3 callers
Method
__exit__
Enhanced deactivation with COMPLETE profiling visibility.
src/omnipkg/loader.py:3886
↓ 3 callers
Method
_analyze_installed_tree
(self, destination_path: Path)
src/omnipkg/installation/smart_install.py:841
↓ 3 callers
Function
_build_uv_ffi
Build the uv_ffi PyO3 extension via maturin and install the .so into the active environment. Only runs in a dev checkout (submodule present);
setup.py:180
↓ 3 callers
Method
_cleanup_all_cloaks_globally
(CORRECTED) ENHANCED: Catches orphaned cloaks with more aggressive pattern matching, correct path references, and ownership checking.
src/omnipkg/loader.py:4875
↓ 3 callers
Function
_content_sha
Compute a stable SHA256 of the lock's *portable* content. Two machines with identical packages + env_kind produce the same hash.
src/omnipkg/integration/reproducible.py:1351
↓ 3 callers
Method
_create_bubble_manifest
Creates a robust, dynamic manifest file and registers the bubble in Redis. Schema 2.0: Includes Global Cache metadata.
src/omnipkg/core.py:5836
↓ 3 callers
Method
_create_bubble_manifest
(self, *a, **kw)
src/omnipkg/installation/smart_install.py:844
↓ 3 callers
Method
_create_deduplicated_bubble
Enhanced Version: Fixes flask-login and similar packages with missing submodules. Key improvements: 1. Better detection of p
src/omnipkg/core.py:4887
↓ 3 callers
Method
_create_worker_for_spec
Connects to the daemon to handle this package spec.
src/omnipkg/loader.py:5717
↓ 3 callers
Function
_default_lock_path
Canonical lock file: <venv_root>/.omnipkg/omnipkg.lock
src/omnipkg/integration/reproducible.py:248
↓ 3 callers
Function
_detect_env_identity
Classify the current environment and collect identity metadata. Returns a dict of fields to merge into [meta].
src/omnipkg/integration/reproducible.py:288
↓ 3 callers
Function
_dict_to_toml
Uses tomli_w if available, otherwise a minimal hand-rolled writer.
src/omnipkg/integration/reproducible.py:1682
↓ 3 callers
Function
_discover_lock_files
Scan system-wide for omnipkg.lock files across: - All conda envs (via conda env list --json) - Common virtualenv locations (~/.venvs,
src/omnipkg/integration/reproducible.py:705
↓ 3 callers
Method
_ensure_interpreter_registered
(self, interpreter_path: Path, version: str)
src/omnipkg/core.py:760
↓ 3 callers
Method
_ensure_main_site_packages_in_path
If we decide to use a package from the main environment, we must ensure the main site-packages directory is actually in sys.path.
src/omnipkg/loader.py:1121
↓ 3 callers
Method
_execute_code
Execute Python code inside a persistent isolated worker process. The daemon keeps one worker process alive per (spec, python, tag) t
src/omnipkg/isolation/worker_daemon.py:4810
↓ 3 callers
Method
_exorcise_ghost_entry
Surgically removes a non-existent package entry from both KB and filesystem. If it's the last version of the package, it removes all
src/omnipkg/core.py:9015
↓ 3 callers
Function
_extract_python_version
Pull pythonX.Y or cpython-X.Y out of a command string or exe path. Handles macOS framework paths like Python.app/Contents/MacOS/Python by
src/omnipkg/isolation/resource_monitor.py:242
↓ 3 callers
Method
_extract_version_from_path
Extract Python version from an interpreter path. Examples: - /path/to/.omnipkg/interpreters/cpython-3.10-managed/bin/python3
src/omnipkg/core.py:3190
↓ 3 callers
Method
_get_cloak_lock
Get or create a file lock for a specific package's cloak operations. Delegates to fs_lock_queue to ensure the SAME FileLock instance
src/omnipkg/loader.py:718
↓ 3 callers
Function
_get_core_dependencies
Reads omnipkg's DIRECT production dependencies from pyproject.toml, filtered for the target Python version. Args: target_python_
src/omnipkg/core.py:165
↓ 3 callers
Method
_get_default_registry
Built-in default registry for common package ecosystems.
src/omnipkg/installation/package_index_registry.py:46
↓ 3 callers
Method
_get_latest_version_from_pypi
(ENHANCED CACHING) Gets the latest compatible version of a package. Returns None if package doesn't exist. Raises NoCompatibl
src/omnipkg/core.py:15758
↓ 3 callers
Method
_get_package_name_variants
Generates comprehensive package name variants to handle ALL Python packaging naming conventions including dots, hyphens, underscores.
src/omnipkg/package_meta_builder.py:189
↓ 3 callers
Function
_get_package_toplevel_items
Read RECORD from dist-info to find ALL top-level site-packages items owned by this package — e.g. numpy/, numpy.libs/, numpy-1.26.4.dist-info
src/omnipkg/installation/smart_install.py:152
↓ 3 callers
Function
_get_ver
()
build_hooks.py:37
↓ 3 callers
Method
_get_version_from_original_env
Enhanced detection that ALWAYS checks for cloaked versions first. CRITICAL FIX: Strictly checks self.site_packages_root to avoid conf
src/omnipkg/loader.py:1609
↓ 3 callers
Function
_handle_cli_execution
Enhanced CLI execution with unified healing analysis and performance stats.
src/omnipkg/commands/run.py:2176
↓ 3 callers
Method
_handle_quantum_healing
(self, *a, **kw)
src/omnipkg/installation/smart_install.py:498
↓ 3 callers
Function
_install_dispatcher_binary
Compile the C dispatcher and overwrite the pip-generated 8pkg/omnipkg wrapper scripts with the fast binary. Supports gcc (Linux/macOS) an
setup.py:31
↓ 3 callers
Method
_install_essential_packages
Installs essential packages for a new interpreter using a robust hybrid strategy. It installs dependencies first using the new interp
src/omnipkg/core.py:1225
↓ 3 callers
Function
_interactive_lock_picker
Show the lock file picker. Returns chosen Path or None if user aborted. If allow_manage=True, user can enter 'm' to manage/delete lock files.
src/omnipkg/integration/reproducible.py:903
↓ 3 callers
Method
_is_interpreter_directory_valid
Checks if a directory contains a valid, runnable Python interpreter structure. This is the core of the integrity check.
src/omnipkg/core.py:11028
↓ 3 callers
Method
_is_main_site_packages
Check if a path points to the main site-packages directory.
src/omnipkg/loader.py:1432
↓ 3 callers
Method
_is_relevant
Trigger on depth-1 events inside site-packages (dist-info, .data, .pth, packages). Ignore: - __pycache__ and nested writes
src/omnipkg/isolation/fs_watcher.py:410
↓ 3 callers
Method
_load_file_cache
Load cache from local file.
src/omnipkg/core.py:16729
← previous
next →
201–300 of 1,775, ranked by callers