pyflyby
  • pyflyby API
    • _autoimp module
      • LoadSymbolError
      • ScopeStack
        • ScopeStack._abc_impl
        • ScopeStack._cached_has_star_import
        • ScopeStack._with_new_scope()
        • ScopeStack.clone_top()
        • ScopeStack.has_star_import()
        • ScopeStack.merged_to_two()
      • _ClassScope
      • _IMPORT_FAILED
      • _MissingImportFinder
        • _MissingImportFinder._NewScopeCtx()
        • _MissingImportFinder._UpScopeCtx()
        • _MissingImportFinder._check_load()
        • _MissingImportFinder._deferred_load_checks
        • _MissingImportFinder._finish_deferred_load_checks()
        • _MissingImportFinder._get_scope_info()
        • _MissingImportFinder._lineno
        • _MissingImportFinder._remove_from_missing_imports()
        • _MissingImportFinder._scan_node()
        • _MissingImportFinder._scan_unused_imports()
        • _MissingImportFinder._visit_Load()
        • _MissingImportFinder._visit_Load_defered()
        • _MissingImportFinder._visit_Load_defered_global()
        • _MissingImportFinder._visit_Load_immediate()
        • _MissingImportFinder._visit_Store()
        • _MissingImportFinder._visit_StoreImport()
        • _MissingImportFinder._visit__all__()
        • _MissingImportFinder._visit_fullname()
        • _MissingImportFinder._visit_typecomment()
        • _MissingImportFinder.find_missing_imports()
        • _MissingImportFinder.generic_visit()
        • _MissingImportFinder.missing_imports
        • _MissingImportFinder.parse_docstrings
        • _MissingImportFinder.scan_for_import_issues()
        • _MissingImportFinder.scopestack
        • _MissingImportFinder.unused_imports
        • _MissingImportFinder.visit()
        • _MissingImportFinder.visit_Assign()
        • _MissingImportFinder.visit_AsyncFunctionDef()
        • _MissingImportFinder.visit_Attribute()
        • _MissingImportFinder.visit_Call()
        • _MissingImportFinder.visit_ClassDef()
        • _MissingImportFinder.visit_Constant()
        • _MissingImportFinder.visit_Delete()
        • _MissingImportFinder.visit_Dict()
        • _MissingImportFinder.visit_DictComp()
        • _MissingImportFinder.visit_ExceptHandler()
        • _MissingImportFinder.visit_Expr()
        • _MissingImportFinder.visit_FunctionDef()
        • _MissingImportFinder.visit_GeneratorExp()
        • _MissingImportFinder.visit_ImportFrom()
        • _MissingImportFinder.visit_Lambda()
        • _MissingImportFinder.visit_ListComp()
        • _MissingImportFinder.visit_Match()
        • _MissingImportFinder.visit_MatchAs()
        • _MissingImportFinder.visit_MatchMapping()
        • _MissingImportFinder.visit_Module()
        • _MissingImportFinder.visit_Name()
        • _MissingImportFinder.visit_Pass()
        • _MissingImportFinder.visit_SetComp()
        • _MissingImportFinder.visit_alias()
        • _MissingImportFinder.visit_arg()
        • _MissingImportFinder.visit_arguments()
        • _MissingImportFinder.visit_comprehension()
        • _MissingImportFinder.visit_match_case()
      • _UseChecker
        • _UseChecker.lineno
        • _UseChecker.name
        • _UseChecker.source
        • _UseChecker.used
      • _find_earliest_backjump_label()
      • _find_loads_without_stores_in_code()
      • _find_missing_imports_in_ast()
      • _find_missing_imports_in_code()
      • _try_import()
      • auto_import_symbol()
      • clear_failed_imports_cache()
      • get_known_import()
      • load_symbol()
      • scan_for_import_issues()
      • symbol_needs_import()
      • take_arg()
    • _cmdline module
      • AbortActions
      • Exit1
      • Modifier
        • Modifier._tempfile()
        • Modifier.input_content
        • Modifier.input_content_filename
        • Modifier.output_content
        • Modifier.output_content_filename
      • _default_on_error()
      • _sigpipe_handler()
      • action_exit1()
      • action_external_command()
      • action_ifchanged()
      • action_print()
      • action_query()
      • action_replace()
      • filename_args()
      • hfmt()
      • maindoc()
      • parse_args()
      • print_version_and_exit()
      • process_actions()
      • symlink_callback()
      • symlink_error()
      • symlink_follow()
      • symlink_replace()
      • symlink_skip()
      • syntax()
    • _comms module
      • _reformat_helper()
      • _register_target()
      • collect_code_with_imports_on_top()
      • comm_close_handler()
      • comm_open_handler()
      • extract_import_statements()
      • in_jupyter()
      • initialize_comms()
      • remove_comms()
      • run_tidy_imports()
      • send_comm_message()
    • _dbg module
      • DebuggerAttachTimeoutError
      • Pty
        • Pty.communicate()
      • _DebuggerCtx()
      • _DisplayHookCtx()
      • _ExceptHookCtx()
      • _FdCtx()
      • _NoTtyError
      • _StdioCtx()
      • _abbrev_filename()
      • _debug_code()
      • _debug_exception()
      • _dev_null()
      • _dev_tty_fd()
      • _escape_for_gdb()
      • _find_py_commandline()
      • _get_caller_frame()
      • _override_excepthook()
      • _prompt_continue_waiting_for_debugger()
      • _remote_print_stack_to_file()
      • _reset_excepthook()
      • _send_email_with_attach_instructions()
      • _signal_handler_debugger()
      • _sigterm_handler()
      • _sleep_until_debugger_attaches()
      • enable_sigterm_handler()
      • get_executable()
      • inject()
      • kill_process()
      • process_exists()
      • setraw_but_sigint()
      • syscall_marker()
      • tty_is_usable()
      • wait_for_debugger_to_attach()
    • _file module
      • FilePos
        • FilePos._ONE_ONE
        • FilePos._data
        • FilePos._from_lc()
        • FilePos._intint()
        • FilePos.colno
        • FilePos.lineno
      • FileText
        • FileText._colno_to_index()
        • FileText._from_lines()
        • FileText._lineno_to_index()
        • FileText._lines
        • FileText.alter()
        • FileText.concatenate()
        • FileText.endpos
        • FileText.filename
        • FileText.from_filename()
        • FileText.joined
        • FileText.lines
        • FileText.startpos
      • UnsafeFilenameError
      • _get_PATH()
      • atomic_write_file()
      • expand_py_files_from_args()
      • read_file()
      • which()
      • write_file()
    • _flags module
      • CompilerFlags()
    • _format module
      • FormatParams
        • FormatParams._max_line_lenght_default
        • FormatParams.hanging_indent
        • FormatParams.indent
        • FormatParams.max_line_length
        • FormatParams.use_black
        • FormatParams.wrap_paren
      • fill()
      • pyfill()
    • _idents module
      • BadDottedIdentifierError
      • DottedIdentifier
        • DottedIdentifier._from_name()
        • DottedIdentifier.name
        • DottedIdentifier.parent
        • DottedIdentifier.parts
        • DottedIdentifier.prefixes
        • DottedIdentifier.scope_info
        • DottedIdentifier.startswith()
      • brace_identifiers()
      • dotted_prefixes()
      • is_identifier()
    • _importclns module
      • ConflictingImportsError
      • ImportMap
        • ImportMap._EMPTY
        • ImportMap._data
        • ImportMap._from_map()
        • ImportMap._merge()
        • ImportMap.items()
        • ImportMap.iteritems()
        • ImportMap.iterkeys()
        • ImportMap.keys()
        • ImportMap.values()
        • ImportMap.without_imports()
      • ImportSet
        • ImportSet._EMPTY
        • ImportSet._by_module_name
        • ImportSet._from_args()
        • ImportSet._from_imports()
        • ImportSet._importset
        • ImportSet.by_import_as
        • ImportSet.conflicting_imports
        • ImportSet.flags
        • ImportSet.get_statements()
        • ImportSet.imports
        • ImportSet.member_names
        • ImportSet.pretty_print()
        • ImportSet.statements
        • ImportSet.with_imports()
        • ImportSet.without_imports()
      • NoSuchImportError
    • _importdb module
      • _ancestors_on_same_partition()
      • _expand_tripledots()
      • _find_etc_dirs()
      • _get_env_var()
      • _get_python_path()
      • _get_st_dev()
    • _imports2s module
      • ImportAlreadyExistsError
      • ImportPathForRelativeImportsCtx()
      • LineNumberAmbiguousError
      • LineNumberNotFoundError
      • NoImportBlockError
      • SourceToSourceFileImportsTransformation
        • SourceToSourceFileImportsTransformation.add_import()
        • SourceToSourceFileImportsTransformation.find_import_block_by_lineno()
        • SourceToSourceFileImportsTransformation.insert_new_blocks_after_comments()
        • SourceToSourceFileImportsTransformation.insert_new_import_block()
        • SourceToSourceFileImportsTransformation.preprocess()
        • SourceToSourceFileImportsTransformation.pretty_print()
        • SourceToSourceFileImportsTransformation.remove_import()
        • SourceToSourceFileImportsTransformation.select_import_block_by_closest_prefix_match()
      • SourceToSourceImportBlockTransformation
        • SourceToSourceImportBlockTransformation.preprocess()
        • SourceToSourceImportBlockTransformation.pretty_print()
      • SourceToSourceTransformation
        • SourceToSourceTransformation._output
        • SourceToSourceTransformation.preprocess()
        • SourceToSourceTransformation.pretty_print()
      • SourceToSourceTransformationBase
        • SourceToSourceTransformationBase._from_source_code()
        • SourceToSourceTransformationBase.input
        • SourceToSourceTransformationBase.output()
        • SourceToSourceTransformationBase.preprocess()
        • SourceToSourceTransformationBase.pretty_print()
      • fix_unused_and_missing_imports()
    • _importstmt module
      • ImportFormatParams
        • ImportFormatParams.align_future
        • ImportFormatParams.align_imports
        • ImportFormatParams.from_spaces
        • ImportFormatParams.separate_from_imports
      • ImportSplit
        • ImportSplit._asdict()
        • ImportSplit._field_defaults
        • ImportSplit._fields
        • ImportSplit._make()
        • ImportSplit._replace()
        • ImportSplit.import_as
        • ImportSplit.member_name
        • ImportSplit.module_name
      • _validate_alias()
      • read_black_config()
    • _interactive module
      • AutoImporter
        • AutoImporter._advise()
        • AutoImporter._ast_transformer
        • AutoImporter._autoimported_this_cell
        • AutoImporter._construct()
        • AutoImporter._continue_enable()
        • AutoImporter._disablers
        • AutoImporter._enable_ast_hook()
        • AutoImporter._enable_completer_hooks()
        • AutoImporter._enable_completion_hook()
        • AutoImporter._enable_debugger_hook()
        • AutoImporter._enable_initializer_hooks()
        • AutoImporter._enable_internal()
        • AutoImporter._enable_ipython_shell_bugfixes()
        • AutoImporter._enable_kernel_manager_hook()
        • AutoImporter._enable_ofind_hook()
        • AutoImporter._enable_prun_hook()
        • AutoImporter._enable_reset_hook()
        • AutoImporter._enable_run_hook()
        • AutoImporter._enable_shell_hooks()
        • AutoImporter._enable_start_kernel_hook()
        • AutoImporter._enable_time_hook()
        • AutoImporter._enable_timeit_hook()
        • AutoImporter._errored
        • AutoImporter._from_app()
        • AutoImporter._ip
        • AutoImporter._safe_call()
        • AutoImporter._state
        • AutoImporter.app
        • AutoImporter.auto_import()
        • AutoImporter.compile_with_autoimport()
        • AutoImporter.complete_symbol()
        • AutoImporter.db
        • AutoImporter.disable()
        • AutoImporter.enable()
        • AutoImporter.reset_state_new_cell()
      • InterceptPrintsDuringPromptCtx()
      • NoActiveIPythonAppError
      • NoIPythonPackageError
      • UpdateIPythonStdioCtx()
      • _DummyIPythonEmbeddedApp
      • _EnableState
        • _EnableState.DISABLED
        • _EnableState.DISABLING
        • _EnableState.ENABLED
        • _EnableState.ENABLING
      • _app_is_initialized()
      • _auto_import_in_pdb_frame()
      • _enable_pdb_hooks()
      • _enable_terminal_pdb_hooks()
      • _generate_enabler_code()
      • _get_IPdb_class()
      • _get_TerminalPdb_class()
      • _get_ipython_app()
      • _get_ipython_color_scheme()
      • _get_or_create_ipython_kernel_app()
      • _get_or_create_ipython_terminal_app()
      • _get_pdb_if_is_in_pdb()
      • _initialize_and_start_app_with_autoimporter()
      • _install_in_ipython_config_file_40()
      • _ipython_in_multiline()
      • _ipython_namespaces()
      • _list_members_for_completion()
      • _python_can_import_pyflyby()
      • _skip_frames()
      • complete_symbol()
      • get_global_namespaces()
      • get_ipython_terminal_app_with_autoimporter()
      • new_IPdb_instance()
      • print_verbose_tb()
      • run_ipython_line_magic()
      • start_ipython_kernel_with_autoimporter()
      • start_ipython_with_autoimporter()
    • _livepatch module
      • Customizing behavior
      • UnknownModuleError
      • _format_age()
      • _get_definition_module()
      • _get_module_py_file()
      • _interpret_module()
      • _livepatch__class()
      • _livepatch__dict()
      • _livepatch__function()
      • _livepatch__method()
      • _livepatch__module()
      • _livepatch__object()
      • _livepatch__setattr()
      • _xreload_module()
    • _log module
      • PyflybyLogger
        • PyflybyLogger.HookCtx()
        • PyflybyLogger._LEVELS
        • PyflybyLogger.debug_enabled
        • PyflybyLogger.info_enabled
        • PyflybyLogger.set_level()
      • _PromptToolkitStdoutProxyRawCtx()
      • _PyflybyHandler
        • _PyflybyHandler.HookCtx()
        • _PyflybyHandler._interactive_prefix
        • _PyflybyHandler._logged_anything_during_context
        • _PyflybyHandler._noninteractive_prefix
        • _PyflybyHandler._pre_log_function
        • _PyflybyHandler.emit()
      • _is_interactive()
      • _is_ipython()
    • _modules module
      • ErrorDuringImportError
      • ModuleHandle
        • ModuleHandle._cls_cache
        • ModuleHandle._from_filename()
        • ModuleHandle._from_module()
        • ModuleHandle._from_modulename()
        • ModuleHandle._member_from_node()
        • ModuleHandle.ancestors
        • ModuleHandle.block
        • ModuleHandle.containing()
        • ModuleHandle.exists
        • ModuleHandle.exports
        • ModuleHandle.filename
        • ModuleHandle.list()
        • ModuleHandle.module
        • ModuleHandle.name
        • ModuleHandle.parent
        • ModuleHandle.submodules
        • ModuleHandle.text
      • _my_iter_modules()
      • import_module()
      • pyc_to_py()
    • _parse module
      • AnnotatedAst
        • AnnotatedAst.col_offset
        • AnnotatedAst.endpos
        • AnnotatedAst.flags
        • AnnotatedAst.lieneno
        • AnnotatedAst.s
        • AnnotatedAst.source_flags
        • AnnotatedAst.startpos
        • AnnotatedAst.text
        • AnnotatedAst.value
      • AnnotatedModule
        • AnnotatedModule.source_flags
      • AstNodeContext
        • AstNodeContext._asdict()
        • AstNodeContext._field_defaults
        • AstNodeContext._fields
        • AstNodeContext._make()
        • AstNodeContext._replace()
        • AstNodeContext.field
        • AstNodeContext.index
        • AstNodeContext.parent
      • IgnoreOptionsDocTestParser
        • IgnoreOptionsDocTestParser._find_options()
      • _DummyAst_Node
      • _annotate_ast_nodes()
      • _annotate_ast_startpos()
      • _ast_str_literal_value()
      • _flags_to_try()
      • _flatten_ast_nodes()
      • _is_ast_bytes()
      • _is_ast_str()
      • _is_ast_str_or_byte()
      • _is_comment_or_blank()
      • _iter_child_nodes_in_order()
      • _iter_child_nodes_in_order_internal_1()
      • _parse_ast_nodes()
      • _split_code_lines()
      • _test_parse_string_literal()
      • _walk_ast_nodes_in_order()
      • infer_compile_mode()
    • _py module
      • Invocation summary
      • Features
      • Options
      • LoggedList
        • LoggedList._ACCESSED
        • LoggedList.append()
        • LoggedList.count()
        • LoggedList.extend()
        • LoggedList.index()
        • LoggedList.insert()
        • LoggedList.pop()
        • LoggedList.remove()
        • LoggedList.reverse()
        • LoggedList.sort()
        • LoggedList.unaccessed
      • NotAFunctionError
      • ParseError
      • SysArgvCtx()
      • UnimportableNameError
      • UserExpr
        • UserExpr._infer_and_evaluate()
      • _Namespace
        • _Namespace.auto_eval()
        • _Namespace.auto_import()
      • _ParseInterruptedWantHelp
      • _ParseInterruptedWantSource
      • _PyMain
        • _PyMain._enable_debug_tools()
        • _PyMain._parse_global_opts()
        • _PyMain._pre_exit()
        • _PyMain._pre_exit_interactive_shell()
        • _PyMain._pre_exit_matplotlib_show()
        • _PyMain._run_action()
        • _PyMain._seems_like_runnable_module()
        • _PyMain.apply()
        • _PyMain.create_ipython_app()
        • _PyMain.eval()
        • _PyMain.exec_stdin()
        • _PyMain.execfile()
        • _PyMain.heuristic_cmd()
        • _PyMain.heuristic_run_module()
        • _PyMain.print_help()
        • _PyMain.print_version()
        • _PyMain.run()
        • _PyMain.run_module()
        • _PyMain.start_ipython()
      • _as_filename_if_seems_like_filename()
      • _build_function_usage_string()
      • _format_call()
      • _format_call_spec()
      • _get_argspec()
      • _get_help()
      • _get_path_links()
      • _handle_user_exception()
      • _has_python_shebang()
      • _init_virtualenv()
      • _interpret_arg_mode()
      • _interpret_output_mode()
      • _parse_auto_apply_args()
      • _requires_parens_as_function()
      • auto_apply()
      • print_result()
      • py_main()
    • _util module
      • AdviceCtx()
      • Aspect
        • Aspect._wrapper
        • Aspect.advise()
        • Aspect.unadvise()
      • CwdCtx()
      • EnvVarCtx()
      • ExcludeImplicitCwdFromPathCtx()
      • FunctionWithGlobals
      • ImportPathCtx()
      • NullCtx()
      • WrappedAttributeError
      • _WritableDictProxy
        • _WritableDictProxy.get()
      • advise()
      • cmp()
      • indent()
      • longest_common_prefix()
      • nested()
      • partition()
      • prefixes()
      • stable_unique()
pyflyby
  • Search


© Copyright 2019, Karl Chen.

Built with Sphinx using a theme provided by Read the Docs.