Skip to main content

KafkaDsn

A type that will accept any Kafka DSN.

Constructor

Signature

def KafkaDsn()

Methods


_constraints()

def _constraints() - > [UrlConstraints](urlconstraints.md?sid=pydantic_networks_urlconstraints)

Defines the validation constraints for Kafka connection strings, including the required 'kafka' scheme and default connection settings.

Returns

TypeDescription
[UrlConstraints](urlconstraints.md?sid=pydantic_networks_urlconstraints)A configuration object specifying allowed schemes, default host, and default port.