10
10
class Application ()
11
11
```
12
12
13
- [[VIEW SOURCE ]](https :// github .com / quixio / quix - streams / blob / main / quixstreams / app .py # L63)
13
+ [[VIEW SOURCE ]](https :// github .com / quixio / quix - streams / blob / 3.0 .0 - docs / quixstreams / app .py # L63)
14
14
15
15
The main Application class .
16
16
@@ -59,6 +59,7 @@ app.run()
59
59
60
60
```python
61
61
def __init__ (broker_address: Optional[Union[str , ConnectionConfig]] = None ,
62
+ * ,
62
63
quix_sdk_token: Optional[str ] = None ,
63
64
consumer_group: Optional[str ] = None ,
64
65
auto_offset_reset: AutoOffsetReset = " latest" ,
@@ -84,7 +85,7 @@ def __init__(broker_address: Optional[Union[str, ConnectionConfig]] = None,
84
85
processing_guarantee: ProcessingGuarantee = " at-least-once" )
85
86
```
86
87
87
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main / quixstreams/ app.py# L101)
88
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ 3.0 .0 - docs / quixstreams/ app.py# L101)
88
89
89
90
90
91
< br>
@@ -173,7 +174,7 @@ instead of the default one.
173
174
def Quix(cls , * args, ** kwargs)
174
175
```
175
176
176
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main / quixstreams/ app.py# L355 )
177
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ 3.0 .0 - docs / quixstreams/ app.py# L356 )
177
178
178
179
RAISES EXCEPTION : DEPRECATED .
179
180
@@ -196,7 +197,7 @@ def topic(name: str,
196
197
timestamp_extractor: Optional[TimestampExtractor] = None ) -> Topic
197
198
```
198
199
199
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main / quixstreams/ app.py# L370 )
200
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ 3.0 .0 - docs / quixstreams/ app.py# L371 )
200
201
201
202
Create a topic definition.
202
203
@@ -278,7 +279,7 @@ def dataframe(topic: Optional[Topic] = None,
278
279
source: Optional[BaseSource] = None ) -> StreamingDataFrame
279
280
```
280
281
281
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main / quixstreams/ app.py# L450 )
282
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ 3.0 .0 - docs / quixstreams/ app.py# L451 )
282
283
283
284
A simple helper method that generates a `StreamingDataFrame` , which is used
284
285
@@ -334,7 +335,7 @@ to be used as an input topic.
334
335
def stop(fail: bool = False )
335
336
```
336
337
337
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main / quixstreams/ app.py# L505 )
338
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ 3.0 .0 - docs / quixstreams/ app.py# L506 )
338
339
339
340
Stop the internal poll loop and the message processing.
340
341
@@ -361,7 +362,7 @@ to unhandled exception, and it shouldn't commit the current checkpoint.
361
362
def get_producer() -> Producer
362
363
```
363
364
364
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main / quixstreams/ app.py# L550 )
365
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ 3.0 .0 - docs / quixstreams/ app.py# L551 )
365
366
366
367
Create and return a pre- configured Producer instance.
367
368
The Producer is initialized with params passed to Application.
@@ -396,7 +397,7 @@ with app.get_producer() as producer:
396
397
def get_consumer(auto_commit_enable: bool = True ) -> Consumer
397
398
```
398
399
399
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main / quixstreams/ app.py# L580 )
400
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ 3.0 .0 - docs / quixstreams/ app.py# L581 )
400
401
401
402
Create and return a pre- configured Consumer instance.
402
403
@@ -453,7 +454,7 @@ with app.get_consumer() as consumer:
453
454
def clear_state()
454
455
```
455
456
456
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main / quixstreams/ app.py# L630 )
457
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ 3.0 .0 - docs / quixstreams/ app.py# L631 )
457
458
458
459
Clear the state of the application.
459
460
@@ -467,7 +468,7 @@ Clear the state of the application.
467
468
def add_source(source: BaseSource, topic: Optional[Topic] = None ) -> Topic
468
469
```
469
470
470
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main / quixstreams/ app.py# L636 )
471
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ 3.0 .0 - docs / quixstreams/ app.py# L637 )
471
472
472
473
Add a source to the application.
473
474
@@ -493,7 +494,7 @@ Default: the source default
493
494
def run(dataframe: Optional[StreamingDataFrame] = None )
494
495
```
495
496
496
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main / quixstreams/ app.py# L657 )
497
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ 3.0 .0 - docs / quixstreams/ app.py# L658 )
497
498
498
499
Start processing data from Kafka using provided `StreamingDataFrame`
499
500
@@ -529,7 +530,7 @@ app.run()
529
530
def setup_topics()
530
531
```
531
532
532
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main / quixstreams/ app.py# L779 )
533
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ 3.0 .0 - docs / quixstreams/ app.py# L780 )
533
534
534
535
Validate and create the topics
535
536
@@ -541,7 +542,7 @@ Validate and create the topics
541
542
class ApplicationConfig(BaseSettings)
542
543
```
543
544
544
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main / quixstreams/ app.py# L955 )
545
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ 3.0 .0 - docs / quixstreams/ app.py# L956 )
545
546
546
547
Immutable object holding the application configuration
547
548
@@ -564,7 +565,7 @@ def settings_customise_sources(
564
565
) -> Tuple[PydanticBaseSettingsSource, ... ]
565
566
```
566
567
567
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main / quixstreams/ app.py# L990 )
568
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ 3.0 .0 - docs / quixstreams/ app.py# L991 )
568
569
569
570
Included to ignore reading/ setting values from the environment
570
571
@@ -578,7 +579,7 @@ Included to ignore reading/setting values from the environment
578
579
def copy(** kwargs) -> Self
579
580
```
580
581
581
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main / quixstreams/ app.py# L1003 )
582
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ 3.0 .0 - docs / quixstreams/ app.py# L1004 )
582
583
583
584
Update the application config and return a copy
584
585
0 commit comments