Registry / ai-ml / comfy-env

comfy-env

JSON →
library0.4.1pypypi✓ verified 81d ago

Environment management for ComfyUI custom nodes - CUDA wheel resolution and process isolation. Current version 0.3.47, released irregularly.

pip install comfy-env
INSTALL
IMPORT
SIG · COMFY-ENV
C
comfy-env
ai-mlpythonv0.4.1
Install
5.5s avg
Import
Disk
103MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.4.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 6.1s
py 3.11
✓ —
✓ 5.6s
py 3.12
✓ —
✓ 5s
py 3.13
✓ —
✓ 5.2s
py 3.9
✕ build_error
✕ build_error
103MB installed
● package 103MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ComfyEnvConfig
from comfy_env import ComfyEnvConfig
from comfy_env import ComfyEnvManager
CUDAEnvironment
from comfy_env import CUDAEnvironment
SubprocessWorker
from comfy_env import SubprocessWorker

Basic usage: resolve CUDA wheel and use process isolation.

from comfy_env import ComfyEnvManager, isolation_context # Resolve CUDA wheel for current environment manager = ComfyEnvManager() wheel_path = manager.resolve_cuda_wheel() print(f"Resolved wheel: {wheel_path}") # Run code in isolated subprocess with isolation_context(): # Your isolated code here pass
comfy-env --version
Debug
Known issues
breakingIn v0.3.0, the main class was renamed from EnvManager to ComfyEnvManager. Old imports will break.
fix
Use 'from comfy_env import ComfyEnvManager' instead of 'from comfy_env import EnvManager'.
affects: >=0.3.0
breakingIn v0.2.0, the isolation function was renamed from process_isolation to isolation_context.
fix
Use 'from comfy_env import isolation_context' instead of 'from comfy_env import process_isolation'.
affects: >=0.2.0
gotchaThe CUDA wheel resolution requires torch to be installed in the environment; otherwise it will raise an error.
fix
Ensure torch is installed before calling resolve_cuda_wheel().
affects: all
Upgrade
Version history
0.4.1latest on PyPI · released May 19, 2026
Audit
Dependencies
torchoptionalCUDA wheel resolution requires torch to detect CUDA version
Agent activity
22 hits · last 30 days
node
18
OpenAI (training)
1
Resources
comfy-env — pip install comfy-env · libregistry