API Reference¶
kafkaaggregator.app Module¶
Create a kafka-aggregator application.
Functions¶
|
Create and configure a Faust based kafka-aggregator application. |
kafkaaggregator.fields Module¶
Aggregated field class.
The Field has a numerical type by construction. It holds the name of the source field being aggregated and the operation performed.
Classes¶
|
Represents an aggregated field of numeric type. |
Class Inheritance Diagram¶
kafkaaggregator.topics Module¶
Implements Topic, SourceTopic and AggregationTopic classes.
The Topic class has methods to retrieve the topic schema from the Schema Registry and a parsed list of fields from the Avro schema with Python types.
The child classes SourceTopic and AggregationTopic set the right Schema Registry URL to be used with each topic type.
Classes¶
A generic schema registry client exception. |
|
|
Topic schema and interaction with the Schema Registry. |
|
Represents source topics. |
|
Represents aggregated topics. |
Class Inheritance Diagram¶
kafkaaggregator.models Module¶
Dynamic creation of Faust-avro Records.
Functions¶
|
Create a Faust-avro Record class during runtime. |
kafkaaggregator.aggregator Module¶
Create the aggregation model and compute summary statistics.
Given a source topic and a list of field names to exclude from aggregation create the aggregation model and compute summary statistics.
kafka-aggregator adds the aggregation fields time
, window_size
, and
count
and computes min
, mean
, stdev
, median
, and max
statistics
for every numeric field in the source topic.
Classes¶
|
Create the aggregation model and compute summary statistics. |
kafkaaggregator.generator Module¶
Generates Faust agents based on the agent.j2 template.
Classes¶
|
Generate Faust agents from a list of source topics. |
kafkaaggregator.cli Module¶
Command-line interface for kafkaaggregator.
Functions¶
|
Entrypoint for Faust CLI. |
Classes¶
|
Produce messages for the aggregation example. |
|
Initialize the source topic used in the aggregation example. |
kafkaaggregator.example Module¶
Aggregation example.
Classes¶
Initialize topics and produce messages for the aggregation example. |
|
Raised when the number of source topics is unnexpected. |