Skip to content

Commit 85f9926

Browse files
authored
more 3.0 cleanup (#526)
1 parent b2ffaa0 commit 85f9926

File tree

18 files changed

+23
-23
lines changed

18 files changed

+23
-23
lines changed

docs/advanced/topics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ sdf = app.dataframe(input_topic).to_topic(output_topic)
4343

4444
# Run the Application.
4545
# The topics will be validated and created during this function call.
46-
app.run(sdf)
46+
app.run()
4747
```
4848

4949
## Topic Configuration
@@ -83,5 +83,5 @@ sdf = app.dataframe(input_topic).to_topic(output_topic)
8383
# Run the Application.
8484
# The topics will be validated and created during this function call.
8585
# Note: if the topics already exist, the configs will remain intact.
86-
app.run(sdf)
86+
app.run()
8787
```

docs/connectors/sources/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def main():
1515
sdf = app.dataframe(source=source)
1616
sdf.print(metadata=True)
1717

18-
app.run(sdf)
18+
app.run()
1919

2020
if __name__ == "__main__":
2121
main()
@@ -60,7 +60,7 @@ def main():
6060
sdf = app.dataframe(topic=topic, source=source)
6161
sdf.print(metadata=True)
6262

63-
app.run(sdf)
63+
app.run()
6464

6565
if __name__ == "__main__":
6666
main()

docs/connectors/sources/csv-source.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def main():
1919
sdf = app.dataframe(source=source)
2020
sdf.print(metadata=True)
2121

22-
app.run(sdf)
22+
app.run()
2323

2424
if __name__ == "__main__":
2525
main()

docs/connectors/sources/custom-sources.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def main():
7979
sdf = app.dataframe(source=source)
8080
sdf.print(metadata=True)
8181

82-
app.run(sdf)
82+
app.run()
8383

8484
if __name__ == "__main__":
8585
main()
@@ -141,7 +141,7 @@ def main():
141141
sdf = app.dataframe(source=source)
142142
sdf.print(metadata=True)
143143

144-
app.run(sdf)
144+
app.run()
145145

146146
if __name__ == "__main__":
147147
main()

docs/connectors/sources/kafka-source.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def main():
2424
sdf = app.dataframe(source=source)
2525
sdf.print(metadata=True)
2626

27-
app.run(sdf)
27+
app.run()
2828

2929
if __name__ == "__main__":
3030
main()

docs/connectors/sources/quix-source.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def main():
2323
sdf = app.dataframe(source=source)
2424
sdf.print(metadata=True)
2525

26-
app.run(sdf)
26+
app.run()
2727

2828
if __name__ == "__main__":
2929
main()

docs/processing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ sdf = (
9595
sdf = sdf.to_topic(output_topic)
9696

9797
# Run the pipeline
98-
app.run(sdf)
98+
app.run()
9999
```
100100

101101
### Data Types
@@ -480,7 +480,7 @@ sdf['average_is_null'] = sdf["average"].isnull()
480480
Under the good, when you access a column on `StreamingDataFrame` it generates the new `StreamingSeries` instance that refers to the value of the passed key.
481481

482482
These objects are also lazy, and they are evaluated only when the `StreamingDataFrame`is
483-
executed by `app.run(sdf)`.
483+
executed by `app.run()`.
484484

485485
When you set them back to the StreamingDataFrame or use them to filter data, it creates
486486
a new step in the pipeline to be evaluated later.

docs/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ sdf = sdf.update(lambda row: print(f"Output: {row}"))
102102

103103
# Run the streaming application
104104
if __name__ == "__main__":
105-
app.run(sdf)
105+
app.run()
106106
```
107107

108108
### Step 4. Running the Producer

docs/tutorials/anomaly-detection/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ def should_alert(window_value: int, key, timestamp, headers):
2828

2929

3030
if __name__ == "__main__":
31-
app.run(sdf)
31+
app.run()

docs/tutorials/purchase-filtering/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ def get_purchase_totals(items):
3232

3333

3434
if __name__ == "__main__":
35-
app.run(sdf)
35+
app.run()

docs/tutorials/word-count/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ def should_skip(word_count_pair):
2828

2929

3030
if __name__ == "__main__":
31-
app.run(sdf)
31+
app.run()

examples/bank_example/json_version/consumer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ def count_transactions(value: dict, state: State):
6666

6767
if __name__ == "__main__":
6868
# Start message processing
69-
app.run(sdf)
69+
app.run()

examples/bank_example/quix_platform_version/consumer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ def count_transactions(value: dict, state: State):
6969

7070
if __name__ == "__main__":
7171
# Start message processing
72-
app.run(sdf)
72+
app.run()

examples/custom_websocket_source/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def main():
108108
sdf.print()
109109

110110
# Start the application
111-
app.run(sdf)
111+
app.run()
112112

113113

114114
if __name__ == "__main__":

quixstreams/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class Application:
9494
df = app.dataframe(topic)
9595
df.apply(lambda value, context: print('New message', value))
9696
97-
app.run(dataframe=df)
97+
app.run()
9898
```
9999
"""
100100

@@ -477,7 +477,7 @@ def dataframe(
477477
df = app.dataframe(topic)
478478
df.apply(lambda value, context: print('New message', value)
479479
480-
app.run(dataframe=df)
480+
app.run()
481481
```
482482
483483

quixstreams/sources/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def main():
5656
sdf = app.dataframe(source=source)
5757
sdf.print(metadata=True)
5858
59-
app.run(sdf)
59+
app.run()
6060
6161
if __name__ == "__main__":
6262
main()

quixstreams/sources/kafka/kafka.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class KafkaReplicatorSource(Source):
4848
4949
sdf = app.dataframe(source=source)
5050
sdf = sdf.print()
51-
app.run(sdf)
51+
app.run()
5252
```
5353
"""
5454

quixstreams/sources/kafka/quix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class QuixEnvironmentSource(KafkaReplicatorSource):
4242
4343
sdf = app.dataframe(source=source)
4444
sdf = sdf.print()
45-
app.run(sdf)
45+
app.run()
4646
```
4747
"""
4848

0 commit comments

Comments
 (0)