Module ImportFrom alias alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Num Assign NameStore Dict Assign NameStore Dict FunctionDef arguments args NameParam defaults body Expr Str If CompareIn NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Num Return SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Str Return SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIn NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad keyword NameLoad Return SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr Str Str NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad Str attr ListComp Call AttributeLoad Str attr NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad orelse If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Assign NameStore Dict Str Str NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Return ListComp Call NameLoad NameLoad NameLoad NameLoad comprehension NameStore NameLoad orelse If Call NameLoad NameLoad NameLoad body Return DictComp NameLoad Call NameLoad NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return IfExp Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr IfExp Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad body Return Call NameLoad Call NameLoad ListComp Call NameLoad NameLoad comprehension NameStore NameLoad orelse If UnaryOpNot Call NameLoad NameLoad NameLoad body Return Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Return Call NameLoad Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad While CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore ListLoad For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body If NameLoad body Expr Call NameLoad Call NameLoad NameLoad orelse Expr Call NameLoad NameLoad Return NameLoad decorator_list
N/A __future__ division unicode_literals print_function N/A re copy deepcopy hashlib sha1 types FunctionType N/A six jinja2 Template attrs AttrBase N/A BLOCKSIZE 65536 N/A FILES N/A N/A TEMPLATES N/A get_file N/A N/A filename N/A N/A N/A 
    Get file objects with caching.
     N/A N/A filename FILES N/A N/A N/A N/A N/A FILES N/A filename seek 0 N/A N/A FILES N/A filename N/A N/A FILES N/A filename N/A open filename r N/A N/A FILES N/A filename N/A get_template N/A N/A string N/A N/A N/A 
    Gets a jinja2 ``Template`` object for the input string, with caching based on the SHA1
    of the string.
     N/A cache_key N/A sha1_hash string N/A N/A cache_key TEMPLATES N/A N/A N/A TEMPLATES N/A cache_key N/A N/A TEMPLATES N/A cache_key N/A Template string keep_trailing_newline True N/A N/A TEMPLATES N/A cache_key N/A underscore N/A N/A name N/A N/A N/A 
    Transform CamelCase -> snake_case.
     N/A s1 N/A N/A re sub (.)([A-Z][a-z]+) \1_\2 name N/A N/A N/A N/A N/A re sub ([a-z0-9])([A-Z]) \1_\2 s1 lower N/A sha1_hash N/A N/A string N/A N/A N/A 
    Return the SHA1 of the input string.
     N/A hasher N/A sha1 N/A N/A N/A hasher update N/A N/A string encode N/A N/A N/A hasher hexdigest N/A make_command N/A N/A command env sudo sudo_user N/A None False None N/A N/A 
    Builds a shell command with various kwargs.
     N/A env N/A N/A env_string N/A N/A join N/A N/A N/A {0}={1} format key value N/A N/A key value N/A N/A six iteritems env N/A command N/A N/A {0} {1} format env_string command N/A command N/A N/A command replace ' \' N/A N/A sudo N/A N/A command N/A N/A sh -c '{0}' format command N/A N/A sudo_user N/A N/A command N/A N/A sudo -H -u {0} -S sh -c '{1}' format sudo_user command N/A N/A command N/A N/A sudo -H -S sh -c '{0}' format command N/A command N/A get_arg_value N/A N/A state host arg N/A N/A N/A 
    Runs string arguments through the jinja2 templating system with a state and host. Used
    to avoid string formatting in deploy operations which result in one operation per
    host/variable. By parsing the commands after we generate the ``op_hash``, multiple
    command variations can fall under one op.
     N/A N/A isinstance arg N/A six string_types N/A N/A template N/A get_template arg N/A data N/A host inventory host N/A state inventory N/A N/A N/A template render data N/A N/A N/A isinstance arg list N/A N/A N/A N/A get_arg_value state host value N/A value arg N/A N/A N/A isinstance arg dict N/A N/A N/A key N/A get_arg_value state host value N/A N/A key value N/A N/A six iteritems arg N/A arg N/A get_arg_name N/A N/A arg N/A N/A N/A 
    Returns the name or value of an argument as passed into an operation. Will use pyinfra
    attr key where available, and function names instead of references. See attrs.py for a
    more in-depth description.
     N/A N/A N/A isinstance arg AttrBase N/A arg pyinfra_attr_key N/A N/A isinstance arg FunctionType N/A arg __name__ arg N/A make_hash N/A N/A obj N/A N/A N/A 
    Make a hash from an arbitrary nested dictionary, list, tuple or set, used to generate
    ID's for operations based on their name & arguments.
     N/A N/A N/A type obj N/A set tuple list N/A N/A N/A hash N/A tuple N/A N/A make_hash e N/A e obj N/A N/A N/A N/A isinstance obj dict N/A N/A N/A hash obj N/A new_obj N/A deepcopy obj N/A N/A k v N/A N/A new_obj items N/A N/A N/A new_obj N/A k N/A make_hash v N/A N/A hash N/A tuple N/A set N/A N/A new_obj items N/A get_file_sha1 N/A N/A io N/A N/A N/A 
    Calculates the SHA1 of a file object using a buffer to handle larger files.
     N/A N/A N/A io seek 0 N/A buff N/A N/A io read BLOCKSIZE N/A hasher N/A sha1 N/A N/A N/A len buff 0 N/A N/A N/A N/A hasher update N/A N/A buff encode N/A buff N/A N/A io read BLOCKSIZE N/A N/A N/A io seek 0 N/A N/A N/A hasher hexdigest N/A read_buffer N/A N/A buff print_output print_func N/A False False N/A N/A 
    Reads a file-like buffer object into lines and optionally prints the output.
     N/A out N/A N/A line buff N/A N/A N/A N/A isinstance line N/A six text_type N/A N/A line N/A N/A line decode utf-8 N/A line N/A N/A line strip N/A N/A N/A out append line N/A print_output N/A N/A print_func N/A N/A N/A print N/A print_func line N/A N/A N/A print line N/A out N/A