Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Import alias Import alias FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Return DictComp NameLoad Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Import alias Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore DictComp NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad TryFinally body Return Call NameLoad NameLoad NameLoad finalbody Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr TryFinally body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd ListLoad Str Str NameLoad finalbody Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args defaults vararg kwarg body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad body Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call NameLoad Call AttributeLoad NameLoad attr decorator_list
N/A N/A functools N/A itertools N/A luigi N/A luigi.task_register N/A luigi.cmdline_parser luigi.cmdline_parser CmdlineParser luigi six N/A os N/A unittest skipOnTravis N/A N/A reason N/A N/A N/A N/A N/A unittest skipIf N/A N/A N/A os getenv TRAVIS true reason N/A with_config N/A object N/A N/A 
    Decorator to override config settings for the length of a function.

    Usage:

    .. code-block: python

        >>> import luigi.configuration
        >>> @with_config({'foo': {'bar': 'baz'}})
        ... def my_test():
        ...     print(luigi.configuration.get_config().get("foo", "bar"))
        ...
        >>> my_test()
        baz
        >>> @with_config({'hoo': {'bar': 'buz'}})
        ... @with_config({'foo': {'bar': 'baz'}})
        ... def my_test():
        ...     print(luigi.configuration.get_config().get("foo", "bar"))
        ...     print(luigi.configuration.get_config().get("hoo", "bar"))
        ...
        >>> my_test()
        baz
        buz
        >>> @with_config({'foo': {'bar': 'buz'}})
        ... @with_config({'foo': {'bar': 'baz'}})
        ... def my_test():
        ...     print(luigi.configuration.get_config().get("foo", "bar"))
        ...
        >>> my_test()
        baz
        >>> @with_config({'foo': {'bur': 'buz'}})
        ... @with_config({'foo': {'bar': 'baz'}})
        ... def my_test():
        ...     print(luigi.configuration.get_config().get("foo", "bar"))
        ...     print(luigi.configuration.get_config().get("foo", "bur"))
        ...
        >>> my_test()
        baz
        buz
        >>> @with_config({'foo': {'bur': 'buz'}})
        ... @with_config({'foo': {'bar': 'baz'}}, replace_sections=True)
        ... def my_test():
        ...     print(luigi.configuration.get_config().get("foo", "bar"))
        ...     print(luigi.configuration.get_config().get("foo", "bur", "no_bur"))
        ...
        >>> my_test()
        baz
        no_bur

     __init__ N/A N/A self config replace_sections N/A False N/A N/A N/A self config config N/A N/A self replace_sections replace_sections N/A _make_dict N/A N/A self old_dict N/A N/A N/A N/A self replace_sections N/A N/A N/A N/A old_dict update N/A self config N/A old_dict get_section N/A N/A sec N/A N/A N/A old_sec N/A N/A old_dict get sec N/A N/A new_sec N/A N/A N/A self config get sec N/A N/A N/A N/A old_sec update new_sec N/A old_sec N/A N/A all_sections N/A N/A itertools chain N/A N/A old_dict keys N/A N/A N/A self config keys N/A N/A sec N/A get_section sec N/A sec all_sections N/A __call__ N/A N/A self fun N/A N/A wrapper N/A N/A N/A args kwargs N/A N/A luigi.configuration N/A orig_conf N/A N/A N/A N/A luigi configuration LuigiConfigParser instance N/A new_conf N/A N/A N/A luigi configuration LuigiConfigParser N/A N/A N/A N/A luigi configuration LuigiConfigParser _instance new_conf N/A orig_dict N/A k N/A dict N/A N/A orig_conf items k N/A k N/A N/A orig_conf sections N/A new_dict N/A N/A self _make_dict orig_dict N/A N/A section settings N/A N/A six iteritems new_dict N/A N/A N/A N/A new_conf add_section section N/A N/A name value N/A N/A six iteritems settings N/A N/A N/A N/A new_conf set section name value N/A N/A N/A N/A fun args kwargs N/A N/A N/A N/A N/A luigi configuration LuigiConfigParser _instance orig_conf N/A N/A N/A functools wraps fun N/A wrapper N/A N/A RunOnceTask N/A N/A luigi Task N/A __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super RunOnceTask self __init__ args kwargs N/A N/A self comp False N/A complete N/A N/A self N/A N/A N/A N/A self comp N/A run N/A N/A self N/A N/A N/A N/A self comp True N/A N/A LuigiTestCase N/A N/A unittest TestCase N/A N/A 
    Tasks registred within a test case will get unregistered in a finalizer
     setUp N/A N/A self N/A N/A N/A N/A N/A N/A super LuigiTestCase self setUp N/A N/A self _stashed_reg N/A N/A N/A N/A luigi task_register Register _get_reg N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A N/A luigi task_register Register _set_reg N/A self _stashed_reg N/A N/A N/A N/A super LuigiTestCase self tearDown N/A run_locally N/A N/A self args N/A N/A N/A  Helper for running tests testing more of the stack, the command
        line parsing and task from name intstantiation parts in particular.  N/A temp N/A CmdlineParser _instance N/A N/A N/A N/A CmdlineParser _instance None N/A run_exit_status N/A N/A luigi run N/A N/A --local-scheduler --no-lock args N/A N/A N/A CmdlineParser _instance temp N/A run_exit_status N/A run_locally_split N/A N/A self space_seperated_args N/A N/A N/A  Helper for running tests testing more of the stack, the command
        line parsing and task from name intstantiation parts in particular.  N/A N/A N/A self run_locally N/A N/A space_seperated_args split N/A N/A parsing N/A object N/A N/A 
    Convenient decorator for test cases to set the parsing environment.
     __init__ N/A N/A self cmds N/A N/A N/A N/A self cmds cmds N/A __call__ N/A N/A self fun N/A N/A wrapper N/A N/A N/A args kwargs N/A N/A N/A N/A CmdlineParser global_instance N/A self cmds allow_override True N/A N/A N/A fun args kwargs N/A N/A N/A functools wraps fun N/A wrapper N/A N/A in_parse N/A N/A cmds deferred_computation N/A N/A N/A N/A N/A CmdlineParser global_instance cmds cp N/A N/A N/A deferred_computation N/A N/A cp get_task_obj N/A