Module Expr Str ImportFrom alias ImportFrom alias Import alias FunctionDef arguments args NameParam defaults vararg body Expr Str With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Yield Call NameLoad BinOpAdd ListLoad NameLoad ListComp SubscriptLoad AttributeLoad NameLoad attr Index NameLoad comprehension NameStore NameLoad decorator_list NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Lambda arguments args NameParam defaults NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index NameLoad orelse Assign NameStore NameLoad Assign NameStore DictComp NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore NameLoad body If Call NameLoad NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Return DictComp NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Num Num Num keyword AttributeLoad NameLoad attr Return Call AttributeLoad BinOpSub NameLoad NameLoad attr decorator_list
N/A N/A General helper function module. contextlib contextmanager datetime datetime N/A sqlalchemy tables N/A N/A engine N/A table_names N/A N/A A context manager yielding a tuple of the database connection and
    whichever tables were requested by name from the db.

    Use:
        with tables(db, 'vcfs', 'genotypes') as (con, vcfs, genotypes):
            ...
        Where vcfs and genotypes are tables in the provided db.
     N/A N/A N/A engine connect connection N/A N/A metadata N/A N/A sqlalchemy MetaData bind connection N/A N/A N/A metadata reflect N/A N/A N/A tuple N/A N/A connection N/A N/A N/A metadata tables N/A t N/A t table_names N/A contextmanager CRUDError N/A Exception N/A N/A Represents an issue with results from a CRUD operation. __init__ N/A N/A self subject message N/A N/A N/A N/A self subject subject N/A N/A self message message N/A N/A order N/A N/A lst ordering key N/A None N/A N/A Sorts, in-place, and return lst sorted by ordering on key.

    Args:
        lst: a list to be sorted.
        ordering: a list defining an ordering on lst. All values/keyed values in
          lst must be in ordering.

    Optional Args:
        key: a string (name of attribute) or function which returns a value
          which will be ordered. If None, identity is used as the key.

    Use:
        order([132, 99, 22], ordering=[99, 22, 44, 132])
        # => [99, 22, 132]

        order([{'thing': 'bathrobe'}, {'thing': 'toga'}],
              ['toga', 'bathrobe'], key='thing')
        # => [{'thing': 'toga'}, {'thing': 'bathrobe'}]
     N/A N/A key None N/A N/A lookup N/A N/A N/A x N/A x N/A N/A N/A isinstance key basestring N/A N/A lookup N/A N/A N/A x N/A N/A x N/A key N/A N/A lookup key N/A ordering N/A name idx N/A N/A idx name N/A enumerate ordering N/A N/A N/A lst sort key N/A N/A N/A x N/A N/A ordering N/A N/A lookup x N/A lst N/A find N/A N/A iterable pred N/A N/A N/A Return first element in iterable where pred returns true, else None. N/A x iterable N/A N/A N/A pred x N/A N/A x N/A pick N/A N/A obj N/A keys N/A N/A Return an object with only the key/vals with key name in `keys`. N/A N/A key N/A obj N/A key N/A key keys N/A to_epoch N/A N/A dt N/A N/A N/A Return the epoch time representation of a datetime object, `dt`. N/A epoch N/A datetime 1970 1 1 tzinfo N/A dt tzinfo N/A N/A N/A N/A dt epoch total_seconds N/A