pyflyby 1.10.4__cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyflyby/__init__.py +61 -0
- pyflyby/__main__.py +9 -0
- pyflyby/_autoimp.py +2228 -0
- pyflyby/_cmdline.py +591 -0
- pyflyby/_comms.py +221 -0
- pyflyby/_dbg.py +1383 -0
- pyflyby/_dynimp.py +154 -0
- pyflyby/_fast_iter_modules.cpython-312-x86_64-linux-gnu.so +0 -0
- pyflyby/_file.py +771 -0
- pyflyby/_flags.py +230 -0
- pyflyby/_format.py +186 -0
- pyflyby/_idents.py +227 -0
- pyflyby/_import_sorting.py +165 -0
- pyflyby/_importclns.py +658 -0
- pyflyby/_importdb.py +535 -0
- pyflyby/_imports2s.py +643 -0
- pyflyby/_importstmt.py +723 -0
- pyflyby/_interactive.py +2113 -0
- pyflyby/_livepatch.py +793 -0
- pyflyby/_log.py +107 -0
- pyflyby/_modules.py +646 -0
- pyflyby/_parse.py +1396 -0
- pyflyby/_py.py +2165 -0
- pyflyby/_saveframe.py +1145 -0
- pyflyby/_saveframe_reader.py +471 -0
- pyflyby/_util.py +458 -0
- pyflyby/_version.py +8 -0
- pyflyby/autoimport.py +20 -0
- pyflyby/etc/pyflyby/canonical.py +10 -0
- pyflyby/etc/pyflyby/common.py +27 -0
- pyflyby/etc/pyflyby/forget.py +10 -0
- pyflyby/etc/pyflyby/mandatory.py +10 -0
- pyflyby/etc/pyflyby/numpy.py +156 -0
- pyflyby/etc/pyflyby/std.py +335 -0
- pyflyby/importdb.py +19 -0
- pyflyby/libexec/pyflyby/colordiff +34 -0
- pyflyby/libexec/pyflyby/diff-colorize +148 -0
- pyflyby/share/emacs/site-lisp/pyflyby.el +112 -0
- pyflyby-1.10.4.data/scripts/collect-exports +76 -0
- pyflyby-1.10.4.data/scripts/collect-imports +58 -0
- pyflyby-1.10.4.data/scripts/find-import +38 -0
- pyflyby-1.10.4.data/scripts/prune-broken-imports +34 -0
- pyflyby-1.10.4.data/scripts/pyflyby-diff +34 -0
- pyflyby-1.10.4.data/scripts/reformat-imports +27 -0
- pyflyby-1.10.4.data/scripts/replace-star-imports +37 -0
- pyflyby-1.10.4.data/scripts/saveframe +299 -0
- pyflyby-1.10.4.data/scripts/tidy-imports +170 -0
- pyflyby-1.10.4.data/scripts/transform-imports +47 -0
- pyflyby-1.10.4.dist-info/METADATA +605 -0
- pyflyby-1.10.4.dist-info/RECORD +53 -0
- pyflyby-1.10.4.dist-info/WHEEL +6 -0
- pyflyby-1.10.4.dist-info/entry_points.txt +4 -0
- pyflyby-1.10.4.dist-info/licenses/LICENSE.txt +19 -0
pyflyby/__init__.py
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# pyflyby/__init__.py.
|
|
2
|
+
# Copyright (C) 2011, 2012, 2013, 2014, 2015, 2018 Karl Chen.
|
|
3
|
+
# License: MIT http://opensource.org/licenses/MIT
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
from pyflyby._autoimp import (auto_eval, auto_import,
|
|
8
|
+
find_missing_imports)
|
|
9
|
+
from pyflyby._dynimp import add_import
|
|
10
|
+
from pyflyby._dbg import (add_debug_functions_to_builtins,
|
|
11
|
+
attach_debugger, debug_on_exception,
|
|
12
|
+
debug_statement, debugger,
|
|
13
|
+
enable_exception_handler_debugger,
|
|
14
|
+
enable_faulthandler,
|
|
15
|
+
enable_signal_handler_debugger,
|
|
16
|
+
print_traceback, remote_print_stack)
|
|
17
|
+
from pyflyby._file import Filename
|
|
18
|
+
from pyflyby._flags import CompilerFlags
|
|
19
|
+
from pyflyby._importdb import ImportDB
|
|
20
|
+
from pyflyby._imports2s import (canonicalize_imports,
|
|
21
|
+
reformat_import_statements,
|
|
22
|
+
remove_broken_imports,
|
|
23
|
+
replace_star_imports,
|
|
24
|
+
transform_imports)
|
|
25
|
+
from pyflyby._importstmt import (Import, ImportStatement,
|
|
26
|
+
NonImportStatementError)
|
|
27
|
+
from pyflyby._interactive import (disable_auto_importer,
|
|
28
|
+
enable_auto_importer,
|
|
29
|
+
install_in_ipython_config_file,
|
|
30
|
+
load_ipython_extension,
|
|
31
|
+
unload_ipython_extension)
|
|
32
|
+
from pyflyby._livepatch import livepatch, xreload
|
|
33
|
+
from pyflyby._log import logger
|
|
34
|
+
from pyflyby._modules import rebuild_import_cache
|
|
35
|
+
from pyflyby._parse import PythonBlock, PythonStatement
|
|
36
|
+
from pyflyby._saveframe import saveframe
|
|
37
|
+
from pyflyby._saveframe_reader \
|
|
38
|
+
import SaveframeReader
|
|
39
|
+
from pyflyby._version import __version__
|
|
40
|
+
|
|
41
|
+
# Deprecated:
|
|
42
|
+
from pyflyby._dbg import (breakpoint, debug_exception,
|
|
43
|
+
debug_statement,
|
|
44
|
+
enable_exception_handler,
|
|
45
|
+
enable_signal_handler_breakpoint,
|
|
46
|
+
waitpoint)
|
|
47
|
+
|
|
48
|
+
from typing import Sequence
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
# Promote the function & classes that we've chosen to expose publicly to be
|
|
52
|
+
# known as pyflyby.Foo instead of pyflyby._module.Foo.
|
|
53
|
+
for x in list(globals().values()):
|
|
54
|
+
if getattr(x, "__module__", "").startswith("pyflyby."):
|
|
55
|
+
x.__module__ = "pyflyby"
|
|
56
|
+
del x
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
# Discourage "from pyflyby import *".
|
|
60
|
+
# Use the tidy-imports/autoimporter instead!
|
|
61
|
+
__all__:Sequence[str] = []
|