experimenting with new Jython
Project: http://git-wip-us.apache.org/repos/asf/incubator-sdap-ningester/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-sdap-ningester/commit/a6e6e2a0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-sdap-ningester/tree/a6e6e2a0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-sdap-ningester/diff/a6e6e2a0 Branch: refs/heads/master Commit: a6e6e2a042d7b2deb3a0ec57f868026f019dc391 Parents: d8486c3 Author: Frank Greguska <[email protected]> Authored: Tue Oct 17 09:21:57 2017 -0700 Committer: Frank Greguska <[email protected]> Committed: Tue Oct 17 09:21:57 2017 -0700 ---------------------------------------------------------------------- src/python/test/pymodule.py | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-sdap-ningester/blob/a6e6e2a0/src/python/test/pymodule.py ---------------------------------------------------------------------- diff --git a/src/python/test/pymodule.py b/src/python/test/pymodule.py new file mode 100644 index 0000000..8d61e27 --- /dev/null +++ b/src/python/test/pymodule.py @@ -0,0 +1,9 @@ + +def capitalize(value): + + return value.upper() + + +def square(value): + import numpy + return str(numpy.square(int(value))) \ No newline at end of file
