The engine is Adept's internal Python process and background-worker foundation for polling, webhooks, and data processing.
- Language: Python (uv for dependency management)
- Framework: FastAPI (uvicorn)
- Install Dependencies:
uv sync --locked
- Run the API locally:
set -a && source ../.env && set +a uv run uvicorn app.main:app --reload --port 8000
- Run the Background Worker:
set -a && source ../.env && set +a uv run python -m app.worker
uv run ruff format --check .
uv run ruff check .
uv run mypy app tests
uv run pytest -m "not integration"Integration tests require a test database setup (password matches POSTGRES_PASSWORD in .env):
ENGINE_TEST_DATABASE_ALLOWED=true TEST_DATABASE_URL=postgresql+psycopg://adept:adept_local_password@localhost:5432/adept_engine_test uv run pytest -m integration