Module Expr Str Import alias Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str TryExcept body Return SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Num body Expr Str Assign NameStore Str Assign NameStore Str Return Call AttributeLoad Str attr ListComp Call AttributeLoad NameLoad attr IfExp BinOpMod NameLoad Num NameLoad NameLoad comprehension NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body If Call AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Return DictComp AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr decorator_list decorator_list
N/A N/A 
chanjo.utils
~~~~~~~~~~~~~

A few general utility functions that might also be useful outside
Chanjo.
 N/A logging N/A pkg_resources N/A random N/A sys N/A click N/A logger N/A N/A logging getLogger __name__ list_get N/A N/A list_obj index default N/A None N/A N/A Like ``.get`` for list object.

    Args:
        list_obj (list): list to look up an index in
        index (int): index position to look up
        default (Optional[object]): default return value. Defaults to None.

    Returns:
        object: any object found at the index or ``default``
     N/A N/A N/A N/A list_obj N/A index N/A N/A N/A IndexError N/A N/A default N/A id_generator N/A N/A size N/A 8 N/A N/A Randomly generate an id of length N (size) we can recognize.

    Think Italian or Japanese or Native American.
    Modified from: `Stackoverflow <http://stackoverflow.com/questions/2257441>`_
    and `ActiveState <http://code.activestate.com/recipes/526619/>`_.

    Args:
        size (Optional[int]): length of id, number of characters.
                              Defaults to 8.

    Returns:
        str: randomly generated string

    Examples:

    .. code-block:: python

        >>> id_generator()
        'palevedu'
        >>> id_generator(3)
        'sun'
     N/A variables aeiou N/A consonants bdfghklmnprstvw N/A N/A N/A join N/A N/A N/A random choice N/A N/A i 2 variables consonants N/A i N/A range size N/A validate_stdin N/A N/A context param value N/A N/A N/A Validate piped input contains some data.

    Raises:
        click.BadParameter: if STDIN is empty
     N/A N/A N/A value name <stdin> N/A N/A N/A N/A N/A sys stdin isatty N/A N/A N/A N/A click BadParameter you need to pipe something to stdin N/A value N/A EntryPointsCLI N/A N/A click MultiCommand N/A N/A Add subcommands dynamically to a CLI via entry points. _iter_commands N/A N/A self N/A N/A N/A Iterate over all subcommands as defined by the entry point. N/A N/A N/A entry_point name entry_point N/A entry_point N/A N/A pkg_resources iter_entry_points chanjo.subcommands.3 N/A list_commands N/A N/A self ctx N/A N/A N/A List the available commands. N/A commands N/A N/A self _iter_commands N/A N/A N/A commands keys N/A get_command N/A N/A self ctx name N/A N/A N/A Load one of the available commands. N/A commands N/A N/A self _iter_commands N/A N/A name commands N/A N/A N/A N/A click echo N/A N/A no such command: {} format name N/A N/A N/A ctx abort N/A N/A N/A N/A commands N/A name load N/A N/A