From 156877f3c99b54c78e3cae111542f5519a97a68a Mon Sep 17 00:00:00 2001 From: Andrei Belov Date: Thu, 19 Oct 2017 18:23:32 +0300 Subject: Introduced deb packages building tools. --- pkg/deb/debian.module/unit.example-python-app | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pkg/deb/debian.module/unit.example-python-app (limited to 'pkg/deb/debian.module/unit.example-python-app') diff --git a/pkg/deb/debian.module/unit.example-python-app b/pkg/deb/debian.module/unit.example-python-app new file mode 100644 index 00000000..4146fb52 --- /dev/null +++ b/pkg/deb/debian.module/unit.example-python-app @@ -0,0 +1,16 @@ +import os +import datetime +import sys + +def application(environ, start_response): + output = datetime.datetime.now().strftime("%Y-%m-%d %I:%M:%S %p") + output += "\n\nPython: " + output += sys.version + output += "\n\nENV Variables:\n\n" + for param in os.environ.keys(): + output += param + output += "\t" + output += os.environ[param] + output += "\n" + start_response('200 OK', [('Content-type', 'text/plain')]) + return [s.encode('utf8') for s in output] -- cgit