@@ -530,29 +530,42 @@ path to state dir
530
530
531
531
## quixstreams.platforms.quix.checks
532
532
533
+ <a id="quixstreams.platforms.quix.checks.is_quix_deployment"></a>
534
+
535
+ #### is\_quix\_deployment
536
+
537
+ ```python
538
+ def is_quix_deployment() -> bool
539
+ ```
540
+
541
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/platforms/quix/checks.py#L11)
542
+
543
+ Check if the current deployment is a Quix deployment.
544
+
533
545
<a id="quixstreams.platforms.quix.checks.check_state_management_enabled"></a>
534
546
535
547
#### check\_state\_management\_enabled
536
548
537
549
```python
538
- def check_state_management_enabled()
550
+ def check_state_management_enabled() -> None
539
551
```
540
552
541
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/platforms/quix/checks.py#L11 )
553
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/platforms/quix/checks.py#L18 )
542
554
543
555
Check if State Management feature is enabled for the current deployment on
544
556
Quix platform.
545
- If it's disabled, the exception will be raised.
557
+
558
+ If it's disabled, the warning will be logged.
546
559
547
560
<a id="quixstreams.platforms.quix.checks.check_state_dir"></a>
548
561
549
562
#### check\_state\_dir
550
563
551
564
```python
552
- def check_state_dir(state_dir: Path)
565
+ def check_state_dir(state_dir: Path) -> None
553
566
```
554
567
555
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/platforms/quix/checks.py#L28 )
568
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/platforms/quix/checks.py#L36 )
556
569
557
570
Check if Application "state_dir" matches the state dir on Quix platform.
558
571
@@ -11029,7 +11042,7 @@ Used by the producer during consumer offset sending for an EOS transaction.
11029
11042
class Application()
11030
11043
```
11031
11044
11032
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L78 )
11045
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L79 )
11033
11046
11034
11047
The main Application class.
11035
11048
@@ -11080,7 +11093,7 @@ def __init__(broker_address: Optional[Union[str, ConnectionConfig]] = None,
11080
11093
commit_every: int = 0,
11081
11094
consumer_extra_config: Optional[dict] = None,
11082
11095
producer_extra_config: Optional[dict] = None,
11083
- state_dir: Union[str, Path] = Path("state") ,
11096
+ state_dir: Union[None, str, Path] = None ,
11084
11097
rocksdb_options: Optional[RocksDBOptionsType] = None,
11085
11098
on_consumer_error: Optional[ConsumerErrorCallback] = None,
11086
11099
on_processing_error: Optional[ProcessingErrorCallback] = None,
@@ -11098,7 +11111,7 @@ def __init__(broker_address: Optional[Union[str, ConnectionConfig]] = None,
11098
11111
processing_guarantee: ProcessingGuarantee = "at-least-once")
11099
11112
```
11100
11113
11101
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L116 )
11114
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L117 )
11102
11115
11103
11116
**Arguments**:
11104
11117
@@ -11183,7 +11196,7 @@ instead of the default one.
11183
11196
def Quix(cls, *args, **kwargs)
11184
11197
```
11185
11198
11186
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L358 )
11199
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L361 )
11187
11200
11188
11201
RAISES EXCEPTION: DEPRECATED.
11189
11202
@@ -11204,7 +11217,7 @@ def topic(name: str,
11204
11217
timestamp_extractor: Optional[TimestampExtractor] = None) -> Topic
11205
11218
```
11206
11219
11207
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L390 )
11220
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L393 )
11208
11221
11209
11222
Create a topic definition.
11210
11223
@@ -11276,7 +11289,7 @@ def dataframe(topic: Optional[Topic] = None,
11276
11289
source: Optional[BaseSource] = None) -> StreamingDataFrame
11277
11290
```
11278
11291
11279
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L470 )
11292
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L473 )
11280
11293
11281
11294
A simple helper method that generates a `StreamingDataFrame`, which is used
11282
11295
@@ -11324,7 +11337,7 @@ to be used as an input topic.
11324
11337
def stop(fail: bool = False)
11325
11338
```
11326
11339
11327
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L526 )
11340
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L529 )
11328
11341
11329
11342
Stop the internal poll loop and the message processing.
11330
11343
@@ -11347,7 +11360,7 @@ to unhandled exception, and it shouldn't commit the current checkpoint.
11347
11360
def get_producer() -> Producer
11348
11361
```
11349
11362
11350
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L571 )
11363
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L574 )
11351
11364
11352
11365
Create and return a pre-configured Producer instance.
11353
11366
The Producer is initialized with params passed to Application.
@@ -11378,7 +11391,7 @@ with app.get_producer() as producer:
11378
11391
def get_consumer(auto_commit_enable: bool = True) -> Consumer
11379
11392
```
11380
11393
11381
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L626 )
11394
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L629 )
11382
11395
11383
11396
Create and return a pre-configured Consumer instance.
11384
11397
@@ -11429,7 +11442,7 @@ Default - True
11429
11442
def clear_state()
11430
11443
```
11431
11444
11432
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L676 )
11445
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L679 )
11433
11446
11434
11447
Clear the state of the application.
11435
11448
@@ -11441,7 +11454,7 @@ Clear the state of the application.
11441
11454
def add_source(source: BaseSource, topic: Optional[Topic] = None) -> Topic
11442
11455
```
11443
11456
11444
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L682 )
11457
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L685 )
11445
11458
11446
11459
Add a source to the application.
11447
11460
@@ -11464,7 +11477,7 @@ Note: the names of default topics are prefixed with "source__".
11464
11477
def run(dataframe: Optional[StreamingDataFrame] = None)
11465
11478
```
11466
11479
11467
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L715 )
11480
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L718 )
11468
11481
11469
11482
Start processing data from Kafka using provided `StreamingDataFrame`
11470
11483
@@ -11496,7 +11509,7 @@ app.run()
11496
11509
def setup_topics()
11497
11510
```
11498
11511
11499
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L840 )
11512
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L843 )
11500
11513
11501
11514
Validate and create the topics
11502
11515
@@ -11508,7 +11521,7 @@ Validate and create the topics
11508
11521
class ApplicationConfig(BaseSettings)
11509
11522
```
11510
11523
11511
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L1028 )
11524
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L1031 )
11512
11525
11513
11526
Immutable object holding the application configuration
11514
11527
@@ -11529,7 +11542,7 @@ def settings_customise_sources(
11529
11542
) -> Tuple[PydanticBaseSettingsSource, ...]
11530
11543
```
11531
11544
11532
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L1063 )
11545
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L1066 )
11533
11546
11534
11547
Included to ignore reading/setting values from the environment
11535
11548
@@ -11541,7 +11554,7 @@ Included to ignore reading/setting values from the environment
11541
11554
def copy(**kwargs) -> Self
11542
11555
```
11543
11556
11544
- [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L1076 )
11557
+ [[VIEW SOURCE]](https://github.com/quixio/quix-streams/blob/main/quixstreams/app.py#L1079 )
11545
11558
11546
11559
Update the application config and return a copy
11547
11560
0 commit comments