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
↓ 2 callers
Method
_get_import_candidates
Authoritatively finds import candidates by reading top_level.txt from the installed package's .dist-info directory.
src/omnipkg/core.py:14462
↓ 2 callers
Method
_get_import_candidates_for_install_test
Gets import candidates, with special handling for bubbles vs main env.
src/omnipkg/core.py:9904
↓ 2 callers
Method
_get_import_name_for_package
Get the actual import name for a package by reading top_level.txt. Falls back to name transformations if not found. Examples
src/omnipkg/loader.py:5080
↓ 2 callers
Method
_get_instance_hash
Generates a stable instance hash using the raw dist._path — no realpath/resolve. realpath follows uv symlinks into its cache, giving
src/omnipkg/package_meta_builder.py:2158
↓ 2 callers
Method
_get_master_version_ultra_fast
Ultra-fast master version detection using direct file I/O. Returns: (version_string, install_spec)
src/omnipkg/core.py:6790
↓ 2 callers
Method
_get_omnipkg_dependencies
Gets dependency paths with cache validation.
src/omnipkg/loader.py:962
↓ 2 callers
Method
_get_omnipkg_version_from_site_packages
Gets omnipkg version directly from dist-info in a specific site-packages. Handles both regular and editable installs.
src/omnipkg/core.py:6373
↓ 2 callers
Method
_get_package_minimum_python_from_spec
Extract minimum Python version from a SpecifierSet (e.g., '>=3.8' -> 'py3.8')
src/omnipkg/core.py:15713
↓ 2 callers
Function
_get_pinned_version_for_dep
Given a CLI owner spec like ``jupyterlab==4.5.7`` and a broken dep name like ``attrs``, look up what version the owner's resolved_deps snapsh
src/omnipkg/commands/run.py:1081
↓ 2 callers
Function
_get_pkg_lock
(locks_dir: Path, pkg_name: str)
src/omnipkg/isolation/fs_lock_queue.py:102
↓ 2 callers
Function
_get_python_full_version
Ask the interpreter for its full patch version string e.g. "3.11.15". Falls back to major.minor only if the subprocess fails.
src/omnipkg/integration/reproducible.py:664
↓ 2 callers
Function
_get_resolved_deps_from_kb
Reads the ``resolved_deps`` JSON field from the KB instance record for *pkg_name*. Returns a {canonical_name: version_str} dict, or {} on an
src/omnipkg/commands/run.py:1046
↓ 2 callers
Function
_get_rich_version
()
src/omnipkg/tests/test_old_rich.py:17
↓ 2 callers
Function
_get_scan_lock
(locks_dir: Path)
src/omnipkg/isolation/fs_lock_queue.py:111
↓ 2 callers
Method
_get_sensible_defaults
(CORRECTED) Generates sensible default configuration paths based STRICTLY on the currently active virtual environment to ensure safet
src/omnipkg/core.py:2376
↓ 2 callers
Method
_get_venv_root
Finds the virtual environment root with enhanced validation to prevent environment cross-contamination from stale shell variables.
src/omnipkg/core.py:534
↓ 2 callers
Method
_get_wheel_abi_tag
Reads the WHEEL file to extract the full wheel tag (e.g. ``cp311-cp311-manylinux_2_17_x86_64``). This tag, combined with ``r
src/omnipkg/package_meta_builder.py:3072
↓ 2 callers
Function
_has_english_marker
── English marker check: one stat() — ~2µs ────────────────────────────── * ~/.config/omnipkg/lang_marker_en exists → user is English → serve baked
src/omnipkg/dispatcher.c:332
↓ 2 callers
Method
_heal_broken_metadata
Phase 0 heal: scan main site-packages AND bubble dirs for missing/broken METADATA files. Nuke broken dist-infos, reinstall via pip --
src/omnipkg/core.py:9266
↓ 2 callers
Method
_heal_conda_environment
Enhanced conda environment healing that combines proactive scanning with reactive error-based healing. This function:
src/omnipkg/core.py:12832
↓ 2 callers
Function
_install_with_skip_fallback
Batch pip install with automatic retry-without-all-failed-packages on error. Runs pip with stderr captured separately so we can actually parse it
src/omnipkg/integration/reproducible.py:2238
↓ 2 callers
Method
_is_dist_info
Only care about .dist-info dirs at depth-1 — that's where name+version live.
src/omnipkg/isolation/fs_watcher.py:400
↓ 2 callers
Method
_is_ghost_dist_info
(QUIET VERSION) Determines if a .dist-info directory is a "ghost" by using the standard library and ignoring unreliable cache files.
src/omnipkg/core.py:9107
↓ 2 callers
Method
_is_our_write
Return True if the event looks like an echo of our own FFI install, and clear the sentinel immediately so the NEXT event is not suppr
src/omnipkg/isolation/fs_watcher.py:376
↓ 2 callers
Function
_is_relative_to_win
Case-insensitive relative_to for Windows path safety.
src/omnipkg/common_utils.py:934
↓ 2 callers
Method
_is_safe_import
Determine if an import is safe (shouldn't be removed). Returns True if: - Module is in stdlib or common packages - M
src/omnipkg/utils/ai_import_healer.py:168
↓ 2 callers
Method
_load_or_create_config
Load config for THIS Python, create if doesn't exist. No more nested "environments" structure - FLAT data.
src/omnipkg/core.py:3308
↓ 2 callers
Method
_load_registry
(self)
src/omnipkg/isolation/worker_daemon.py:835
↓ 2 callers
Function
_lookup_python
Resolve a short version string like '3.9' to its full managed-interpreter path via the omnipkg dispatcher registry. Falls back to None i
src/omnipkg/tests/omnipkg_ipc_showcase.py:128
↓ 2 callers
Function
_manage_lock_files
Interactive lock file manager — lets user mark and delete old lock files.
src/omnipkg/integration/reproducible.py:835
↓ 2 callers
Function
_maybe_install_c_dispatcher
()
src/omnipkg/dispatcher.py:415
↓ 2 callers
Function
_normalize
(name: str)
src/omnipkg/integration/reproducible.py:2248
↓ 2 callers
Function
_null_ctx
No-op context manager - used as a lock placeholder when no ABI lock is needed.
src/omnipkg/isolation/worker_daemon.py:40
↓ 2 callers
Method
_parse_package_spec
Helper to parse 'pkg==version' into (name, version)
src/omnipkg/package_meta_builder.py:1112
↓ 2 callers
Function
_patch_opt_einsum_for_isolation
Robustly isolate opt_einsum from torch/jax/cupy using stubs to prevent circular imports and partial initialization errors during TF load.
src/omnipkg/isolation/patchers.py:695
↓ 2 callers
Function
_per_python_sha_path
Sidecar file path: <lock_dir>/per_python/<lock_stem>/<ver>.sha
src/omnipkg/integration/reproducible.py:2153
↓ 2 callers
Function
_per_python_sha_write
Write SHA sidecar after a successful sync.
src/omnipkg/integration/reproducible.py:2165
↓ 2 callers
Function
_pop_callback_result
Returns (installed, removed) from last callback intercept and clears it.
src/omnipkg/installation/installers.py:58
↓ 2 callers
Function
_print_language_table
Print SUPPORTED_LANGUAGES as a compact multi-column table.
src/omnipkg/cli.py:503
↓ 2 callers
Function
_print_lock_list
Print discovered lock files grouped by env with index numbers.
src/omnipkg/integration/reproducible.py:815
↓ 2 callers
Function
_print_python_table
()
src/omnipkg/cli.py:667
↓ 2 callers
Function
_print_strategy_table
Print install strategy options with descriptions.
src/omnipkg/cli.py:520
↓ 2 callers
Method
_probe_numpy_abi
Given a distribution, scan its native extensions for a baked-in NPY_FEATURE_VERSION. Works for torch (libtorch_python.so), tensorflo
src/omnipkg/package_meta_builder.py:2630
↓ 2 callers
Function
_query_cache
Query a cache client (Redis or SQLite) for active+bubble data.
src/omnipkg/integration/reproducible.py:445
↓ 2 callers
Function
_read_registry
Read the interpreter registry directly from disk — never relies on a subprocess that might return empty output in CI / temp-script contexts.
src/omnipkg/tests/test_concurrent_install.py:72
↓ 2 callers
Method
_register_and_link_existing_interpreter
Legacy registration logic. Forwarding to simple registration for backward compatibility during migration.
src/omnipkg/core.py:795
↓ 2 callers
Function
_resolve_torch_spec_for_interpreter
Ask a *specific* managed Python interpreter what torch version it has. Returns 'torch==X.Y.Z+cuNNN' (ready to pass as a bubble spec), or None
src/omnipkg/tests/omnipkg_ipc_showcase.py:160
↓ 2 callers
Method
_restore_all_cloaks_for_pkg_unsafe
Restore ALL cloaks (bubble + main-env) for pkg_name. Called from ABI conflict paths. Uses safe_uncloak for every move.
src/omnipkg/loader.py:1561
↓ 2 callers
Function
_run_info_python
()
src/omnipkg/tests/test_concurrent_install.py:63
↓ 2 callers
Function
_run_nvidia
(args)
src/omnipkg/isolation/resource_monitor.py:205
↓ 2 callers
Function
_run_post_install
()
build_hooks.py:303
↓ 2 callers
Function
_run_python_info_explorer
Interactive Python interpreter explorer — `8pkg info python` and `8pkg python info`.
src/omnipkg/cli.py:664
↓ 2 callers
Method
_run_shim
Call handle_shim_execution() with controlled env and argv. Capture the os.execv call instead of letting it replace the process.
tests/test_dispatcher_contracts.py:284
↓ 2 callers
Method
_safe_restore_from_snapshot
(self, *a, **kw)
src/omnipkg/installation/smart_install.py:468
↓ 2 callers
Method
_save_last_known_good_snapshot
Saves the current environment state as 'last known good'. State source priority: 1. uv-ffi get_site_packages_cache() direct
src/omnipkg/core.py:10363
↓ 2 callers
Method
_scrub_sys_path_of_bubbles
Aggressively scrubs all omnipkg bubble paths from sys.path using resolved paths to avoid string mismatch issues.
src/omnipkg/loader.py:1160
↓ 2 callers
Method
_send
(self, payload: dict)
src/omnipkg/isolation/workers.py:237
↓ 2 callers
Method
_send_unix
(self, payload: bytes)
src/omnipkg/isolation/fs_watcher.py:946
↓ 2 callers
Method
_send_windows
(self, payload: bytes)
src/omnipkg/isolation/fs_watcher.py:959
↓ 2 callers
Function
_stub_jax_for_tf_load
Stub out jax during TensorFlow bubble initialization to prevent numpy version conflicts. TF 2.x's tensorflow/lite/python/util.py does:
src/omnipkg/isolation/patchers.py:744
↓ 2 callers
Method
_summary
Show summary message unless silent mode is on.
src/omnipkg/utils/ai_import_healer.py:235
↓ 2 callers
Method
_test_bubble_imports
Test imports for a specific package in the bubble using the same logic as _verify_installation. This is adapted from your existing ro
src/omnipkg/core.py:5206
↓ 2 callers
Function
_tool_available
(name: str)
src/omnipkg/tests/benchmark_transport.py:707
↓ 2 callers
Function
_try_redis_for_python
Try Redis → SQLite KB for active + bubble data for one python version. Returns (active, bubbles) or (None, None) to signal filesystem fallbac
src/omnipkg/integration/reproducible.py:466
↓ 2 callers
Function
_update_global_lock_registry
Update the machine-global lock registry with this export. - If this SHA is new: write canonical lock to states/, register it. - If SHA a
src/omnipkg/integration/reproducible.py:1183
↓ 2 callers
Method
_wait_for_daemon_ready
Waits until the daemon socket is actually accepting connections.
src/omnipkg/isolation/worker_daemon.py:3828
↓ 2 callers
Method
_write_heal_cache
Writes data to the self-heal cache file.
src/omnipkg/core.py:6780
↓ 2 callers
Function
_write_install_stamp
()
setup.py:557
↓ 2 callers
Method
_write_profile_script
Atomically regenerate profile.d/omnipkg_pythons.sh from the current registry. Must be called any time the registry changes.
src/omnipkg/core.py:1133
↓ 2 callers
Method
backup
Creates temporary backups of all protected files.
src/omnipkg/CondaGuard.py:56
↓ 2 callers
Function
checkHealth
()
docs/assets/js/interact.js:135
↓ 2 callers
Function
cli_logs
View or follow the daemon logs.
src/omnipkg/isolation/worker_daemon.py:7972
↓ 2 callers
Function
cmd_activate
Handle 8pkg activate command
src/omnipkg/integration/environment.py:227
↓ 2 callers
Function
cmd_deactivate
Handle 8pkg deactivate command
src/omnipkg/integration/environment.py:238
↓ 2 callers
Method
commit_and_release
Write finished. Increment version, clear lock flag, release file lock.
src/omnipkg/isolation/worker_daemon.py:499
↓ 2 callers
Function
determine_target_python
PRIORITY ORDER: 1. CLI flag --python (explicit user intent — ALWAYS wins, including 8pkg39) 2. OMNIPKG_PYTHON_XY_PATH env var (set by ad
src/omnipkg/dispatcher.py:1094
↓ 2 callers
Function
dump_dir
(label, path)
tests/diag_uv_ffi.py:33
↓ 2 callers
Method
end_omnipkg_op
Signals the FS watcher that a long Omnipkg install has ENDED, providing the official changelog from the FFI.
src/omnipkg/isolation/worker_daemon.py:7719
↓ 2 callers
Function
find_or_install_uv_ffi_so
src/omnipkg/dispatcher.c:1346
↓ 2 callers
Method
find_spec
(self, fullname, path, target=None)
src/omnipkg/core.py:6193
↓ 2 callers
Function
find_uv_binary
Find the uv binary in a bubble's bin dir, handling Windows .exe extension. Returns the Path if found, raises FileNotFoundError otherwise.
src/omnipkg/tests/test_uv_switching.py:72
↓ 2 callers
Method
get_cached_version
Get cached version for a specific python_context. Returns None if not cached, version string if compatible, or raises NoCompatiblePyt
src/omnipkg/core.py:16752
↓ 2 callers
Function
get_conda_forge_mapping
Checks the conda-forge 'County Fair' mapping for import_name -> pypi_name. Downloads, caches to disk, and loads into memory to maintain light
src/omnipkg/commands/run.py:1110
↓ 2 callers
Function
get_daemon_worker_info
Connect to daemon and get PID-to-spec mapping.
src/omnipkg/isolation/resource_monitor.py:93
↓ 2 callers
Method
get_idle_config
Get current idle pool configuration.
src/omnipkg/isolation/worker_daemon.py:6541
↓ 2 callers
Function
get_interpreter_after_adopt
Read the interpreter exe from the registry. Only call this AFTER the versioned shim has already run (adoption complete).
src/omnipkg/tests/test_multiverse_healing.py:81
↓ 2 callers
Method
get_package_for_command
Finds which package owns a specific CLI command using the O(1) Knowledge Base index.
src/omnipkg/core.py:8160
↓ 2 callers
Method
get_package_info
Get package metadata with smart caching Returns: { "metadata": {...}, # PyPI metadata from GitHub
src/omnipkg/installation/metadata_cache.py:98
↓ 2 callers
Method
get_package_path
(self, package_name: str, version: str = None)
src/omnipkg/core.py:6172
↓ 2 callers
Function
get_processes
Cross-platform process collection via psutil, fallback to ps on Unix.
src/omnipkg/isolation/resource_monitor.py:146
↓ 2 callers
Function
get_site_packages_path
Dynamically find the site-packages path
src/omnipkg/package_meta_builder.py:76
↓ 2 callers
Function
get_test_name
(func)
src/omnipkg/tests/test_loader_stress_test.py:4565
↓ 2 callers
Method
get_version
Get the current version number.
src/omnipkg/isolation/worker_daemon.py:420
↓ 2 callers
Function
get_versioned_bin
Return a command prefix for a versioned omnipkg shim. The shim handles auto-adopt + install — no registry pre-check needed. Priority:
src/omnipkg/tests/test_multiverse_healing.py:39
↓ 2 callers
Function
handle_run_command
Enhanced run command handler Usage: 8pkg run <command> [args...] Supports: - Python scripts: 8pkg run my_script.py --arg1 --arg2
src/omnipkg/integration/cli_executor.py:202
↓ 2 callers
Method
has_pytorch_1x_native
Check if PyTorch 1.x native IPC is available.
src/omnipkg/isolation/worker_daemon.py:5973
↓ 2 callers
Method
has_torch_mp_queue_ipc
Check if torch.multiprocessing share_memory_() IPC works on this system. This probes the actual round-trip (spawn a child, pass a te
src/omnipkg/isolation/worker_daemon.py:6013
↓ 2 callers
Method
has_universal_cuda_ipc
Check if Universal CUDA IPC is available.
src/omnipkg/isolation/worker_daemon.py:6002
↓ 2 callers
Function
heal_with_package_reinstall
Reinstalls a package completely to fix ABI/compilation issues. This is more aggressive than bubbling and is used when packages have been compi
src/omnipkg/commands/run.py:836
↓ 2 callers
Function
identify_worker_type
(proc, pid_map)
src/omnipkg/isolation/resource_monitor.py:269
← previous
next →
401–500 of 1,775, ranked by callers