Utilities
Logger
pluginlake.utils.logger
Structured logging setup for pluginlake.
setup_logging(level=logging.INFO)
Configure the root pluginlake logger.
Call once at application startup. All child loggers
(e.g., pluginlake.storage) inherit this configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
level
|
int
|
The log level to set. |
INFO
|
Source code in src/pluginlake/utils/logger.py
get_logger(name)
Get a namespaced logger for a pluginlake module.
Usage::
from pluginlake.utils.logger import get_logger
logger = get_logger(__name__)
logger.info("Processing started")
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The module name, typically |
required |
Returns:
| Type | Description |
|---|---|
Logger
|
A logger under the |
Source code in src/pluginlake/utils/logger.py
Dev Environment
pluginlake.utils.devenv
Dev environment service checks for notebooks and local development.
ServiceStatus
check_dev_services()
Check PostgreSQL, Dagster, and FastAPI connectivity for the local dev stack.
Source code in src/pluginlake/utils/devenv.py
Test Data
pluginlake.utils.testdata
Synthea test/demo data retrieval for notebooks and development.
For OMOP vocabulary provisioning (production), use
:func:pluginlake.omop.provisioning.ensure_omop_vocabularies instead.
find_repo_root()
Walk up from this file to find the directory containing pyproject.toml.
Source code in src/pluginlake/utils/testdata.py
ensure_synthea1k(project_root=None)
Ensure Synthea 1K test data is available locally.
ensure_synthea_fhir_ndjson(project_root=None)
Ensure Synthea FHIR NDJSON files are available locally.