tzulitai commented on a change in pull request #66: [FLINK-16722] Add Python 
SDK Walkthrough
URL: https://github.com/apache/flink-statefun/pull/66#discussion_r397674231
 
 

 ##########
 File path: statefun-examples/statefun-python-walkthrough/README.md
 ##########
 @@ -0,0 +1,46 @@
+# Apache Stateful Functions - Walkthrough
+
+## Setup
+
+* Create a virtual env
+
+```
+python3 -m venv venv
+source venv/bin/activate   
+```
+
+* Install the requirements 
+
+```
+pip3 install requirements.txt
+```
+
+If you are building from source, then first build the 
+distribution (via calling `statefun-python-sdk/build-distribution.sh`)
+then copy 
`statefun-python-sdk/dist/apache_flink_statefun-1.1_SNAPSHOT-py3-none-any.whl` 
here and
+run 
+
+```
+pip3 install apache_flink_statefun-1.1_SNAPSHOT-py3-none-any.whl
+```
+
+## Examples
+
+* Checkout the walkthough examples at [walkthrough.py](walkthrough.py)
+* To invoke one of the example functions, and observe its result, run:
+```
+python3 walkthrough.py
+```
+
+And from another terminal run:
+```
+python3 run-example <example name>
+```
+
+i.e.
+
+```
+python3 run-example walkthrough/hello
 
 Review comment:
   ```suggestion
   python3 run-example.py walkthrough/hello
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to