MCPcopy Create free account

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

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

Function_get_install_plan
()
tests/test_uv_ffi_contracts.py:105
Method_get_instance_key
Generates a unique, deterministic Redis key for a specific package instance.
src/omnipkg/package_meta_builder.py:2129
Method_get_kb_instances_by_package_for_context
Gets all instance data from KB, organized by package name and version, but ONLY for instances indexed by the specified Python version
src/omnipkg/core.py:8715
Function_get_known_versions
Return the set of Python version strings currently registered in the omnipkg interpreter registry (e.g. {'3.9', '3.10', '3.11'}). Used b
src/omnipkg/dispatcher.py:2096
Method_get_or_create_worker
Get a worker from the pool, or create one if it doesn't exist. This is the KEY to performance - workers stay alive between activatio
src/omnipkg/loader.py:517
Method_get_packages_in_bubbles_for_context
Get packages in bubbles, but only those created for the current Python version.
src/omnipkg/core.py:8886
Method_get_site_packages_cached
Disk-cached site-packages lookup - only used as last resort fallback.
src/omnipkg/core.py:11678
Method_get_wheel_url_from_pypi
Fetches the wheel URL for a specific package version from PyPI.
src/omnipkg/core.py:13173
Method_granular_verify_and_heal
Iterates through every module in the package. If a module fails to import, it scans ALL other bubbles of this package to find
src/omnipkg/core.py:4141
Method_handle
(self, event)
src/omnipkg/isolation/fs_watcher.py:554
Method_handle_client
Handle client request with timeout protection.
src/omnipkg/isolation/worker_daemon.py:4102
Method_handle_quantum_healing
Handles the 'Quantum Healing' process when a package is incompatible with the current Python version. It attempts to switch to a comp
src/omnipkg/core.py:10559
Method_handle_redis_fallback
Called when Redis is configured but unavailable. Updates config to prevent repeated connection attempts and notifies the user.
src/omnipkg/core.py:7638
Method_handle_shutdown
Graceful shutdown with timeout. Windows + Linux compatible.
src/omnipkg/isolation/worker_daemon.py:5547
Method_heal_corrupt_metadata
NUCLEAR HEALING with file locking to prevent race conditions
src/omnipkg/core.py:4195
Method_health_monitor
CRITICAL FIX: Actually test worker responsiveness.
src/omnipkg/isolation/worker_daemon.py:5366
Method_hunt_and_exorcise_all_ghosts
(QUIET VERSION) Scans for and removes ALL ghost .dist-info directories, only printing output if it finds and deletes something.
src/omnipkg/core.py:9220
Function_i18n
Lazy accessor for the _ translation function.
src/omnipkg/dispatcher.py:19
Function_import_loader
()
tests/test_omnipkg_contracts.py:71
Method_install_bubble_for_worker
Install a bubble directly (called by daemon during worker creation). Returns True if successful.
src/omnipkg/isolation/worker_daemon.py:5174
Method_install_exact_version_tree
( self, package_name: str, version: str, target_path: Path, index_url:
src/omnipkg/core.py:3760
Method_install_ffi_bg
(py_exe=python_exe)
src/omnipkg/isolation/worker_daemon.py:4751
Function_install_via_dispatcher
(version: str, pkg_spec: str, thread_id: int)
src/omnipkg/tests/test_concurrent_install.py:477
Method_is_bubble_healthy_in_subprocess
Spawns a fresh, clean Python process to check if the bubble is actually importable. If this returns True, the bubble is fine, but our
src/omnipkg/loader.py:5367
Method_is_dist_compatible_with_context
Checks if a given distribution is compatible with the specified python_version context.
src/omnipkg/package_meta_builder.py:253
Method_is_known_subcomponent
Check if this dist-info belongs to a sub-component that shouldn't be treated independently.
src/omnipkg/package_meta_builder.py:242
Function_is_plausible_python_version
Return True if `version` *could* be a real CPython release, i.e. the major is 3 and the minor is in a sensible range (0-99). This gates
src/omnipkg/dispatcher.py:2120
Method_is_safe_path
(p: str)
src/omnipkg/installation/verification_strategy.py:357
Method_load_module_with_mock
Load __init__.py with _native patched to the mock.
tests/test_uv_ffi_contracts.py:175
Method_load_or_create_env_config
Proxy for compatibility during migration.
src/omnipkg/core.py:3405
Method_load_path_registry
Load path registry (placeholder for your path management).
src/omnipkg/core.py:735
Method_loop
(self)
src/omnipkg/isolation/fs_watcher.py:653
Method_loop
(self)
src/omnipkg/isolation/sterile.py:46
Method_loop
()
src/omnipkg/isolation/worker_daemon.py:6313
Method_maintain_idle_pool
Pre-spawns Python processes for specific executables so they are ready instantly.
src/omnipkg/isolation/worker_daemon.py:3659
Method_memory_manager
Background thread that enforces two levels of memory policy: 1. Per-worker cap (``max_memory_mb`` set at call time): A sp
src/omnipkg/isolation/worker_daemon.py:5410
Method_norm
(s)
src/omnipkg/core.py:13747
Method_norm
(n)
src/omnipkg/isolation/fs_watcher.py:325
Method_norm
(n)
src/omnipkg/isolation/fs_watcher.py:816
Function_numpy_to_tensor_stabilized
Stabilized numpy to tensor conversion (with graceful fallback).
src/omnipkg/isolation/patchers.py:640
Function_omnipkg_global_shutdown
Runs at process exit to ensure clean termination of CUDA/C++ components.
src/omnipkg/loader.py:6078
Method_parse_distribution_worker
Worker function for parallel discovery with AUTO-HEALING. If metadata is corrupt, attempts emergency repair before giving up.
src/omnipkg/package_meta_builder.py:283
Method_parse_metadata_file
(self, metadata_content: str)
src/omnipkg/package_meta_builder.py:2140
Method_peek_config_for_flag
Safely checks the config file for a boolean flag for the current environment without fully loading the ConfigManager. Returns False i
src/omnipkg/core.py:520
Method_perform_full_pypi_resolution
Full network-based resolution when cache miss occurs. This is your existing logic, extracted for clarity.
src/omnipkg/core.py:16187
Method_perform_security_scan
(V5 - BOOTSTRAP AWARE) Runs a security check on ALL packages. Detects if it's running during initial KB build and uses a safe fallbac
src/omnipkg/package_meta_builder.py:1253
Method_perform_v3_metadata_migration
(CORRECTED) Scans all existing package entries and adds the 'install_type' and 'owner_package' fields based on their path.
src/omnipkg/core.py:7333
Method_plan_callback
(plan)
src/omnipkg/installation/smart_install.py:534
Function_pop_callback_result
()
src/omnipkg/installation/smart_install.py:43
Method_post_adopt
(python_exe: Path)
src/omnipkg/core.py:10805
Method_pre_snapshot_packages_to_bubbles
Before uv destroys old versions, hardlink their files into bubble dirs. Returns dict of {pkg_name: bubble_path} for packages successf
src/omnipkg/core.py:15136
Method_probe_child
(q_in, q_out)
src/omnipkg/isolation/worker_daemon.py:6038
Method_process_package
(V3.1 - Vendored Fix) Processes a single distribution, now correctly including vendored packages instead of skipping them.
src/omnipkg/package_meta_builder.py:1907
Method_raw_version
(dist)
src/omnipkg/core.py:8535
Function_read
()
src/omnipkg/common_utils.py:781
Method_reader_thread
()
src/omnipkg/isolation/worker_daemon.py:2723
Method_rebuild_component
(self, component: str)
src/omnipkg/core.py:7884
Method_register_all_managed_interpreters
Enhanced version that includes original interpreters in the scan.
src/omnipkg/core.py:1656
Method_register_bubble_location
Register bubble location and summary statistics in a single batch operation.
src/omnipkg/core.py:5794
Method_register_bubble_path
Register bubble paths in Redis for dedup across bubbles and main env.
src/omnipkg/package_meta_builder.py:1172
Method_register_file
Register a file in the registry.
src/omnipkg/core.py:3700
Method_register_package_in_knowledge_base
Register a bubbled package in the knowledge base. This integrates with your existing knowledge base system.
src/omnipkg/core.py:13348
Method_release
(self)
src/omnipkg/_vendor/filelock/_unix.py:21
Method_release
(self)
src/omnipkg/_vendor/filelock/_windows.py:73
Method_release
(self)
src/omnipkg/_vendor/filelock/_soft.py:36
Function_release_bubble_claim
(pkg_name: str, version: str)
src/omnipkg/installation/smart_install.py:139
Function_release_later
(p=port)
src/omnipkg/utils/flask_port_finder.py:132
Method_repair_manifest_context_mismatch
Surgically repairs a bubble's manifest file if its `python_version` does not match the Python context of its current location.
src/omnipkg/core.py:8023
Method_reset_setup_flag_on_disk
Directly modifies the config file on disk to reset the setup flag.
src/omnipkg/core.py:605
Method_resolve_package_versions
(UPGRADED) Takes a list of packages and ensures every entry has an explicit '==' version. It now intelligently dispatches to the corr
src/omnipkg/core.py:14287
Method_resolve_spec_with_pip
(V6 - AUTO INDEX DETECTION) Automatically detects special index URLs for packages like PyTorch CUDA variants, then validates with pip
src/omnipkg/core.py:11720
Method_restore_from_pre_install_snapshot
Restores from a specific pre-install snapshot
src/omnipkg/core.py:12055
Method_restore_from_snapshot
Restores the main environment to the exact state of a given snapshot.
src/omnipkg/core.py:13105
Function_run
(cmd: str)
tests/test_uv_ffi_contracts.py:127
Function_run_8pkg
(*args: str, target: str | None = None)
tests/test_uv_ffi_contracts.py:599
Method_run_bulk_security_check
(self, packages: Dict[str, str])
src/omnipkg/package_meta_builder.py:2961
Function_run_cmd_streaming
Stream pip output live so the user can see progress instead of a silent hang.
src/omnipkg/integration/reproducible.py:2441
Function_run_heavy
(ver)
src/omnipkg/tests/test_loader_stress_test.py:1572
Method_run_metadata_builder_for_delta
(V2 - CONTEXT-AWARE FIX) Atomically updates the knowledge base by directly invoking the metadata gatherer in-process, now correctly p
src/omnipkg/core.py:10054
Method_run_post_install_import_test
FIXED: Properly isolates sys.path to ONLY use the staging directory.
src/omnipkg/core.py:14487
Method_run_strategy_1
Strategy 1: Check for vendored packages (SILENT except in verbose mode)
src/omnipkg/package_meta_builder.py:340
Method_run_strategy_2
Strategy 2: Direct pattern matching (SILENT except in verbose mode)
src/omnipkg/package_meta_builder.py:379
Method_run_strategy_3
Strategy 3: Nested directory search (SILENT except in verbose mode)
src/omnipkg/package_meta_builder.py:425
Method_run_strategy_4
Strategy 4: Comprehensive fallback scan (SILENT except in verbose mode)
src/omnipkg/package_meta_builder.py:499
Method_run_strategy_5
Strategy 5: Authoritative lookup via importlib.metadata, scoped to specific paths.
src/omnipkg/package_meta_builder.py:548
Method_run_strategy_6
Strategy 6: Recursive Exact Match (Surgical Strike). Specifically looks for 'package-version.dist-info' anywhere in the tree.
src/omnipkg/package_meta_builder.py:583
Method_run_uv_install
Runs `uv install` for a list of packages.
src/omnipkg/core.py:15306
Method_run_uv_uninstall
Runs `uv pip uninstall` for a list of packages.
src/omnipkg/core.py:15330
Function_safe_resolve
Resolve a path safely for omnipkg identity and path comparisons. Uses resolve() when possible, falls back to absolute() if resolution fails.
src/omnipkg/dispatcher.py:1069
Method_scan_window
(window)
src/omnipkg/package_meta_builder.py:2560
Method_scavenge_from_neighbors
Looks for other installed versions of this package and tries to copy missing files from them. This is the 'Frankenstein' logic.
src/omnipkg/core.py:5363
Method_send_raw
Send an arbitrary JSON message string to the daemon socket.
src/omnipkg/isolation/fs_watcher.py:938
Function_set_plan_callback
(cb: Callable)
tests/test_uv_ffi_contracts.py:108
Method_setup_native_311_environment
Performs the one-time setup for an environment that already has Python 3.11. This primarily involves symlinking and registering the i
src/omnipkg/core.py:709
Function_shims_are_active_in_path
DEPRECATED STUB — no longer used by determine_target_python(). Kept so any external callers don't break.
src/omnipkg/dispatcher.py:1269
Method_show_enhanced_package_data
( self, package_name: str, pre_discovered_dists=None, )
src/omnipkg/core.py:10251
Method_so_reachable
Return True if the mapped .so for this module still exists on disk.
src/omnipkg/loader.py:4739
Method_sort_packages_for_install
Sorts packages for installation based on the chosen strategy. - 'latest-active': Sorts oldest to newest to ensure the last one instal
src/omnipkg/core.py:10630
Function_spawn
(ver)
src/omnipkg/tests/test_loader_stress_test.py:1551
Method_start_fs_watcher
(self)
src/omnipkg/isolation/worker_daemon.py:3730
← previousnext →1,201–1,300 of 1,775, ranked by callers