pyflyby 1.10.1__cp311-cp311-manylinux_2_24_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.

Potentially problematic release.


This version of pyflyby might be problematic. Click here for more details.

Files changed (55) hide show
  1. pyflyby/__init__.py +61 -0
  2. pyflyby/__main__.py +9 -0
  3. pyflyby/_autoimp.py +2229 -0
  4. pyflyby/_cmdline.py +548 -0
  5. pyflyby/_comms.py +221 -0
  6. pyflyby/_dbg.py +1367 -0
  7. pyflyby/_docxref.py +379 -0
  8. pyflyby/_dynimp.py +154 -0
  9. pyflyby/_fast_iter_modules.cpython-311-x86_64-linux-gnu.so +0 -0
  10. pyflyby/_file.py +771 -0
  11. pyflyby/_flags.py +230 -0
  12. pyflyby/_format.py +186 -0
  13. pyflyby/_idents.py +227 -0
  14. pyflyby/_import_sorting.py +165 -0
  15. pyflyby/_importclns.py +658 -0
  16. pyflyby/_importdb.py +680 -0
  17. pyflyby/_imports2s.py +643 -0
  18. pyflyby/_importstmt.py +723 -0
  19. pyflyby/_interactive.py +2113 -0
  20. pyflyby/_livepatch.py +793 -0
  21. pyflyby/_log.py +104 -0
  22. pyflyby/_modules.py +641 -0
  23. pyflyby/_parse.py +1381 -0
  24. pyflyby/_py.py +2166 -0
  25. pyflyby/_saveframe.py +1145 -0
  26. pyflyby/_saveframe_reader.py +471 -0
  27. pyflyby/_util.py +458 -0
  28. pyflyby/_version.py +7 -0
  29. pyflyby/autoimport.py +20 -0
  30. pyflyby/etc/pyflyby/canonical.py +10 -0
  31. pyflyby/etc/pyflyby/common.py +27 -0
  32. pyflyby/etc/pyflyby/forget.py +10 -0
  33. pyflyby/etc/pyflyby/mandatory.py +10 -0
  34. pyflyby/etc/pyflyby/numpy.py +156 -0
  35. pyflyby/etc/pyflyby/std.py +335 -0
  36. pyflyby/importdb.py +19 -0
  37. pyflyby/libexec/pyflyby/colordiff +34 -0
  38. pyflyby/libexec/pyflyby/diff-colorize +148 -0
  39. pyflyby/share/emacs/site-lisp/pyflyby.el +108 -0
  40. pyflyby-1.10.1.data/scripts/collect-exports +76 -0
  41. pyflyby-1.10.1.data/scripts/collect-imports +58 -0
  42. pyflyby-1.10.1.data/scripts/find-import +38 -0
  43. pyflyby-1.10.1.data/scripts/list-bad-xrefs +34 -0
  44. pyflyby-1.10.1.data/scripts/prune-broken-imports +34 -0
  45. pyflyby-1.10.1.data/scripts/pyflyby-diff +34 -0
  46. pyflyby-1.10.1.data/scripts/reformat-imports +27 -0
  47. pyflyby-1.10.1.data/scripts/replace-star-imports +37 -0
  48. pyflyby-1.10.1.data/scripts/saveframe +299 -0
  49. pyflyby-1.10.1.data/scripts/tidy-imports +163 -0
  50. pyflyby-1.10.1.data/scripts/transform-imports +47 -0
  51. pyflyby-1.10.1.dist-info/METADATA +591 -0
  52. pyflyby-1.10.1.dist-info/RECORD +55 -0
  53. pyflyby-1.10.1.dist-info/WHEEL +5 -0
  54. pyflyby-1.10.1.dist-info/entry_points.txt +4 -0
  55. pyflyby-1.10.1.dist-info/licenses/LICENSE.txt +23 -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] = []
pyflyby/__main__.py ADDED
@@ -0,0 +1,9 @@
1
+ # pyflyby/__main__.py
2
+ # Copyright (C) 2014, 2015 Karl Chen.
3
+ # License: MIT http://opensource.org/licenses/MIT
4
+
5
+
6
+
7
+ if __name__ == "__main__":
8
+ from pyflyby._py import py_main
9
+ py_main()