Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Str Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad body AugAssignAdd NameStore BinOpMult Call NameLoad NameLoad BinOpPow Num NameLoad Assign NameStore ListLoad While CompareGtE NameLoad NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Return Call AttributeLoad Str attr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str TryExcept body With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Slice Num With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Return NameLoad handlers ExceptHandler type NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Return Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Num keyword TupleLoad Str Str decorator_list
N/A __future__ unicode_literals N/A os N/A uuid N/A json N/A datetime N/A pytz N/A B58_CHARS 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz N/A B58_BASE N/A len B58_CHARS b58encode N/A N/A s N/A N/A N/A Do a base 58 encoding (alike base 64, but in 58 char only)

    From https://bitcointalk.org/index.php?topic=1026.0

    by Gavin Andresen (public domain)

     N/A value 0 N/A N/A i c N/A enumerate N/A reversed s N/A N/A value N/A N/A ord c N/A 256 i N/A result N/A N/A N/A value B58_BASE N/A N/A N/A div mod N/A divmod value B58_BASE N/A c N/A B58_CHARS N/A mod N/A N/A N/A result append c N/A value div N/A N/A N/A result append N/A B58_CHARS N/A value N/A N/A N/A join N/A reversed result N/A make_guid N/A N/A N/A N/A N/A Generate a GUID and return in base58 encoded form

     N/A uid N/A N/A N/A uuid uuid1 bytes N/A N/A b58encode uid N/A make_api_key N/A N/A size N/A 32 N/A N/A Generate a random API key, should be as random as possible
    (not predictable)

    :param size: the size in byte to generate
        note that it will be encoded in base58 manner,
        the length will be longer than the aksed size
     N/A random N/A N/A os urandom size N/A N/A b58encode random N/A round_down_cent N/A N/A amount N/A N/A N/A Round down money value in cent (drop float points), for example, 5.66666
    cents will be rounded to 5 cents

    :param amount: the money amount in cent to be rounded
    :return: the rounded money amount
     N/A N/A int amount N/A get_git_rev N/A N/A project_dir N/A None N/A N/A Get current GIT reversion if it is available, otherwise, None is
    returned

     N/A N/A project_dir None N/A N/A billy N/A pkg_dir N/A N/A N/A os path dirname N/A billy __file__ N/A N/A project_dir _ N/A N/A N/A os path split pkg_dir N/A git_dir N/A N/A N/A os path join project_dir .git N/A head_file N/A N/A N/A os path join git_dir HEAD N/A N/A N/A N/A open head_file rt f N/A N/A content N/A N/A N/A N/A f read strip N/A N/A N/A content startswith ref:  N/A N/A ref_file N/A N/A N/A os path join git_dir N/A content N/A 5 N/A N/A open ref_file rt f N/A N/A rev N/A N/A N/A N/A f read strip N/A rev N/A N/A N/A IOError N/A N/A None N/A content N/A utc_now N/A N/A N/A N/A N/A Like datetime.datetime.utcnow(), but the datetime.tzinfo will be
    pytz.utc

     N/A N/A N/A N/A datetime datetime now N/A pytz utc N/A utc_datetime N/A N/A N/A args kwargs N/A N/A Create a datetime with pytz.utc tzinfo

     N/A N/A N/A datetime datetime tzinfo N/A pytz utc args kwargs N/A dumps_pretty_json N/A N/A obj N/A N/A N/A Dump prettified json into string

     N/A N/A N/A json dumps obj sort_keys True indent 4 separators N/A , :  N/A