Skip to content

Commit

Permalink
more 3.0 cleanup (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-quix authored Sep 27, 2024
1 parent b2ffaa0 commit 85f9926
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions docs/advanced/topics.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ sdf = app.dataframe(input_topic).to_topic(output_topic)

# Run the Application.
# The topics will be validated and created during this function call.
app.run(sdf)
app.run()
```

## Topic Configuration
Expand Down Expand Up @@ -83,5 +83,5 @@ sdf = app.dataframe(input_topic).to_topic(output_topic)
# Run the Application.
# The topics will be validated and created during this function call.
# Note: if the topics already exist, the configs will remain intact.
app.run(sdf)
app.run()
```
4 changes: 2 additions & 2 deletions docs/connectors/sources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def main():
sdf = app.dataframe(source=source)
sdf.print(metadata=True)

app.run(sdf)
app.run()

if __name__ == "__main__":
main()
Expand Down Expand Up @@ -60,7 +60,7 @@ def main():
sdf = app.dataframe(topic=topic, source=source)
sdf.print(metadata=True)

app.run(sdf)
app.run()

if __name__ == "__main__":
main()
Expand Down
2 changes: 1 addition & 1 deletion docs/connectors/sources/csv-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def main():
sdf = app.dataframe(source=source)
sdf.print(metadata=True)

app.run(sdf)
app.run()

if __name__ == "__main__":
main()
Expand Down
4 changes: 2 additions & 2 deletions docs/connectors/sources/custom-sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def main():
sdf = app.dataframe(source=source)
sdf.print(metadata=True)

app.run(sdf)
app.run()

if __name__ == "__main__":
main()
Expand Down Expand Up @@ -141,7 +141,7 @@ def main():
sdf = app.dataframe(source=source)
sdf.print(metadata=True)

app.run(sdf)
app.run()

if __name__ == "__main__":
main()
Expand Down
2 changes: 1 addition & 1 deletion docs/connectors/sources/kafka-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def main():
sdf = app.dataframe(source=source)
sdf.print(metadata=True)

app.run(sdf)
app.run()

if __name__ == "__main__":
main()
Expand Down
2 changes: 1 addition & 1 deletion docs/connectors/sources/quix-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def main():
sdf = app.dataframe(source=source)
sdf.print(metadata=True)

app.run(sdf)
app.run()

if __name__ == "__main__":
main()
Expand Down
4 changes: 2 additions & 2 deletions docs/processing.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ sdf = (
sdf = sdf.to_topic(output_topic)

# Run the pipeline
app.run(sdf)
app.run()
```

### Data Types
Expand Down Expand Up @@ -480,7 +480,7 @@ sdf['average_is_null'] = sdf["average"].isnull()
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.

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

When you set them back to the StreamingDataFrame or use them to filter data, it creates
a new step in the pipeline to be evaluated later.
Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ sdf = sdf.update(lambda row: print(f"Output: {row}"))

# Run the streaming application
if __name__ == "__main__":
app.run(sdf)
app.run()
```

### Step 4. Running the Producer
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/anomaly-detection/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ def should_alert(window_value: int, key, timestamp, headers):


if __name__ == "__main__":
app.run(sdf)
app.run()
2 changes: 1 addition & 1 deletion docs/tutorials/purchase-filtering/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ def get_purchase_totals(items):


if __name__ == "__main__":
app.run(sdf)
app.run()
2 changes: 1 addition & 1 deletion docs/tutorials/word-count/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ def should_skip(word_count_pair):


if __name__ == "__main__":
app.run(sdf)
app.run()
2 changes: 1 addition & 1 deletion examples/bank_example/json_version/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ def count_transactions(value: dict, state: State):

if __name__ == "__main__":
# Start message processing
app.run(sdf)
app.run()
2 changes: 1 addition & 1 deletion examples/bank_example/quix_platform_version/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ def count_transactions(value: dict, state: State):

if __name__ == "__main__":
# Start message processing
app.run(sdf)
app.run()
2 changes: 1 addition & 1 deletion examples/custom_websocket_source/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def main():
sdf.print()

# Start the application
app.run(sdf)
app.run()


if __name__ == "__main__":
Expand Down
4 changes: 2 additions & 2 deletions quixstreams/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Application:
df = app.dataframe(topic)
df.apply(lambda value, context: print('New message', value))
app.run(dataframe=df)
app.run()
```
"""

Expand Down Expand Up @@ -477,7 +477,7 @@ def dataframe(
df = app.dataframe(topic)
df.apply(lambda value, context: print('New message', value)
app.run(dataframe=df)
app.run()
```
Expand Down
2 changes: 1 addition & 1 deletion quixstreams/sources/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def main():
sdf = app.dataframe(source=source)
sdf.print(metadata=True)
app.run(sdf)
app.run()
if __name__ == "__main__":
main()
Expand Down
2 changes: 1 addition & 1 deletion quixstreams/sources/kafka/kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class KafkaReplicatorSource(Source):
sdf = app.dataframe(source=source)
sdf = sdf.print()
app.run(sdf)
app.run()
```
"""

Expand Down
2 changes: 1 addition & 1 deletion quixstreams/sources/kafka/quix.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class QuixEnvironmentSource(KafkaReplicatorSource):
sdf = app.dataframe(source=source)
sdf = sdf.print()
app.run(sdf)
app.run()
```
"""

Expand Down

0 comments on commit 85f9926

Please sign in to comment.