You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by pd...@apache.org on 2020/04/30 05:11:29 UTC

[openwhisk-test] branch master updated: Add a simple python app for testing (#12)

This is an automated email from the ASF dual-hosted git repository.

pdesai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-test.git


The following commit(s) were added to refs/heads/master by this push:
     new e7bcc41  Add a simple python app for testing (#12)
e7bcc41 is described below

commit e7bcc41eea4a09c99420a6c7058710ffda20629a
Author: Will Plusnick <pw...@users.noreply.github.com>
AuthorDate: Thu Apr 30 00:11:23 2020 -0500

    Add a simple python app for testing (#12)
---
 packages/helloMorse/__main__.py      | 22 ++++++++++++++++++++++
 packages/helloMorse/requirements.txt |  1 +
 2 files changed, 23 insertions(+)

diff --git a/packages/helloMorse/__main__.py b/packages/helloMorse/__main__.py
new file mode 100644
index 0000000..25c7d46
--- /dev/null
+++ b/packages/helloMorse/__main__.py
@@ -0,0 +1,22 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+from morse3 import Morse
+
+def main(params):
+    hello = "Hello, World!"
+    return {'morseGreeting': Morse(hello).stringToMorse()}
diff --git a/packages/helloMorse/requirements.txt b/packages/helloMorse/requirements.txt
new file mode 100644
index 0000000..79d5e46
--- /dev/null
+++ b/packages/helloMorse/requirements.txt
@@ -0,0 +1 @@
+morse3