Skip to content

Commit

Permalink
chore: bump version to v0.2.6 (#28)
Browse files Browse the repository at this point in the history
Signed-off-by: Avik Basu <[email protected]>
  • Loading branch information
ab93 authored Nov 23, 2022
1 parent 0fbecc1 commit 36c66f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@ and [UDSinks](https://numaproj.github.io/numaflow/sinks/user-defined-sinks/) in
from pynumaflow.function import Messages, Message, Datum, UserDefinedFunctionServicer


def map_handler(key: str, datum: Datum) -> Messages:
def function_handler(key: str, datum: Datum) -> Messages:
"""
Simple UDF that relays an incoming message.
"""
val = datum.value
_ = datum.event_time
_ = datum.watermark
messages = Messages()
messages.append(Message.to_vtx(key, val))
messages = Messages(Message(key=key, value=val))
return messages


if __name__ == "__main__":
grpc_server = UserDefinedFunctionServicer(map_handler)
grpc_server = UserDefinedFunctionServicer(function_handler)
grpc_server.start()
```

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pynumaflow"
version = "0.2.5"
version = "0.2.6"
description = "Provides the interfaces of writing Python User Defined Functions and Sinks for NumaFlow."
authors = ["NumaFlow Developers"]
readme = "README.md"
Expand Down

0 comments on commit 36c66f5

Please sign in to comment.