RegistryApiDependency#

class kafkit.fastapi.dependencies.registryapi.RegistryApiDependency#

Bases: object

A FastAPI dependency that provides a Kafkit RegistryApi client.

Methods Summary

__call__()

Get the dependency (call during FastAPI request handling).

initialize(*, http_client, registry_url)

Initialize the dependency (call during FastAPI startup).

Methods Documentation

async __call__()#

Get the dependency (call during FastAPI request handling).

Return type:

RegistryApi

async initialize(*, http_client, registry_url)#

Initialize the dependency (call during FastAPI startup).

Parameters:
  • http_client (AsyncClient) –

  • registry_url (str) –

Return type:

None