ExuluPython provides functions for setting up, checking, and validating the Python virtual environment that IMP’s document processing and ML features depend on. The environment is created inside the installed @exulu/backend package at ee/python/.venv.
You do not need to call these functions in normal production use — the document processor calls setup and validate automatically. Use ExuluPython directly when you want to pre-warm the environment at deploy time, build a health check, or display setup instructions to end-users.
API surface
ExuluPython.setup
ee/python/setup.sh script to create and populate the virtual environment. Skips when the environment already exists, unless force: true.
string
Path to the installed
@exulu/backend package. Auto-detected by walking the directory tree when omitted.boolean
default:"false"
Re-run setup even when the virtual environment already exists (useful when packages are missing or corrupted).
boolean
default:"false"
Print setup script output to the console during execution.
number
default:"600000"
Setup timeout in milliseconds. The default (10 minutes) accommodates slow network downloads on first install.
ExuluPython.check
true when ee/python/.venv/bin/python exists. Does not verify that packages are installed — use validate for a thorough check.
ExuluPython.validate
checkPackages is true) that the critical packages docling and transformers can be imported.
boolean
default:"true"
Whether to import-check
docling and transformers in addition to checking the executable.ExuluPython.instructions
setupPythonEnvironment()), CLI (npx @exulu/backend setup-python), and manual paths. Includes platform-specific package manager commands.
Example
System requirements
Install Python on common platforms:
Related
- ExuluDocumentProcessor: the main consumer of the Python environment.