7 from sys
import version_info
as _swig_python_version_info
9 if __package__
or "." in __name__:
15 import builtins
as __builtin__
21 strthis =
"proxy of " + self.this.__repr__()
22 except __builtin__.Exception:
24 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
27 def _swig_setattr_nondynamic_instance_variable(set):
28 def set_instance_attr(self, name, value):
30 set(self, name, value)
31 elif name ==
"thisown":
33 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
34 set(self, name, value)
36 raise AttributeError(
"You cannot add instance attributes to %s" % self)
37 return set_instance_attr
40 def _swig_setattr_nondynamic_class_variable(set):
41 def set_class_attr(cls, name, value):
42 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
45 raise AttributeError(
"You cannot add class attributes to %s" % cls)
49 def _swig_add_metaclass(metaclass):
50 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
52 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56 class _SwigNonDynamicMeta(type):
57 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
58 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
61 class SwigPyIterator(object):
62 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
64 def __init__(self, *args, **kwargs):
65 raise AttributeError(
"No constructor defined - class is abstract")
67 __swig_destroy__ = _core.delete_SwigPyIterator
70 return _core.SwigPyIterator_value(self)
73 return _core.SwigPyIterator_incr(self, n)
76 return _core.SwigPyIterator_decr(self, n)
78 def distance(self, x):
79 return _core.SwigPyIterator_distance(self, x)
82 return _core.SwigPyIterator_equal(self, x)
85 return _core.SwigPyIterator_copy(self)
88 return _core.SwigPyIterator_next(self)
91 return _core.SwigPyIterator___next__(self)
94 return _core.SwigPyIterator_previous(self)
97 return _core.SwigPyIterator_advance(self, n)
100 return _core.SwigPyIterator___eq__(self, x)
103 return _core.SwigPyIterator___ne__(self, x)
105 def __iadd__(self, n):
106 return _core.SwigPyIterator___iadd__(self, n)
108 def __isub__(self, n):
109 return _core.SwigPyIterator___isub__(self, n)
111 def __add__(self, n):
112 return _core.SwigPyIterator___add__(self, n)
114 def __sub__(self, *args):
115 return _core.SwigPyIterator___sub__(self, *args)
120 _core.SwigPyIterator_swigregister(SwigPyIterator)
121 MAX_ROWS = _core.MAX_ROWS
122 SHOW_ROWS = _core.SHOW_ROWS
123 DataType_Unknown = _core.DataType_Unknown
124 DataType_String = _core.DataType_String
125 DataType_Integer = _core.DataType_Integer
126 DataType_Double = _core.DataType_Double
128 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
129 __repr__ = _swig_repr
132 _core.DataTable_swiginit(self, _core.new_DataTable())
135 return _core.DataTable_csv_read(self, *args)
138 return _core.DataTable_csv_write(self)
141 return _core.DataTable_tsv_read(self, *args)
144 return _core.DataTable_json_read(self, *args)
146 def datetime(self, column_name, extract_year=True, extract_month=True, extract_time=False):
147 return _core.DataTable_datetime(self, column_name, extract_year, extract_month, extract_time)
149 def sort(self, sort_columns, ascending=True):
150 return _core.DataTable_sort(self, sort_columns, ascending)
153 return _core.DataTable_group_by(self, group_by_columns)
156 return _core.DataTable_first(self, groups)
159 return _core.DataTable_describe(self)
162 return _core.DataTable_str_to_int(self, src)
165 return _core.DataTable_str_to_double(self, src)
168 return _core.DataTable_display(self, display_all)
169 __swig_destroy__ = _core.delete_DataTable
172 _core.DataTable_swigregister(DataTable)
175 WARNING = _core.WARNING
177 CONSOLE = _core.CONSOLE
178 FILE_ONLY = _core.FILE_ONLY
179 CONSOLE_AND_FILE = _core.CONSOLE_AND_FILE
181 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
182 __repr__ = _swig_repr
185 return _core.TypeCast_convert(self)
188 _core.TypeCast_swiginit(self, _core.new_TypeCast())
189 __swig_destroy__ = _core.delete_TypeCast
192 _core.TypeCast_swigregister(TypeCast)
194 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
195 __repr__ = _swig_repr
198 _core.Logger_swiginit(self, _core.new_Logger(level, useTimestamp))
199 __swig_destroy__ = _core.delete_Logger
202 return _core.Logger_setLogLevel(self, level)
205 return _core.Logger_enableTimestamps(self, enable)
208 return _core.Logger_setLogDestination(self, destination)
211 return _core.Logger_setLogFile(self, logFile)
213 def log(self, level, message):
214 return _core.Logger_log(self, level, message)
217 _core.Logger_swigregister(Logger)
219 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
220 __repr__ = _swig_repr
223 _core.Misc_swiginit(self, _core.new_Misc())
224 __swig_destroy__ = _core.delete_Misc
227 _core.Misc_swigregister(Misc)
def csv_read(self, *args)
def group_by(self, group_by_columns)
def tsv_read(self, *args)
def sort(self, sort_columns, ascending=True)
def datetime(self, column_name, extract_year=True, extract_month=True, extract_time=False)
def json_read(self, *args)
def str_to_int(self, src)
def display(self, display_all=False)
def str_to_double(self, src)
def log(self, level, message)
def __init__(self, level=INFO, useTimestamp=True)
def setLogLevel(self, level)
def enableTimestamps(self, enable)
def setLogDestination(self, destination)
def setLogFile(self, logFile)