MCPcopy Create free account

hub / github.com/1minds3t/omnipkg / functions

Functions1,775 in github.com/1minds3t/omnipkg

↓ 1 callersMethod_daemonize
Double-fork daemonization to fully detach the process.
src/omnipkg/isolation/worker_daemon.py:3899
↓ 1 callersFunction_derive_paths_for_exe
Compute site_packages_path and multiversion_base directly from a Python executable path, without relying on ConfigManager lookup. IMPORT
src/omnipkg/isolation/worker_daemon.py:137
↓ 1 callersMethod_detect_all_changes
(self, *a, **kw)
src/omnipkg/installation/smart_install.py:251
↓ 1 callersMethod_detect_binary_by_header
Detect binary executables by reading file headers/magic numbers.
src/omnipkg/core.py:4816
↓ 1 callersFunction_detect_circular_import_scenario
Detect if we're in a circular import scenario.
src/omnipkg/isolation/patchers.py:670
↓ 1 callersMethod_detect_conda_corruption_from_error
Detect corruption patterns in conda command stderr output. Args: stderr_output: Standard error from failed conda command
src/omnipkg/core.py:12691
↓ 1 callersMethod_detect_conflicts_via_redis
🚀 ULTRA-FAST Conflict Detection (Redis Pipelining). Replaces 2.3ms of disk I/O with ~0.1ms of cache lookup.
src/omnipkg/loader.py:3658
↓ 1 callersMethod_detect_index
(self, packages, index_url, extra_index_url, sp, unused)
src/omnipkg/installation/installers.py:660
↓ 1 callersMethod_detect_python_implementation
Detect the Python implementation (cpython, pypy, graalpy, etc.). Returns: str: Normalized implementation name ('cpython'
src/omnipkg/core.py:10990
↓ 1 callersMethod_discover_cuda_paths
Discover CUDA library paths for this package spec. Dynamically detects CUDA version requirement (cu11 vs cu12).
src/omnipkg/isolation/worker_daemon.py:2978
↓ 1 callersMethod_discover_distributions_fast
ULTRA-FAST targeted discovery for known packages. Only searches expected locations instead of entire filesystem. Args:
src/omnipkg/package_meta_builder.py:845
↓ 1 callersFunction_discover_site_packages
Auto-discover all site-packages directories for known Python interpreters by reading the SHM registry JSON written by WorkerPoolDaemon.
src/omnipkg/isolation/fs_watcher.py:1230
↓ 1 callersFunction_discover_torch_bubble_specs
Query omnipkg for all torch versions installed in the current Python's bubbles, then return up to `want` specs that each have a *distinct* CU
src/omnipkg/tests/omnipkg_ipc_showcase.py:182
↓ 1 callersFunction_do_kill
Kill a list of process dicts; return (killed, total).
src/omnipkg/isolation/resource_monitor.py:333
↓ 1 callersFunction_do_update
()
src/omnipkg/integration/reproducible.py:1224
↓ 1 callersMethod_download_source
Download and extract source code.
src/omnipkg/libresolver.py:191
↓ 1 callersMethod_elf_parse_sections
Parse ELF64 section headers from raw bytes. Returns {section_name: (sh_type, vma, file_offset, size)}. Silently returns {} on
src/omnipkg/package_meta_builder.py:2522
↓ 1 callersMethod_elf_scan_numpy_abi
(data: bytes, sections: Dict)
src/omnipkg/package_meta_builder.py:2556
↓ 1 callersMethod_emergency_heal_metadata
Emergency on-the-spot metadata healing when corruption is detected during KB scan. Returns True if healing succeeded, False otherwise
src/omnipkg/package_meta_builder.py:1563
↓ 1 callersMethod_ensure_deps_in_interpreter
Ensure critical omnipkg runtime deps are installed in a newly adopted interpreter.
src/omnipkg/core.py:10652
↓ 1 callersFunction_ensure_interpreter_config
Creates .omnipkg_config.json next to the interpreter if it doesn't exist. Called from the dispatcher at the earliest moment we know a path is
src/omnipkg/dispatcher.py:1534
↓ 1 callersFunction_ensure_native_shims
Self-healing shim check for the native/primary Python. The adoption path short-circuits with "already available" for the native interpre
src/omnipkg/dispatcher.py:2223
↓ 1 callersMethod_ensure_numpy_bubble
Pre-flight check: warn if no numpy bubble dir exists for a torch/tensorflow spec. KB-guided range lookup requires pre_core which is n
src/omnipkg/isolation/worker_daemon.py:2739
↓ 1 callersMethod_ensure_shims_installed
Creates a shim directory where 'python', 'python3', and 'pip' point back to the omnipkg dispatcher.
src/omnipkg/core.py:3070
↓ 1 callersMethod_ensure_uv_cache
Populate _uv_exe_cached / _uv_cache_dir / _uv_ffi_run on core if not yet done.
src/omnipkg/installation/installers.py:683
↓ 1 callersFunction_ensure_worker_config
Write a minimal .omnipkg_config.json next to the worker's Python executable so ConfigManager._get_our_config_path() finds it and doesn't fall
src/omnipkg/isolation/worker_daemon.py:272
↓ 1 callersMethod_enter_multi
Activate multiple packages sequentially, with dependency-aware ordering. Ordering rule: if package A's bubble directory contains pa
src/omnipkg/loader.py:2036
↓ 1 callersMethod_enter_single
(self)
src/omnipkg/loader.py:2245
↓ 1 callersMethod_estimate_directory_size
Estimate directory size with early termination for safety.
src/omnipkg/core.py:11336
↓ 1 callersMethod_evict_one
Evict the longest-idle non-dirty worker. Call with self._lock held.
src/omnipkg/isolation/worker_daemon.py:6275
↓ 1 callersMethod_execute_cpu_shm
CPU-only mode: Run computation on CPU without any GPU transfers. Uses zero-copy SHM like Test 17. This is faster than Hybrid
src/omnipkg/isolation/worker_daemon.py:7002
↓ 1 callersMethod_execute_cuda_code
Execute code with CUDA IPC tensors.
src/omnipkg/isolation/worker_daemon.py:5200
↓ 1 callersMethod_execute_hybrid_ipc
Hybrid mode: Copy to CPU SHM, worker copies to GPU. NOTE: Benchmarks show this is the SLOWEST mode (14ms vs 1.5ms Universal).
src/omnipkg/isolation/worker_daemon.py:7339
↓ 1 callersMethod_execute_pytorch_native_ipc
PyTorch 1.x native IPC (framework-managed).
src/omnipkg/isolation/worker_daemon.py:7209
↓ 1 callersMethod_execute_script
Execute a Python script (existing functionality)
src/omnipkg/integration/cli_executor.py:194
↓ 1 callersMethod_execute_universal_ipc
Universal CUDA IPC - client pre-allocates both buffers, worker just opens handles.
src/omnipkg/isolation/worker_daemon.py:7065
↓ 1 callersMethod_execute_with_bubbles
Execute command with bubbled dependencies
src/omnipkg/integration/cli_executor.py:142
↓ 1 callersFunction_extract_bad_packages
Pull every failing package name out of pip's stderr.
src/omnipkg/integration/reproducible.py:2251
↓ 1 callersMethod_extract_import_from_record
Extract the import name by finding the most common top-level directory in the RECORD file (excluding common non-package directories).
src/omnipkg/loader.py:5185
↓ 1 callersMethod_extract_package_from_error
Extract the problematic package name from error output.
src/omnipkg/libresolver.py:769
↓ 1 callersMethod_extract_project_urls
Parses all Project-URL metadata headers into a structured dict and extracts the most useful individual links (PyPI, GitHub, Homepage)
src/omnipkg/package_meta_builder.py:2784
↓ 1 callersMethod_extract_version_from_filename
enclave Extract version from various pip download filename formats across pip eras. Handles package name normalization (dashes become
src/omnipkg/core.py:11996
↓ 1 callersMethod_fallback_analyze_cli
(self, lines: list)
src/omnipkg/package_meta_builder.py:3302
↓ 1 callersMethod_fast_missing_metadata_check
O(n) scan for missing METADATA files across main env + all bubbles. Pure is_dir/exists calls — no parsing, no pip, no Redis.
src/omnipkg/core.py:8301
↓ 1 callersMethod_fetch_from_github
Fetch package metadata and compatibility data from GitHub
src/omnipkg/installation/metadata_cache.py:64
↓ 1 callersMethod_fetch_latest_pypi_version_only
Lightweight PyPI fetch - just gets the latest version number. Used for background cache refreshes.
src/omnipkg/core.py:16172
↓ 1 callersMethod_find_best_version_for_spec
(self, *a, **kw)
src/omnipkg/installation/smart_install.py:233
↓ 1 callersMethod_find_compatible_python_version
(self, *a, **kw)
src/omnipkg/installation/smart_install.py:486
↓ 1 callersMethod_find_distribution_at_path
( self, package_name: str, version: str, search_path: Path )
src/omnipkg/package_meta_builder.py:2108
↓ 1 callersMethod_find_historical_versions
Finds the latest version for each dependency before a given date.
src/omnipkg/core.py:15066
↓ 1 callersMethod_find_newest_version_for_python
Find newest package version with wheels for target Python version
src/omnipkg/core.py:15725
↓ 1 callersMethod_find_package_files
FIXED: Authoritatively finds files belonging to the specific distribution. Also collects native extension files (.so / .pyd / .dll) f
src/omnipkg/package_meta_builder.py:2938
↓ 1 callersMethod_find_python_executable_in_dir
Find the Python executable in a directory, checking common locations.
src/omnipkg/core.py:14341
↓ 1 callersMethod_fix_bubble_import_failures
CRITICAL HEALING LOGIC: Fixes import failures by copying missing modules. This is what was missing from the streamlined version.
src/omnipkg/core.py:5411
↓ 1 callersMethod_fix_numpy_abi
(self, req: _Req, sp, unused)
src/omnipkg/installation/installers.py:723
↓ 1 callersMethod_flatten_dict
(self, d)
src/omnipkg/core.py:6277
↓ 1 callersMethod_flatten_dict
(self, d: Dict, parent_key: str = "", sep: str = ".")
src/omnipkg/package_meta_builder.py:3357
↓ 1 callersFunction_force_complete_initialization
Force a module to complete its initialization.
src/omnipkg/isolation/patchers.py:876
↓ 1 callersMethod_format_uptime
Format uptime in human-readable format.
src/omnipkg/apis/local_bridge.py:869
↓ 1 callersMethod_generate_activation_script
Generate shell-specific activation script
src/omnipkg/integration/environment.py:169
↓ 1 callersMethod_generate_checksum
(self, metadata: Dict)
src/omnipkg/package_meta_builder.py:3236
↓ 1 callersMethod_generate_import_heuristics
Generate smart import candidates based on package name patterns.
src/omnipkg/package_meta_builder.py:2469
↓ 1 callersMethod_get_active_version_from_environment
Gets the version of a package actively installed in the current Python environment using pip show.
src/omnipkg/core.py:13043
↓ 1 callersMethod_get_active_version_from_environment
(self, *a, **kw)
src/omnipkg/installation/smart_install.py:483
↓ 1 callersMethod_get_actual_import_names
Read top_level.txt to get actual import names. This fixes issues where package name != import name (e.g. tomli -> tomli, autocommand
src/omnipkg/installation/verification_strategy.py:80
↓ 1 callersMethod_get_bin_paths
Gets a list of standard binary paths to search for executables.
src/omnipkg/core.py:2357
↓ 1 callersMethod_get_cached_safety_decision
(self)
src/omnipkg/package_meta_builder.py:1190
↓ 1 callersFunction_get_core_deps_for_interp
Ask the target interpreter to run _get_core_dependencies for its Python version. Returns a list of PEP 508 dep strings like "aiohttp>=3.13.3"
src/omnipkg/integration/reproducible.py:1722
↓ 1 callersMethod_get_current_timestamp
Helper to get current timestamp for knowledge base entries.
src/omnipkg/core.py:13377
↓ 1 callersFunction_get_env_id_for_venv
Compute env_id the same way core.py does — canonical resolved path hash.
src/omnipkg/integration/reproducible.py:434
↓ 1 callersMethod_get_file_list_for_packages_live
(ROBUST VERSION) Runs a subprocess to get the authoritative file list. The script is now hardened to handle corrupted metadata and pr
src/omnipkg/core.py:14366
↓ 1 callersMethod_get_global_cache_key
Constructs the deterministic slot name for this package in the global cache. Format: ``<canonical_name>-<version>-<record_hash[:16]>
src/omnipkg/package_meta_builder.py:3214
↓ 1 callersMethod_get_help_output
(self, executable_path: str)
src/omnipkg/package_meta_builder.py:3245
↓ 1 callersMethod_get_historical_dependencies
(self, package_name: str, version: str)
src/omnipkg/core.py:4526
↓ 1 callersMethod_get_historical_dependency_names
Creates a temp venv USING THE CORRECT PYTHON CONTEXT to discover dependencies.
src/omnipkg/core.py:15010
↓ 1 callersMethod_get_historical_release_date
Uses PyPI JSON API to get the release date for a specific version.
src/omnipkg/core.py:14993
↓ 1 callersMethod_get_import_candidates
Get the authoritative list of import candidates for a package. Uses multiple strategies in order of reliability.
src/omnipkg/package_meta_builder.py:2408
↓ 1 callersMethod_get_import_candidates_for_bubble
(Authoritative) Finds import candidates by reading top_level.txt from the package's .dist-info directory. Handles PyPI's inconsistent
src/omnipkg/core.py:5292
↓ 1 callersMethod_get_install_lock
Gets or creates a file lock for a specific package INSTALLATION. This prevents race conditions when multiple threads try to install
src/omnipkg/loader.py:727
↓ 1 callersMethod_get_or_build_main_env_hash_index
Builds or loads a FAST hash index using multiple strategies: 1. Isolated subprocess for authoritative file lists (preferred)
src/omnipkg/core.py:5621
↓ 1 callersMethod_get_or_create
(self, key: str, spec: str, python_exe: str, dirty: bool)
src/omnipkg/isolation/worker_daemon.py:6244
↓ 1 callersMethod_get_our_config_path
FIXED: Returns per-Python config path, not global config PRIORITY ORDER: 1. Environment variable override (for testing)
src/omnipkg/core.py:3224
↓ 1 callersMethod_get_package_modules
Helper to find all modules related to a package in sys.modules.
src/omnipkg/loader.py:4590
↓ 1 callersFunction_get_pip_cmd
()
setup.py:244
↓ 1 callersMethod_get_platform_tags
Get current platform information for wheel matching.
src/omnipkg/core.py:14635
↓ 1 callersMethod_get_redis_key_prefix_for_version
Generates the Redis key prefix for a specific Python version string.
src/omnipkg/core.py:11472
↓ 1 callersMethod_get_resolved_deps
Build a ``{canonical_name: version}`` snapshot of everything installed alongside (or under) this package. For active/main-en
src/omnipkg/package_meta_builder.py:3096
↓ 1 callersMethod_get_security_info
FIXED: Parses the security report from `safety`, correctly handling both the legacy object format ({'pkg': [...]}) and the modern lis
src/omnipkg/package_meta_builder.py:2987
↓ 1 callersMethod_get_speed_description
Returns a human-readable description of swap speed.
src/omnipkg/loader.py:4554
↓ 1 callersMethod_get_status
(self)
src/omnipkg/isolation/worker_daemon.py:5504
↓ 1 callersMethod_get_system_lang_code
Helper to get a valid system language code.
src/omnipkg/core.py:2366
↓ 1 callersFunction_get_tf_client_and_exe
Get or create the daemon client and resolve py3.11 path once.
src/omnipkg/tests/test_tensorflow_switching.py:532
↓ 1 callersMethod_get_top_level_symlink_targets
Returns the exact set of folder/file names that must be symlinked from the global cache slot into a bubble so Python's import machine
src/omnipkg/package_meta_builder.py:3043
↓ 1 callersFunction_get_venv_temp_dir
()
src/omnipkg/isolation/worker_daemon.py:341
↓ 1 callersFunction_ghost_spawn_windows
"Compile-as-ghost" architecture (v3): For each (_, target) in swaps, compile dispatcher.c to a unique temp path (e.g. %TEMP%\\omnipkg\\_
src/omnipkg/dispatcher.py:838
↓ 1 callersFunction_global_state_path
Canonical path for a given content SHA.
src/omnipkg/integration/reproducible.py:1154
↓ 1 callersFunction_handle_circular_import
Handle circular imports by pre-loading dependencies.
src/omnipkg/isolation/patchers.py:796
↓ 1 callersFunction_handle_cpp_boundary_import
Handle C++/Python boundary imports with lazy initialization.
src/omnipkg/isolation/patchers.py:591
↓ 1 callersMethod_handle_parent_after_fork
Logic for the parent process on Unix after forking.
src/omnipkg/isolation/worker_daemon.py:3855
↓ 1 callersFunction_handle_partial_initialization
Handle partial initialization.
src/omnipkg/isolation/patchers.py:864
← previousnext →601–700 of 1,775, ranked by callers