def my_public_method(): """ A test public method. """ # Test if we have access to the global properties. NAMESPACE = get_global_property('APP_NAME') + "." + __name__ print('{}: Module accessed.'.format(NAMESPACE))
# ; Data Table ; # ;------------; # {{{1 columns = [TableColumn(field="time", title="Time", formatter=DateFormatter(format="%m/%d/%Y %H:%M")), TableColumn(field="open", title="Open"), TableColumn(field="high", title="High"), TableColumn(field="low", title="Low"), TableColumn(field="close", title="Close"), TableColumn(field="volume", title="Volume")] # }}}1 # Intro print('\nGeneric Python CLI Application | {} | v{}\n'.format( get_global_property('APP_NAME'), get_global_property('APP_VERSION'))) # Test utilities. utils.my_public_method() utils.IO.my_public_method() # Test indicators. indicators.my_public_method() indicators.MA.my_public_method() print(';\npandas version: {}'.format(pd.__version__)) print('numpy version : {}'.format(np.__version__)) print('bokeh version : {}\n;'.format(bokeh_version)) # ;----;