Skip to content

Integrations

Jobify is designed to be extensible. Below are the community-supported and official integrations that enhance Jobify's capabilities.

Dishka

dishka-jobify is an integration library that connects Jobify with Dishka, a Python dependency injection framework.

jobify-db

jobify-db is an integration library that adds more database storages for Jobify framework. How to use you can see there in examples/ directory or README.md.

FastAPI

FastAPI and other ASGI frameworks that support lifespan don't need a separate integration. Just add the code below to your lifespan or startup/shutdown handlers:

from collections.abc import AsyncIterator
from contextlib import asynccontextmanager

from fastapi import FastAPI

from jobify import Jobify

jobify_app = Jobify()


@asynccontextmanager
async def lifespan(_app: FastAPI) -> AsyncIterator[None]:
    async with jobify_app:
        yield

fastapi_app = FastAPI(lifespan=lifespan)

Or, using explicit startup/shutdown:

@asynccontextmanager
async def lifespan(_app: FastAPI) -> AsyncIterator[None]:
    await jobify_app.startup()
    yield
    await jobify_app.shutdown()