Browse Source

Add some examples

master
Jake Howard 4 years ago
parent
commit
d72a9f249c
  1. 11
      examples/read_in.py
  2. 5
      examples/simple.py
  3. 5
      examples/simple.sh

11
examples/read_in.py

@ -0,0 +1,11 @@
#!/usr/bin/env python3
import sys
import json
print("<h1>Hello!</h1>")
request = json.loads(sys.stdin.read())
print("<p>You're looking at {}.</p>".format(request['url']))

5
examples/simple.py

@ -0,0 +1,5 @@
#!/usr/bin/env python3
import sys
print(sys.stdin.read())

5
examples/simple.sh

@ -0,0 +1,5 @@
#!/usr/bin/env bash
read test
echo $test
Loading…
Cancel
Save