PyHodl  0.2.6
Framework to download, update, analyze and plot your crypto-transactions. Completely off-line and security-oriented.
pyhodl.utils.lists Namespace Reference

Functions

def get_full_lists (big_dict)
 
def replace_items (lst, old, new)
 
def middle (lst)
 
def do_any_are_in (candidates, bucket)
 

Function Documentation

def pyhodl.utils.lists.do_any_are_in (   candidates,
  bucket 
)
:param candidates: [] of *
    List of objects
:param bucket: [] of *
    List of objects
:return: bool
    True iff any object of the first list is in bucket
def pyhodl.utils.lists.get_full_lists (   big_dict)
:param big_dict: {}
    Dict of similar dicts with varying keys
:return: {} of {}
    Big dict of dicts with same keys (the dates).
def pyhodl.utils.lists.middle (   lst)
:param lst: [] of *
    List
:return: *
    Object in the middle. In case of ambiguity, take the first one
def pyhodl.utils.lists.replace_items (   lst,
  old,
  new 
)
:param lst: []
    List of items
:param old: obj
    Object to substitute
:param new: obj
    New object to put in place
:return: []
    List of items