mirror of
https://github.com/openfaas/faas.git
synced 2025-06-19 20:46:41 +00:00
Light-weight examples for HelloWorld - for on reading an input/request.
This commit is contained in:
11
sample-functions/BaseFunctions/python/handler.py
Normal file
11
sample-functions/BaseFunctions/python/handler.py
Normal file
@ -0,0 +1,11 @@
|
||||
import sys
|
||||
|
||||
def get_stdin():
|
||||
buf = ""
|
||||
for line in sys.stdin:
|
||||
buf = buf + line
|
||||
return buf
|
||||
|
||||
if(__name__ == "__main__"):
|
||||
st = get_stdin()
|
||||
print(st)
|
Reference in New Issue
Block a user