PyHodl  0.2.8
Framework to download, update, analyze and plot your crypto-transactions. Completely off-line and security-oriented.
misc.py File Reference

Namespaces

 pyhodl.utils.misc
 

Functions

def pyhodl.utils.misc.get_actual_class_name (class_name)
 
def pyhodl.utils.misc.callable_to_str (func, args, kwargs)
 
def pyhodl.utils.misc.normalize (val, min_val, max_val, min_range=-1.0, max_range=1.0)
 
def pyhodl.utils.misc.is_nan (candidate)
 
def pyhodl.utils.misc.remove_same_coordinates (x_data, y_val)
 
def pyhodl.utils.misc.num_to_str (num, form="short")
 
def pyhodl.utils.misc.get_ratio (new, last)
 
def pyhodl.utils.misc.get_percentage (new, last)
 
def pyhodl.utils.misc.get_relative_percentage (new, last)
 
def pyhodl.utils.misc.get_relative_delta (new, last)
 
def pyhodl.utils.misc.print_balance_info (total_value, delta, percentage, last_time, color=False)
 
def pyhodl.utils.misc.color_number (number, low_color=Fore.RED, high_color=Fore.GREEN, default_color=Fore.WHITE, eps=1e-3)
 

Variables

string pyhodl.utils.misc.LONG_DEC_FORMAT = "{0:.5f}"
 
string pyhodl.utils.misc.SHORT_DEC_FORMAT = "{0:.3f}"