changeset 27:f865bc916593

stub for type inference
author Jeff Hammel <k0scist@gmail.com>
date Tue, 07 Oct 2014 21:04:36 -0700
parents e01d84d29cd0
children 2cadb4349753
files numerics/convert.py setup.py
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/numerics/convert.py	Tue Oct 07 16:47:25 2014 -0700
+++ b/numerics/convert.py	Tue Oct 07 21:04:36 2014 -0700
@@ -1,3 +1,12 @@
+#!/usr/bin/env python
+
+"""
+convert between types
+"""
+
+import sys
+from .read import CSVParser
+
 __all__ = ['cast', 'float_or_orig']
 
 def cast(to_type, *values):
@@ -11,3 +20,9 @@
 
 def float_or_orig(*values):
     return cast(float, *values)
+
+def main(args=sys.argv[1:]):
+    """CLI"""
+
+if __name__ == '__main__':
+    main()
--- a/setup.py	Tue Oct 07 16:47:25 2014 -0700
+++ b/setup.py	Tue Oct 07 21:04:36 2014 -0700
@@ -19,6 +19,7 @@
     interpolate = numerics.interpolation:main
     plot = numerics.plot:main
     read-csv = numerics.read:main
+    types = numerics.convert:main
 """
     kw['install_requires'] = dependencies
 except ImportError: