From bcf56a2ed629a796b8873c7eac4b1ad84d29125e Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 29 May 2011 04:01:22 -0400 Subject: [PATCH] basic module --- haystack/__init__.py | 0 haystack/core.py | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 haystack/__init__.py create mode 100644 haystack/core.py diff --git a/haystack/__init__.py b/haystack/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/haystack/core.py b/haystack/core.py new file mode 100644 index 0000000..a1476be --- /dev/null +++ b/haystack/core.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- + +""" +haystack.core +~~~~~~~~~~~~~ + +This module contains the core Haystack functionality. +""" + + +from random import random + + + +def maths(*args, **kwargs): + """Does all the maths.""" + + return random() + + +def main(): + print 'Random Number: {0}'.format(maths()) + + + +if __name__ == '__main__': + main()