project.http_connector() | grpc_connector() | kafka_connector() | ...Project connector factories — Python Architecture DSL
Create transport-specific Connector subclasses with language adapter defaults selected by the DSL.
When to use
Declare a connector once, then create its endpoints through the returned concrete object.
Behavior
- HTTP, gRPC, Kafka, NATS, JetStream, Pulsar, RedisStreams, RabbitMQ, Cron, Temporal, and Custom use different constructor parameters and endpoint methods.
- Per-language implementation parameters are typed DataConnectorImplementation values.
- Implementation defaults come from the current capability catalog; the new broker factories can leave overrides unset. Support also depends on direction: TypeScript RabbitMQ is Sink-only. See broker support.
Network connector factories properties
Transport configuration.
http_connector(name, *, module=None, host=None, port=None, use_dedicated_listener=None, implementations=None)HttpConnectorHTTP listener/client adapter configuration.
grpc_connector(name, *, module=None, programming_language=None, address=None, connections_count=None, implementations=None)GrpcConnectorgRPC channel/server adapter configuration.
kafka_connector(name, *, cluster, security=None, use_partitioner=None, async_=None, implementations=None)KafkaConnectorKafkaCluster and optional KafkaSecurity configuration objects.
Message broker factories properties
See broker Help for endpoint fields, provisioning and runtime restrictions.
nats_connector(name, *, servers, ...)NATSConnector.subject()Core pub/sub; queue_group is Input-only. No durable ACK or replay.
jetstream_connector(name, *, servers, ...)JetStreamConnector.subject()Durable pull consumer: subject, stream_name, durable_name; create_stream/create_consumer are opt-in.
pulsar_connector(name, *, servers, admin_url, ...)PulsarConnector.endpoint()Persistent topic and explicit subscription; no Rust or KeyShared profile.
redis_streams_connector(name, *, servers, redis_database=None, ...)RedisStreamsConnector.endpoint()Standalone stream_key and consumer_group; no Cluster, Sentinel, Rust or userver profile.
rabbitmq_connector(name, *, servers, virtual_host=None, ...)RabbitMQConnector.endpoint()AMQP 1.0: Go/Python Input+Sink, TypeScript Sink-only. Creation flags default false.
Scheduling connector factories properties
Cron and Temporal configuration.
cron_connector(name, *, implementations=None)CronConnectorLocal schedule adapter per target language.
temporal_connector(name, *, address, namespace, identity=None, api_key=None, tls_*=None, worker_stop_timeout=None, implementations=None)TemporalConnectorTemporal client, TLS, identity, and worker shutdown configuration.
Custom connector properties
Function-defined integration.
custom_connector(name, *, implementation=FUNCTION, module=None)CustomConnectorCustom endpoint adapter optionally owned by a Module.
Python example
kafka = project.kafka_connector(
"Order Events",
cluster=KafkaCluster(brokers="redpanda:9092", version="2.8.0"),
security=KafkaSecurity(protocol=KafkaSecurityProtocol.PLAINTEXT),
)
temporal = project.temporal_connector(
"Temporal",
address="temporal:7233",
namespace="default",
worker_stop_timeout=10_000,
)