Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults Str Str body Assign NameStore ListLoad For NameStore NameLoad body For NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad ClassDef bases body Assign NameStore NameLoad Assign NameStore TupleLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str Dict With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list Assign NameStore TupleLoad Str Str Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases NameLoad NameLoad NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad NameLoad NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore TupleLoad Str Str Str ClassDef bases body Assign NameStore TupleLoad Str Assign NameStore Call NameLoad Call NameLoad BinOpAdd NameLoad NameLoad Assign NameStore TupleLoad Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword Num keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Num keyword NameLoad keyword NameLoad keyword NameLoad keyword Call NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad keyword Num keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Num keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Num keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Num keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Num keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict For NameStore NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad attr NameLoad Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return Dict With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad NameLoad orelse With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Continue Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore ListLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr orelse Assign NameStore ListLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad Num AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad orelse If UnaryOpNot NameLoad body Assign TupleStore NameStore NameStore TupleLoad Num NameLoad Assign NameStore Call NameLoad NameLoad NameLoad orelse If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore SubscriptLoad Call NameLoad NameLoad Index Num Assign NameStore Call NameLoad Call NameLoad BinOpAdd NameLoad Num Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore ListLoad If NameLoad body Assign NameStore Call NameLoad NameLoad AugAssignSub NameStore Call NameLoad NameLoad Assign NameStore BinOpAdd SubscriptLoad Call NameLoad NameLoad Index Num Num Assign NameStore BinOpAdd NameLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore BinOpAdd AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Num Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Str AttributeLoad NameLoad attr Dict Str Str Str Str Str NameLoad Str Str Dict Str ListLoad Dict Str Str Str Str Str Str Str Str Str Str NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr orelse Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str Dict Str Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Dict Index AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad NameLoad orelse With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Call AttributeLoad Str attr AttributeLoad NameLoad attr ListLoad Dict Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad NameLoad orelse With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr BinOpAdd ListLoad NameLoad ListComp Call AttributeLoad Str attr NameLoad comprehension NameStore NameLoad decorator_list Assign NameStore Dict For NameStore NameLoad body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict For NameStore Call NameLoad Call AttributeLoad NameLoad attr body For NameStore SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore NameLoad Index NameLoad Dict Str ListLoad Dict Str Call NameLoad ListLoad NameLoad Dict Str Str Dict Str NameLoad Assign NameStore BinOpSub NameLoad Num While CompareGtE NameLoad Num body If CompareIn NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str attr Dict Str ListComp Dict Str NameLoad comprehension NameStore SubscriptLoad NameLoad Index NameLoad Break AugAssignSub NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad NameLoad orelse With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListComp AttributeLoad AttributeLoad NameLoad attr attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict For NameStore NameLoad body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad Call AttributeLoad NameLoad attr body For NameStore SubscriptLoad NameLoad Index NameLoad body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad Dict Str ListLoad Dict Str NameLoad Dict Str Str Dict Str NameLoad Assign NameStore BinOpSub NameLoad Num While CompareGtE NameLoad Num body If CompareIn NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str attr Dict Str ListComp Dict Str NameLoad comprehension NameStore SubscriptLoad NameLoad Index NameLoad Break AugAssignSub NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad NameLoad orelse With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body ImportFrom alias ImportFrom alias Assign NameStore ListLoad If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareIn Str NameLoad body If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Dict Str NameLoad Assign NameStore Call NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body For NameStore NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Continue TryExcept body Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Expr Call Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad NameLoad orelse With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body ImportFrom alias ImportFrom alias Assign NameStore Dict Assign NameStore Call NameLoad ListComp AttributeLoad AttributeLoad NameLoad attr attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If NameLoad body For NameStore NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Continue TryExcept body Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Expr Call Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad For NameStore Call NameLoad NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad NameLoad orelse With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Assign NameStore Dict For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict attr AttributeLoad NameLoad attr Dict Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body ClassDef bases body Assign NameStore Str Assign NameStore ListLoad Str Str Assign NameStore TupleLoad decorator_list Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword TupleLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad ClassDef bases body Assign NameStore Str Assign NameStore TupleLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body If CompareNotEq AttributeLoad NameLoad attr Str body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return ListLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body If CompareIn AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse Return Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse Return Str decorator_list NameLoad decorator_list ClassDef bases NameLoad NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad ClassDef bases body Assign NameStore ListLoad Str Str Assign NameStore TupleLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num keyword Num keyword NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return SubscriptLoad NameLoad Index AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A json N/A logging N/A os N/A re N/A socket N/A salt.cloud N/A yaml django.conf settings django.contrib.contenttypes.fields GenericRelation django.core.cache cache django.db models transaction django.core.files.base ContentFile django.core.files.storage FileSystemStorage django.utils.timezone now django_extensions.db.models TimeStampedModel TitleSlugDescriptionModel guardian.shortcuts get_users_with_perms model_utils Choices model_utils.models StatusModel stackdio.core.fields DeletingFileField stackdio.core.utils recursive_update stackdio.api.cloud.models SecurityGroup N/A PROTOCOL_CHOICES N/A N/A tcp TCP N/A udp UDP N/A icmp ICMP N/A logger N/A N/A logging getLogger __name__ N/A HOST_INDEX_PATTERN N/A N/A re compile .*-.*-(\d+) get_hostnames_from_hostdefs N/A N/A hostdefs username namespace N/A N/A N/A hostnames N/A N/A hostdef hostdefs N/A N/A i N/A xrange N/A hostdef count N/A N/A N/A N/A hostnames append N/A N/A N/A hostdef hostname_template format namespace namespace username username index i N/A hostnames N/A StackCreationException N/A Exception N/A __init__ N/A N/A self errors N/A args kwargs N/A N/A N/A self errors errors N/A N/A N/A N/A super StackCreationException self __init__ args kwargs N/A N/A Level N/A object N/A N/A DEBUG DEBUG N/A INFO INFO N/A WARN WARNING N/A ERROR ERROR N/A StatusDetailModel N/A StatusModel N/A N/A status_detail N/A N/A models TextField blank True Meta N/A N/A N/A abstract True N/A default_permissions N/A N/A set_status N/A N/A self status detail N/A N/A N/A N/A self status status N/A N/A self status_detail detail N/A N/A N/A self save N/A N/A StackQuerySet N/A N/A models QuerySet N/A create N/A N/A self N/A kwargs N/A N/A new_properties N/A N/A kwargs pop properties N/A N/A N/A N/A transaction atomic using N/A self db N/A N/A stack N/A N/A N/A super StackQuerySet self create kwargs N/A properties N/A N/A stack blueprint properties N/A N/A recursive_update properties new_properties N/A N/A stack properties properties N/A N/A N/A stack create_security_groups N/A N/A N/A stack create_hosts N/A stack N/A N/A N/A _stack_model_permissions N/A create admin N/A _stack_object_permissions N/A launch view update ssh provision orchestrate execute start stop terminate delete admin N/A stack_storage N/A FileSystemStorage location N/A N/A N/A os path join N/A settings FILE_STORAGE_DIRECTORY stacks get_local_file_path N/A N/A instance filename N/A N/A N/A N/A N/A {0}-{1}/{2} format N/A instance pk N/A instance slug filename N/A get_orchestrate_file_path N/A N/A instance filename N/A N/A N/A N/A N/A {0}-{1}/formulas/__stackdio__/{2} format N/A instance pk N/A instance slug filename N/A Stack N/A TimeStampedModel TitleSlugDescriptionModel StatusModel N/A N/A PENDING pending N/A LAUNCHING launching N/A CONFIGURING configuring N/A SYNCING syncing N/A PROVISIONING provisioning N/A ORCHESTRATING orchestrating N/A FINALIZING finalizing N/A FINISHED finished N/A DESTROYING destroying N/A STARTING starting N/A STOPPING stopping N/A TERMINATING terminating N/A EXECUTING_ACTION executing_action N/A ERROR error N/A SAFE_STATES N/A FINISHED ERROR N/A OK ok N/A RUNNING running N/A REBOOTING rebooting N/A STATUS N/A Choices PENDING LAUNCHING CONFIGURING SYNCING PROVISIONING ORCHESTRATING FINALIZING DESTROYING FINISHED STARTING STOPPING TERMINATING EXECUTING_ACTION ERROR N/A model_permissions _stack_model_permissions N/A object_permissions _stack_object_permissions N/A searchable_fields N/A title description history__status_detail Meta N/A N/A N/A ordering N/A title N/A default_permissions N/A tuple N/A set N/A _stack_model_permissions _stack_object_permissions N/A unique_together N/A title N/A N/A blueprint N/A N/A models ForeignKey blueprints.Blueprint related_name stacks N/A formula_versions N/A GenericRelation formulas.FormulaVersion N/A labels N/A GenericRelation core.Label N/A namespace N/A N/A models CharField Namespace max_length 64 N/A create_users N/A N/A models BooleanField Create SSH Users N/A map_file N/A DeletingFileField max_length 255 upload_to get_local_file_path null True blank True default None storage stack_storage N/A top_file N/A DeletingFileField max_length 255 null True blank True default None storage N/A FileSystemStorage location N/A N/A settings STACKDIO_CONFIG salt_core_states N/A orchestrate_file N/A DeletingFileField max_length 255 upload_to get_orchestrate_file_path null True blank True default None storage stack_storage N/A global_orchestrate_file N/A DeletingFileField max_length 255 upload_to get_orchestrate_file_path null True blank True default None storage stack_storage N/A pillar_file N/A DeletingFileField max_length 255 upload_to get_local_file_path null True blank True default None storage stack_storage N/A global_pillar_file N/A DeletingFileField max_length 255 upload_to get_local_file_path null True blank True default None storage stack_storage N/A props_file N/A DeletingFileField max_length 255 upload_to get_local_file_path null True blank True default None storage stack_storage N/A objects N/A N/A StackQuerySet as_manager __unicode__ N/A N/A self N/A N/A N/A N/A N/A {0} (id={1}) format N/A self title N/A self id N/A set_status N/A N/A self event status detail level N/A N/A Level INFO N/A N/A N/A self status status N/A N/A N/A self save N/A N/A N/A N/A self history create event event status status status_detail detail level level N/A get_driver_hosts_map N/A N/A self host_ids N/A None N/A N/A 
        Stacks are comprised of multiple hosts. Each host may be
        located in different cloud accounts. This method returns
        a map of the underlying driver implementation and the hosts
        that running in the account.

        @param host_ids (list); a list of primary keys for the hosts
            we're interested in
        @returns (dict); each key is a provider driver implementation
            with QuerySet value for the matching host objects
         N/A host_queryset N/A N/A self get_hosts host_ids N/A accounts N/A N/A h host_queryset N/A N/A N/A N/A N/A N/A accounts setdefault N/A N/A h get_account N/A append h N/A result N/A N/A N/A account hosts N/A N/A accounts items N/A N/A N/A result N/A N/A N/A account get_driver N/A N/A host_queryset filter id__in N/A N/A h id N/A h hosts N/A result N/A get_hosts N/A N/A self host_ids N/A None N/A N/A 
        Quick way of getting all hosts or a subset for this stack.

        @host_ids (list); list of primary keys of hosts in this stack
        @returns (QuerySet);
         N/A N/A host_ids N/A N/A N/A N/A N/A self hosts all N/A N/A N/A N/A self hosts filter id__in host_ids N/A get_formulas N/A N/A self N/A N/A N/A N/A N/A N/A self blueprint get_formulas N/A get_tags N/A N/A self N/A N/A N/A tags N/A N/A label N/A N/A N/A self labels all N/A N/A N/A tags N/A N/A label key N/A label value N/A N/A tags N/A stack_id N/A self id N/A N/A Name tags N/A N/A N/A tags N/A Name N/A tags N/A properties N/A N/A self N/A N/A N/A N/A N/A self props_file N/A N/A N/A N/A N/A open N/A N/A self props_file path r f N/A N/A N/A N/A json load f N/A property properties N/A N/A self props N/A N/A N/A props_json N/A N/A json dumps props indent 4 N/A N/A N/A self props_file N/A N/A N/A N/A N/A self props_file save stack.props N/A ContentFile props_json N/A N/A N/A open N/A N/A self props_file path w f N/A N/A N/A N/A f write props_json N/A N/A properties setter create_security_groups N/A N/A self N/A N/A N/A hostdef N/A N/A N/A N/A self blueprint host_definitions all N/A N/A sg_name N/A N/A stackdio-managed-{0}-stack-{1} format N/A hostdef slug N/A self pk N/A sg_description stackd.io managed security group N/A account N/A N/A hostdef cloud_image account N/A N/A N/A account create_security_groups N/A N/A N/A N/A logger debug N/A N/A Skipping creation of {0} because security group creation is turned off for the account format sg_name N/A N/A driver N/A N/A account get_driver N/A N/A N/A sg_id N/A N/A driver create_security_group sg_name sg_description delete_if_exists True N/A N/A N/A Exception N/A e N/A N/A err_msg N/A N/A Error creating security group: {0} format N/A str e N/A N/A N/A self set_status create_security_groups N/A self ERROR err_msg N/A Level ERROR N/A N/A N/A logger debug N/A N/A Created security group {0}: {1} format sg_name sg_id N/A access_rule N/A N/A N/A hostdef access_rules all N/A N/A N/A N/A driver authorize_security_group sg_id N/A protocol from_port to_port rule N/A access_rule protocol N/A access_rule from_port N/A access_rule to_port N/A access_rule rule N/A N/A N/A N/A self security_groups create account account blueprint_host_definition hostdef name sg_name description sg_description group_id sg_id is_managed True N/A create_hosts N/A N/A self host_definition count backfill N/A None None False N/A N/A 
        Creates host objects on this Stack. If no arguments are given, then
        all hosts available based on the Stack's blueprint host definitions
        will be created. If args are given, then only the `count` for the
        given `host_definition` will be created.

        @param host_definition (BlueprintHostDefinition object); the host
            definition to use for creating new hosts. If None, all host
            definitions for the stack's blueprint will be used.
        @param count (int); the number of hosts to create. If None, all
            hosts will be created.
        @param backfill (bool); If True, then hosts will be created with
            hostnames that fill in any gaps if necessary. If False, then
            hostnames will start at the end of the host list. This is only
            used when `host_definition` and `count` arguments are provided.
         N/A created_hosts N/A N/A N/A host_definition None N/A N/A host_definitions N/A N/A N/A N/A self blueprint host_definitions all N/A N/A host_definitions N/A host_definition N/A hostdef host_definitions N/A N/A hosts N/A N/A N/A self hosts all N/A N/A count None N/A N/A N/A start end N/A 0 N/A hostdef count N/A indexes N/A range start end N/A N/A N/A hosts N/A N/A N/A start end N/A 0 count N/A indexes N/A range start end N/A N/A backfill N/A N/A hosts N/A N/A hosts order_by index N/A host_indexes N/A set N/A N/A h index N/A h hosts N/A last_index N/A N/A sorted host_indexes N/A -1 N/A expected_indexes N/A set N/A range N/A last_index 1 N/A gaps N/A expected_indexes host_indexes N/A indexes N/A N/A gaps N/A N/A indexes N/A list gaps N/A count N/A len indexes N/A start N/A N/A N/A sorted host_indexes N/A -1 1 N/A end N/A start count N/A indexes N/A range start end N/A N/A start N/A N/A N/A N/A N/A hosts order_by -index N/A 0 index 1 N/A end N/A start count N/A indexes N/A xrange start end N/A components N/A N/A N/A hostdef formula_components all N/A i indexes N/A N/A hostname N/A N/A N/A hostdef hostname_template format namespace N/A self namespace index i N/A kwargs N/A dict index i cloud_image N/A hostdef cloud_image blueprint_host_definition hostdef instance_size N/A hostdef size hostname hostname sir_price N/A hostdef spot_price state N/A Host PENDING N/A N/A N/A N/A hostdef cloud_image account vpc_enabled N/A N/A N/A kwargs N/A subnet_id N/A hostdef subnet_id N/A N/A N/A kwargs N/A availability_zone N/A hostdef zone N/A host N/A N/A N/A self hosts create kwargs N/A account N/A N/A host cloud_image account N/A account_groups N/A set N/A list N/A N/A N/A account security_groups filter is_default True N/A N/A N/A N/A host security_groups add account_groups N/A N/A account create_security_groups N/A N/A security_group N/A N/A N/A SecurityGroup objects get stack self blueprint_host_definition hostdef N/A N/A N/A N/A host security_groups add security_group N/A N/A N/A N/A host formula_components add components N/A volumedef N/A N/A N/A hostdef volumes all N/A N/A N/A N/A N/A self volumes create host host snapshot N/A volumedef snapshot hostname hostname device N/A volumedef device mount_point N/A volumedef mount_point N/A N/A N/A created_hosts append host N/A created_hosts N/A generate_cloud_map N/A N/A self N/A N/A N/A master N/A N/A socket getfqdn N/A images N/A N/A hosts N/A N/A N/A self hosts all N/A cluster_size N/A len hosts N/A host hosts N/A N/A cloud_account N/A N/A host cloud_image account N/A cloud_account_yaml N/A N/A N/A yaml safe_load N/A cloud_account yaml N/A N/A cloud_account slug N/A roles N/A N/A c sls_path N/A c N/A N/A N/A host formula_components all N/A instance_size N/A N/A host instance_size title N/A security_groups N/A set N/A N/A sg group_id N/A sg N/A N/A N/A host security_groups all N/A volumes N/A N/A N/A host volumes all N/A domain N/A cloud_account_yaml N/A append_domain N/A fqdn N/A N/A {0}.{1} format N/A host hostname domain N/A map_volumes N/A N/A vol volumes N/A N/A v N/A device mount_point filesystem_type type N/A vol device N/A vol mount_point N/A N/A vol snapshot filesystem_type gp2 N/A N/A vol volume_id N/A N/A N/A v N/A volume_id N/A vol volume_id N/A N/A N/A v N/A snapshot N/A N/A vol snapshot snapshot_id N/A N/A N/A map_volumes append v N/A host_metadata N/A name minion size securitygroupid volumes delvol_on_destroy del_all_vols_on_destroy N/A host hostname N/A master log_level log_level_logfile mine_functions grains master debug debug N/A grains.items N/A N/A roles stack_id fqdn domain cluster_size stack_pillar_file volumes cloud_account cloud_image namespace roles N/A int N/A self pk fqdn domain cluster_size N/A N/A self pillar_file path map_volumes N/A N/A N/A host cloud_image account slug N/A N/A host cloud_image slug N/A self namespace instance_size N/A list security_groups map_volumes True True N/A N/A cloud_account vpc_enabled N/A N/A N/A host_metadata N/A subnetid N/A host subnet_id N/A N/A N/A host_metadata N/A availability_zone N/A N/A host availability_zone title N/A N/A host sir_price N/A N/A N/A host_metadata N/A spot_config N/A spot_price N/A str N/A host sir_price N/A N/A N/A N/A images setdefault N/A N/A host cloud_image slug N/A N/A N/A host hostname host_metadata N/A images N/A generate_map_file N/A N/A self N/A N/A N/A images N/A N/A self generate_cloud_map N/A map_file_yaml N/A N/A yaml safe_dump images default_flow_style False N/A N/A N/A self map_file N/A N/A N/A N/A N/A self map_file save stack.map N/A ContentFile map_file_yaml N/A N/A N/A open N/A N/A self map_file path w f N/A N/A N/A N/A f write map_file_yaml N/A generate_top_file N/A N/A self N/A N/A N/A top_file_data N/A base N/A N/A N/A G@stack_id:{0} format N/A self pk N/A N/A match compound core.* N/A top_file_yaml N/A N/A yaml safe_dump top_file_data default_flow_style False N/A N/A N/A self top_file N/A N/A N/A N/A N/A self top_file save N/A N/A stack_{0}_top.sls format N/A self pk N/A ContentFile top_file_yaml N/A N/A N/A open N/A N/A self top_file path w f N/A N/A N/A N/A f write top_file_yaml N/A generate_orchestrate_file N/A N/A self N/A N/A N/A hosts N/A N/A N/A self hosts all N/A stack_target N/A N/A G@stack_id:{0} format N/A self pk _matcher N/A N/A sls_set N/A N/A N/A N/A N/A  and  join N/A N/A stack_target N/A N/A N/A G@roles:{0} format i N/A i sls_set N/A N/A groups N/A N/A host hosts N/A N/A component N/A N/A N/A host formula_components all N/A N/A N/A N/A N/A N/A groups setdefault N/A component order N/A set add N/A component sls_path N/A orchestrate N/A N/A order N/A sorted N/A N/A groups keys N/A N/A role N/A groups N/A order N/A N/A N/A orchestrate N/A role N/A salt.state N/A N/A tgt N/A _matcher N/A role N/A tgt_type compound N/A sls role N/A depend N/A order 1 N/A N/A depend 0 N/A N/A N/A depend N/A N/A groups keys N/A N/A N/A N/A N/A N/A orchestrate N/A role N/A salt.state append N/A require N/A N/A salt req N/A req N/A groups N/A depend N/A N/A depend 1 N/A yaml_data N/A N/A yaml safe_dump orchestrate default_flow_style False N/A N/A N/A self orchestrate_file N/A N/A N/A N/A N/A self orchestrate_file save orchestrate.sls N/A ContentFile yaml_data N/A N/A N/A open N/A N/A self orchestrate_file path w f N/A N/A N/A N/A f write yaml_data N/A generate_global_orchestrate_file N/A N/A self N/A N/A N/A accounts N/A set N/A N/A N/A host cloud_image account N/A host N/A N/A N/A self hosts all N/A orchestrate N/A N/A account accounts N/A N/A target N/A N/A G@stack_id:{0} and G@cloud_account:{1} format N/A self id N/A account slug N/A groups N/A N/A component N/A N/A N/A account formula_components all N/A N/A N/A N/A N/A N/A groups setdefault N/A component order N/A set add N/A component sls_path N/A order N/A sorted N/A N/A groups keys N/A N/A role N/A groups N/A order N/A N/A state_title N/A N/A {0}_{1} format N/A account slug role N/A N/A orchestrate N/A state_title N/A salt.state N/A N/A tgt target N/A tgt_type compound N/A sls role N/A depend N/A order 1 N/A N/A depend 0 N/A N/A N/A depend N/A N/A groups keys N/A N/A N/A N/A N/A N/A orchestrate N/A role N/A salt.state append N/A require N/A N/A salt req N/A req N/A groups N/A depend N/A N/A depend 1 N/A yaml_data N/A N/A yaml safe_dump orchestrate default_flow_style False N/A N/A N/A self global_orchestrate_file N/A N/A N/A N/A N/A self global_orchestrate_file save global_orchestrate.sls N/A ContentFile yaml_data N/A N/A N/A open N/A N/A self global_orchestrate_file path w f N/A N/A N/A N/A f write yaml_data N/A generate_pillar_file N/A N/A self update_formulas N/A False N/A stackdio.api.formulas.models FormulaVersion stackdio.api.formulas.tasks update_formula N/A users N/A N/A N/A self create_users N/A N/A user_permissions_map N/A get_users_with_perms self attach_perms True with_superusers True with_group_users True N/A N/A user perms N/A N/A user_permissions_map items N/A N/A N/A ssh_stack perms N/A N/A N/A N/A user settings public_key N/A N/A N/A N/A logger debug N/A N/A Granting {0} ssh permission to stack: {1} format N/A user username N/A self title N/A N/A N/A users append N/A username public_key id N/A user username N/A N/A user settings public_key N/A user id N/A N/A N/A N/A logger debug N/A N/A User {0} has ssh permission for stack {1}, but has no public key.  Skipping. format N/A user username N/A self title N/A pillar_props N/A __stackdio__ N/A users users N/A formulas N/A set N/A host N/A N/A N/A self hosts all N/A N/A N/A N/A formulas update N/A N/A c formula N/A c N/A N/A N/A host formula_components all N/A update_formulas N/A N/A formula formulas N/A N/A N/A formula private_git_repo N/A N/A N/A N/A logger debug N/A N/A Skipping private formula: {0} format N/A formula uri N/A N/A N/A N/A version N/A N/A N/A N/A self formula_versions get formula formula version N/A N/A N/A N/A FormulaVersion DoesNotExist N/A N/A version N/A formula default_version N/A N/A N/A N/A update_formula si N/A formula id None version raise_exception False N/A formula formulas N/A N/A N/A recursive_update pillar_props N/A formula properties N/A N/A recursive_update pillar_props N/A self properties N/A pillar_file_yaml N/A N/A yaml safe_dump pillar_props default_flow_style False N/A N/A N/A self pillar_file N/A N/A N/A N/A N/A self pillar_file save stack.pillar N/A ContentFile pillar_file_yaml N/A N/A N/A open N/A N/A self pillar_file path w f N/A N/A N/A N/A f write pillar_file_yaml N/A generate_global_pillar_file N/A N/A self update_formulas N/A False N/A stackdio.api.formulas.models FormulaVersion stackdio.api.formulas.tasks update_formula N/A pillar_props N/A N/A accounts N/A set N/A N/A N/A host cloud_image account N/A host N/A N/A N/A self hosts all N/A global_formulas N/A N/A account accounts N/A N/A N/A N/A global_formulas extend N/A N/A account get_formulas N/A update_formulas N/A N/A formula global_formulas N/A N/A N/A formula private_git_repo N/A N/A N/A N/A logger debug N/A N/A Skipping private formula: {0} format N/A formula uri N/A N/A N/A N/A version N/A N/A N/A N/A self formula_versions get formula formula version N/A N/A N/A N/A FormulaVersion DoesNotExist N/A N/A version N/A formula default_version N/A N/A N/A N/A update_formula si N/A formula id None version raise_exception False N/A formula N/A set global_formulas N/A N/A N/A recursive_update pillar_props N/A formula properties N/A account accounts N/A N/A N/A recursive_update pillar_props N/A account global_orchestration_properties N/A pillar_file_yaml N/A N/A yaml safe_dump pillar_props default_flow_style False N/A N/A N/A self global_pillar_file N/A N/A N/A N/A N/A self global_pillar_file save stack.global_pillar N/A ContentFile pillar_file_yaml N/A N/A N/A open N/A N/A self global_pillar_file path w f N/A N/A N/A N/A f write pillar_file_yaml N/A query_hosts N/A N/A self force N/A False N/A N/A 
        Uses salt-cloud to query all the hosts for the given stack id.
         N/A CACHE_KEY salt-cloud-full-query N/A cached_result N/A N/A cache get CACHE_KEY N/A N/A cached_result N/A force N/A N/A N/A N/A logger debug salt-cloud query result cached N/A result cached_result N/A N/A N/A N/A logger debug salt-cloud query result not cached, retrieving N/A N/A N/A logger info N/A N/A get_hosts_info: {0!r} format self N/A salt_cloud N/A N/A N/A salt cloud CloudClient N/A N/A settings STACKDIO_CONFIG salt_cloud_config N/A result N/A N/A salt_cloud full_query N/A N/A N/A cache set CACHE_KEY result 60 N/A host_result N/A N/A host N/A N/A N/A self hosts all N/A N/A account N/A N/A host get_account N/A provider N/A account provider N/A host_map N/A N/A N/A N/A result get N/A account slug N/A get N/A provider name N/A N/A N/A host_result N/A N/A host hostname N/A N/A host_map get N/A host hostname None N/A host_result N/A get_root_directory N/A N/A self N/A N/A N/A N/A self map_file N/A N/A N/A N/A N/A os path dirname N/A N/A self map_file path N/A N/A self props_file N/A N/A N/A N/A N/A os path dirname N/A N/A self props_file path N/A None N/A get_log_directory N/A N/A self N/A N/A N/A root_dir N/A N/A self get_root_directory N/A log_dir N/A N/A N/A os path join root_dir logs N/A N/A N/A N/A N/A os path isdir log_dir N/A N/A N/A N/A os makedirs log_dir N/A log_dir N/A get_security_groups N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A SecurityGroup objects filter is_managed True hosts__stack self distinct N/A get_role_list N/A N/A self N/A N/A N/A roles N/A set N/A bhd N/A N/A N/A N/A self blueprint host_definitions all N/A N/A formula_component N/A N/A N/A bhd formula_components all N/A N/A N/A N/A roles add N/A formula_component sls_path N/A N/A list roles N/A N/A StackHistory N/A TimeStampedModel StatusDetailModel N/A Meta N/A N/A N/A verbose_name_plural stack history N/A ordering N/A -created -id N/A default_permissions N/A N/A N/A STATUS N/A Stack STATUS N/A stack N/A N/A models ForeignKey Stack related_name history N/A event N/A N/A models CharField max_length 128 N/A level N/A N/A models CharField max_length 16 choices N/A N/A N/A Level DEBUG N/A Level DEBUG N/A N/A Level INFO N/A Level INFO N/A N/A Level WARN N/A Level WARN N/A N/A Level ERROR N/A Level ERROR N/A StackCommand N/A TimeStampedModel StatusModel N/A N/A WAITING waiting N/A RUNNING running N/A FINISHED finished N/A ERROR error N/A STATUS N/A Choices WAITING RUNNING FINISHED ERROR Meta N/A N/A N/A verbose_name_plural stack actions N/A default_permissions N/A N/A N/A stack N/A N/A models ForeignKey Stack related_name commands N/A start N/A N/A models DateTimeField Start Time blank True default now N/A host_target N/A N/A models CharField Host Target max_length 255 N/A command N/A N/A models TextField Command N/A std_out_storage N/A N/A models TextField N/A std_err_storage N/A N/A models TextField std_out N/A N/A self N/A N/A N/A N/A N/A self std_out_storage N/A N/A N/A N/A json loads N/A self std_out_storage N/A N/A N/A N/A property std_err N/A N/A self N/A N/A N/A N/A self std_err_storage N/A property submit_time N/A N/A self N/A N/A N/A N/A self created N/A property start_time N/A N/A self N/A N/A N/A N/A N/A self status N/A N/A self RUNNING N/A self FINISHED N/A N/A N/A self start N/A N/A N/A property finish_time N/A N/A self N/A N/A N/A N/A N/A self status N/A self FINISHED N/A N/A N/A self modified N/A N/A N/A property N/A Host N/A TimeStampedModel StatusDetailModel N/A N/A PENDING pending N/A OK ok N/A DELETING deleting N/A STATUS N/A Choices PENDING OK DELETING Meta N/A N/A N/A ordering N/A blueprint_host_definition -index N/A default_permissions N/A N/A N/A stack N/A N/A models ForeignKey Stack related_name hosts N/A cloud_image N/A N/A models ForeignKey cloud.CloudImage related_name hosts N/A instance_size N/A N/A models ForeignKey cloud.CloudInstanceSize related_name hosts N/A availability_zone N/A N/A models ForeignKey cloud.CloudZone null True related_name hosts N/A subnet_id N/A N/A models CharField Subnet ID max_length 32 blank True default N/A blueprint_host_definition N/A N/A models ForeignKey blueprints.BlueprintHostDefinition related_name hosts N/A hostname N/A N/A models CharField Hostname max_length 64 N/A index N/A N/A models IntegerField Index N/A security_groups N/A N/A models ManyToManyField cloud.SecurityGroup related_name hosts N/A state N/A N/A models CharField State max_length 32 default unknown N/A state_reason N/A N/A models CharField State Reason max_length 255 default blank True N/A provider_dns N/A N/A models CharField Provider DNS max_length 64 blank True N/A provider_private_dns N/A N/A models CharField Provider Private DNS max_length 64 blank True N/A provider_private_ip N/A N/A models CharField Provider Private IP Address max_length 64 blank True N/A fqdn N/A N/A models CharField FQDN max_length 255 blank True N/A instance_id N/A N/A models CharField Instance ID max_length 32 blank True N/A sir_id N/A N/A models CharField SIR ID max_length 32 default unknown N/A sir_price N/A N/A models DecimalField Spot Price max_digits 5 decimal_places 2 null True __unicode__ N/A N/A self N/A N/A N/A N/A self hostname N/A provider_metadata N/A N/A self N/A N/A N/A metadata N/A N/A N/A self stack query_hosts N/A N/A metadata N/A N/A self hostname N/A property formula_components N/A N/A self N/A N/A N/A N/A N/A self blueprint_host_definition formula_components N/A property get_account N/A N/A self N/A N/A N/A N/A N/A self cloud_image account N/A get_provider N/A N/A self N/A N/A N/A N/A N/A N/A self get_account provider N/A get_driver N/A N/A self N/A N/A N/A N/A N/A N/A self cloud_image get_driver N/A N/A