PyCG 0.0.7__tar.gz → 1.0.0__tar.gz

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.
Files changed (653) hide show
  1. pycg-1.0.0/.gitignore +29 -0
  2. pycg-1.0.0/PKG-INFO +169 -0
  3. pycg-1.0.0/README.md +155 -0
  4. pycg-1.0.0/docs/design.md +4779 -0
  5. pycg-1.0.0/docs/format.md +267 -0
  6. pycg-1.0.0/pycg/__init__.py +1 -0
  7. pycg-1.0.0/pycg/__main__.py +68 -0
  8. pycg-1.0.0/pycg/analysis/annotations.py +767 -0
  9. pycg-1.0.0/pycg/analysis/arguments.py +233 -0
  10. pycg-1.0.0/pycg/analysis/attributes.py +609 -0
  11. pycg-1.0.0/pycg/analysis/builder.py +1295 -0
  12. pycg-1.0.0/pycg/analysis/builtin_models.py +336 -0
  13. pycg-1.0.0/pycg/analysis/builtin_rules.py +946 -0
  14. pycg-1.0.0/pycg/analysis/containers.py +1146 -0
  15. pycg-1.0.0/pycg/analysis/expressions.py +856 -0
  16. pycg-1.0.0/pycg/analysis/flow.py +227 -0
  17. pycg-1.0.0/pycg/analysis/hierarchy.py +1032 -0
  18. pycg-1.0.0/pycg/analysis/imports.py +285 -0
  19. pycg-1.0.0/pycg/analysis/library.py +375 -0
  20. pycg-1.0.0/pycg/analysis/matching.py +217 -0
  21. pycg-1.0.0/pycg/analysis/model.py +425 -0
  22. pycg-1.0.0/pycg/analysis/mro.py +79 -0
  23. pycg-1.0.0/pycg/analysis/narrowing.py +512 -0
  24. pycg-1.0.0/pycg/analysis/outside.py +1236 -0
  25. pycg-1.0.0/pycg/analysis/patterns.py +278 -0
  26. pycg-1.0.0/pycg/analysis/program.py +348 -0
  27. pycg-1.0.0/pycg/analysis/protocols.py +595 -0
  28. pycg-1.0.0/pycg/analysis/reflection.py +172 -0
  29. pycg-1.0.0/pycg/analysis/scopes.py +558 -0
  30. pycg-1.0.0/pycg/analysis/semantics.py +1114 -0
  31. pycg-1.0.0/pycg/analysis/solver.py +902 -0
  32. pycg-1.0.0/pycg/analysis/stub_data/LICENSE +237 -0
  33. pycg-1.0.0/pycg/analysis/stub_data/README.md +232 -0
  34. pycg-1.0.0/pycg/analysis/stub_data/__future__.json +1 -0
  35. pycg-1.0.0/pycg/analysis/stub_data/__main__.json +1 -0
  36. pycg-1.0.0/pycg/analysis/stub_data/_ast.json +1 -0
  37. pycg-1.0.0/pycg/analysis/stub_data/_asyncio.json +1 -0
  38. pycg-1.0.0/pycg/analysis/stub_data/_bisect.json +1 -0
  39. pycg-1.0.0/pycg/analysis/stub_data/_blake2.json +1 -0
  40. pycg-1.0.0/pycg/analysis/stub_data/_bz2.json +1 -0
  41. pycg-1.0.0/pycg/analysis/stub_data/_codecs.json +1 -0
  42. pycg-1.0.0/pycg/analysis/stub_data/_collections_abc.json +1 -0
  43. pycg-1.0.0/pycg/analysis/stub_data/_colorize.json +1 -0
  44. pycg-1.0.0/pycg/analysis/stub_data/_compat_pickle.json +1 -0
  45. pycg-1.0.0/pycg/analysis/stub_data/_compression.json +1 -0
  46. pycg-1.0.0/pycg/analysis/stub_data/_contextvars.json +1 -0
  47. pycg-1.0.0/pycg/analysis/stub_data/_csv.json +1 -0
  48. pycg-1.0.0/pycg/analysis/stub_data/_ctypes.json +1 -0
  49. pycg-1.0.0/pycg/analysis/stub_data/_curses.json +1 -0
  50. pycg-1.0.0/pycg/analysis/stub_data/_curses_panel.json +1 -0
  51. pycg-1.0.0/pycg/analysis/stub_data/_dbm.json +1 -0
  52. pycg-1.0.0/pycg/analysis/stub_data/_decimal.json +1 -0
  53. pycg-1.0.0/pycg/analysis/stub_data/_frozen_importlib.json +1 -0
  54. pycg-1.0.0/pycg/analysis/stub_data/_frozen_importlib_external.json +1 -0
  55. pycg-1.0.0/pycg/analysis/stub_data/_gdbm.json +1 -0
  56. pycg-1.0.0/pycg/analysis/stub_data/_hashlib.json +1 -0
  57. pycg-1.0.0/pycg/analysis/stub_data/_heapq.json +1 -0
  58. pycg-1.0.0/pycg/analysis/stub_data/_imp.json +1 -0
  59. pycg-1.0.0/pycg/analysis/stub_data/_interpchannels.json +1 -0
  60. pycg-1.0.0/pycg/analysis/stub_data/_interpqueues.json +1 -0
  61. pycg-1.0.0/pycg/analysis/stub_data/_interpreters.json +1 -0
  62. pycg-1.0.0/pycg/analysis/stub_data/_io.json +1 -0
  63. pycg-1.0.0/pycg/analysis/stub_data/_json.json +1 -0
  64. pycg-1.0.0/pycg/analysis/stub_data/_locale.json +1 -0
  65. pycg-1.0.0/pycg/analysis/stub_data/_lsprof.json +1 -0
  66. pycg-1.0.0/pycg/analysis/stub_data/_lzma.json +1 -0
  67. pycg-1.0.0/pycg/analysis/stub_data/_markupbase.json +1 -0
  68. pycg-1.0.0/pycg/analysis/stub_data/_msi.json +1 -0
  69. pycg-1.0.0/pycg/analysis/stub_data/_multibytecodec.json +1 -0
  70. pycg-1.0.0/pycg/analysis/stub_data/_operator.json +1 -0
  71. pycg-1.0.0/pycg/analysis/stub_data/_osx_support.json +1 -0
  72. pycg-1.0.0/pycg/analysis/stub_data/_pickle.json +1 -0
  73. pycg-1.0.0/pycg/analysis/stub_data/_posixsubprocess.json +1 -0
  74. pycg-1.0.0/pycg/analysis/stub_data/_py_abc.json +1 -0
  75. pycg-1.0.0/pycg/analysis/stub_data/_pydecimal.json +1 -0
  76. pycg-1.0.0/pycg/analysis/stub_data/_queue.json +1 -0
  77. pycg-1.0.0/pycg/analysis/stub_data/_random.json +1 -0
  78. pycg-1.0.0/pycg/analysis/stub_data/_remote_debugging.json +1 -0
  79. pycg-1.0.0/pycg/analysis/stub_data/_sitebuiltins.json +1 -0
  80. pycg-1.0.0/pycg/analysis/stub_data/_socket.json +1 -0
  81. pycg-1.0.0/pycg/analysis/stub_data/_sqlite3.json +1 -0
  82. pycg-1.0.0/pycg/analysis/stub_data/_ssl.json +1 -0
  83. pycg-1.0.0/pycg/analysis/stub_data/_stat.json +1 -0
  84. pycg-1.0.0/pycg/analysis/stub_data/_struct.json +1 -0
  85. pycg-1.0.0/pycg/analysis/stub_data/_thread.json +1 -0
  86. pycg-1.0.0/pycg/analysis/stub_data/_threading_local.json +1 -0
  87. pycg-1.0.0/pycg/analysis/stub_data/_tkinter.json +1 -0
  88. pycg-1.0.0/pycg/analysis/stub_data/_tracemalloc.json +1 -0
  89. pycg-1.0.0/pycg/analysis/stub_data/_typeshed.json +1 -0
  90. pycg-1.0.0/pycg/analysis/stub_data/_warnings.json +1 -0
  91. pycg-1.0.0/pycg/analysis/stub_data/_weakref.json +1 -0
  92. pycg-1.0.0/pycg/analysis/stub_data/_weakrefset.json +1 -0
  93. pycg-1.0.0/pycg/analysis/stub_data/_winapi.json +1 -0
  94. pycg-1.0.0/pycg/analysis/stub_data/_zstd.json +1 -0
  95. pycg-1.0.0/pycg/analysis/stub_data/abc.json +1 -0
  96. pycg-1.0.0/pycg/analysis/stub_data/aifc.json +1 -0
  97. pycg-1.0.0/pycg/analysis/stub_data/annotationlib.json +1 -0
  98. pycg-1.0.0/pycg/analysis/stub_data/antigravity.json +1 -0
  99. pycg-1.0.0/pycg/analysis/stub_data/argparse.json +1 -0
  100. pycg-1.0.0/pycg/analysis/stub_data/array.json +1 -0
  101. pycg-1.0.0/pycg/analysis/stub_data/ast.json +1 -0
  102. pycg-1.0.0/pycg/analysis/stub_data/asynchat.json +1 -0
  103. pycg-1.0.0/pycg/analysis/stub_data/asyncio.json +1 -0
  104. pycg-1.0.0/pycg/analysis/stub_data/asyncore.json +1 -0
  105. pycg-1.0.0/pycg/analysis/stub_data/atexit.json +1 -0
  106. pycg-1.0.0/pycg/analysis/stub_data/audioop.json +1 -0
  107. pycg-1.0.0/pycg/analysis/stub_data/base64.json +1 -0
  108. pycg-1.0.0/pycg/analysis/stub_data/bdb.json +1 -0
  109. pycg-1.0.0/pycg/analysis/stub_data/binascii.json +1 -0
  110. pycg-1.0.0/pycg/analysis/stub_data/binhex.json +1 -0
  111. pycg-1.0.0/pycg/analysis/stub_data/bisect.json +1 -0
  112. pycg-1.0.0/pycg/analysis/stub_data/builtins.json +1 -0
  113. pycg-1.0.0/pycg/analysis/stub_data/bz2.json +1 -0
  114. pycg-1.0.0/pycg/analysis/stub_data/cProfile.json +1 -0
  115. pycg-1.0.0/pycg/analysis/stub_data/calendar.json +1 -0
  116. pycg-1.0.0/pycg/analysis/stub_data/cgi.json +1 -0
  117. pycg-1.0.0/pycg/analysis/stub_data/cgitb.json +1 -0
  118. pycg-1.0.0/pycg/analysis/stub_data/chunk.json +1 -0
  119. pycg-1.0.0/pycg/analysis/stub_data/cmath.json +1 -0
  120. pycg-1.0.0/pycg/analysis/stub_data/cmd.json +1 -0
  121. pycg-1.0.0/pycg/analysis/stub_data/code.json +1 -0
  122. pycg-1.0.0/pycg/analysis/stub_data/codecs.json +1 -0
  123. pycg-1.0.0/pycg/analysis/stub_data/codeop.json +1 -0
  124. pycg-1.0.0/pycg/analysis/stub_data/collections.json +1 -0
  125. pycg-1.0.0/pycg/analysis/stub_data/colorsys.json +1 -0
  126. pycg-1.0.0/pycg/analysis/stub_data/compileall.json +1 -0
  127. pycg-1.0.0/pycg/analysis/stub_data/compression.json +1 -0
  128. pycg-1.0.0/pycg/analysis/stub_data/concurrent.json +1 -0
  129. pycg-1.0.0/pycg/analysis/stub_data/configparser.json +1 -0
  130. pycg-1.0.0/pycg/analysis/stub_data/contextlib.json +1 -0
  131. pycg-1.0.0/pycg/analysis/stub_data/contextvars.json +1 -0
  132. pycg-1.0.0/pycg/analysis/stub_data/copy.json +1 -0
  133. pycg-1.0.0/pycg/analysis/stub_data/copyreg.json +1 -0
  134. pycg-1.0.0/pycg/analysis/stub_data/crypt.json +1 -0
  135. pycg-1.0.0/pycg/analysis/stub_data/csv.json +1 -0
  136. pycg-1.0.0/pycg/analysis/stub_data/ctypes.json +1 -0
  137. pycg-1.0.0/pycg/analysis/stub_data/curses.json +1 -0
  138. pycg-1.0.0/pycg/analysis/stub_data/dataclasses.json +1 -0
  139. pycg-1.0.0/pycg/analysis/stub_data/datetime.json +1 -0
  140. pycg-1.0.0/pycg/analysis/stub_data/dbm.json +1 -0
  141. pycg-1.0.0/pycg/analysis/stub_data/decimal.json +1 -0
  142. pycg-1.0.0/pycg/analysis/stub_data/difflib.json +1 -0
  143. pycg-1.0.0/pycg/analysis/stub_data/dis.json +1 -0
  144. pycg-1.0.0/pycg/analysis/stub_data/distutils.json +1 -0
  145. pycg-1.0.0/pycg/analysis/stub_data/doctest.json +1 -0
  146. pycg-1.0.0/pycg/analysis/stub_data/email.json +1 -0
  147. pycg-1.0.0/pycg/analysis/stub_data/encodings.json +1 -0
  148. pycg-1.0.0/pycg/analysis/stub_data/ensurepip.json +1 -0
  149. pycg-1.0.0/pycg/analysis/stub_data/enum.json +1 -0
  150. pycg-1.0.0/pycg/analysis/stub_data/errno.json +1 -0
  151. pycg-1.0.0/pycg/analysis/stub_data/faulthandler.json +1 -0
  152. pycg-1.0.0/pycg/analysis/stub_data/fcntl.json +1 -0
  153. pycg-1.0.0/pycg/analysis/stub_data/filecmp.json +1 -0
  154. pycg-1.0.0/pycg/analysis/stub_data/fileinput.json +1 -0
  155. pycg-1.0.0/pycg/analysis/stub_data/fnmatch.json +1 -0
  156. pycg-1.0.0/pycg/analysis/stub_data/fractions.json +1 -0
  157. pycg-1.0.0/pycg/analysis/stub_data/ftplib.json +1 -0
  158. pycg-1.0.0/pycg/analysis/stub_data/functools.json +1 -0
  159. pycg-1.0.0/pycg/analysis/stub_data/gc.json +1 -0
  160. pycg-1.0.0/pycg/analysis/stub_data/genericpath.json +1 -0
  161. pycg-1.0.0/pycg/analysis/stub_data/getopt.json +1 -0
  162. pycg-1.0.0/pycg/analysis/stub_data/getpass.json +1 -0
  163. pycg-1.0.0/pycg/analysis/stub_data/gettext.json +1 -0
  164. pycg-1.0.0/pycg/analysis/stub_data/glob.json +1 -0
  165. pycg-1.0.0/pycg/analysis/stub_data/graphlib.json +1 -0
  166. pycg-1.0.0/pycg/analysis/stub_data/grp.json +1 -0
  167. pycg-1.0.0/pycg/analysis/stub_data/gzip.json +1 -0
  168. pycg-1.0.0/pycg/analysis/stub_data/hashlib.json +1 -0
  169. pycg-1.0.0/pycg/analysis/stub_data/heapq.json +1 -0
  170. pycg-1.0.0/pycg/analysis/stub_data/hmac.json +1 -0
  171. pycg-1.0.0/pycg/analysis/stub_data/html.json +1 -0
  172. pycg-1.0.0/pycg/analysis/stub_data/http.json +1 -0
  173. pycg-1.0.0/pycg/analysis/stub_data/imaplib.json +1 -0
  174. pycg-1.0.0/pycg/analysis/stub_data/imghdr.json +1 -0
  175. pycg-1.0.0/pycg/analysis/stub_data/imp.json +1 -0
  176. pycg-1.0.0/pycg/analysis/stub_data/importlib.json +1 -0
  177. pycg-1.0.0/pycg/analysis/stub_data/inspect.json +1 -0
  178. pycg-1.0.0/pycg/analysis/stub_data/io.json +1 -0
  179. pycg-1.0.0/pycg/analysis/stub_data/ipaddress.json +1 -0
  180. pycg-1.0.0/pycg/analysis/stub_data/itertools.json +1 -0
  181. pycg-1.0.0/pycg/analysis/stub_data/json.json +1 -0
  182. pycg-1.0.0/pycg/analysis/stub_data/keyword.json +1 -0
  183. pycg-1.0.0/pycg/analysis/stub_data/lib2to3.json +1 -0
  184. pycg-1.0.0/pycg/analysis/stub_data/linecache.json +1 -0
  185. pycg-1.0.0/pycg/analysis/stub_data/locale.json +1 -0
  186. pycg-1.0.0/pycg/analysis/stub_data/logging.json +1 -0
  187. pycg-1.0.0/pycg/analysis/stub_data/lzma.json +1 -0
  188. pycg-1.0.0/pycg/analysis/stub_data/mailbox.json +1 -0
  189. pycg-1.0.0/pycg/analysis/stub_data/mailcap.json +1 -0
  190. pycg-1.0.0/pycg/analysis/stub_data/marshal.json +1 -0
  191. pycg-1.0.0/pycg/analysis/stub_data/math.json +1 -0
  192. pycg-1.0.0/pycg/analysis/stub_data/mimetypes.json +1 -0
  193. pycg-1.0.0/pycg/analysis/stub_data/mmap.json +1 -0
  194. pycg-1.0.0/pycg/analysis/stub_data/modulefinder.json +1 -0
  195. pycg-1.0.0/pycg/analysis/stub_data/msilib.json +1 -0
  196. pycg-1.0.0/pycg/analysis/stub_data/msvcrt.json +1 -0
  197. pycg-1.0.0/pycg/analysis/stub_data/multiprocessing.json +1 -0
  198. pycg-1.0.0/pycg/analysis/stub_data/netrc.json +1 -0
  199. pycg-1.0.0/pycg/analysis/stub_data/nis.json +1 -0
  200. pycg-1.0.0/pycg/analysis/stub_data/nntplib.json +1 -0
  201. pycg-1.0.0/pycg/analysis/stub_data/nt.json +1 -0
  202. pycg-1.0.0/pycg/analysis/stub_data/ntpath.json +1 -0
  203. pycg-1.0.0/pycg/analysis/stub_data/nturl2path.json +1 -0
  204. pycg-1.0.0/pycg/analysis/stub_data/numbers.json +1 -0
  205. pycg-1.0.0/pycg/analysis/stub_data/opcode.json +1 -0
  206. pycg-1.0.0/pycg/analysis/stub_data/operator.json +1 -0
  207. pycg-1.0.0/pycg/analysis/stub_data/optparse.json +1 -0
  208. pycg-1.0.0/pycg/analysis/stub_data/os.json +1 -0
  209. pycg-1.0.0/pycg/analysis/stub_data/ossaudiodev.json +1 -0
  210. pycg-1.0.0/pycg/analysis/stub_data/pathlib.json +1 -0
  211. pycg-1.0.0/pycg/analysis/stub_data/pdb.json +1 -0
  212. pycg-1.0.0/pycg/analysis/stub_data/pickle.json +1 -0
  213. pycg-1.0.0/pycg/analysis/stub_data/pickletools.json +1 -0
  214. pycg-1.0.0/pycg/analysis/stub_data/pipes.json +1 -0
  215. pycg-1.0.0/pycg/analysis/stub_data/pkgutil.json +1 -0
  216. pycg-1.0.0/pycg/analysis/stub_data/platform.json +1 -0
  217. pycg-1.0.0/pycg/analysis/stub_data/plistlib.json +1 -0
  218. pycg-1.0.0/pycg/analysis/stub_data/poplib.json +1 -0
  219. pycg-1.0.0/pycg/analysis/stub_data/posix.json +1 -0
  220. pycg-1.0.0/pycg/analysis/stub_data/posixpath.json +1 -0
  221. pycg-1.0.0/pycg/analysis/stub_data/pprint.json +1 -0
  222. pycg-1.0.0/pycg/analysis/stub_data/profile.json +1 -0
  223. pycg-1.0.0/pycg/analysis/stub_data/profiling.json +1 -0
  224. pycg-1.0.0/pycg/analysis/stub_data/pstats.json +1 -0
  225. pycg-1.0.0/pycg/analysis/stub_data/pty.json +1 -0
  226. pycg-1.0.0/pycg/analysis/stub_data/pwd.json +1 -0
  227. pycg-1.0.0/pycg/analysis/stub_data/py_compile.json +1 -0
  228. pycg-1.0.0/pycg/analysis/stub_data/pyclbr.json +1 -0
  229. pycg-1.0.0/pycg/analysis/stub_data/pydoc.json +1 -0
  230. pycg-1.0.0/pycg/analysis/stub_data/pydoc_data.json +1 -0
  231. pycg-1.0.0/pycg/analysis/stub_data/pyexpat.json +1 -0
  232. pycg-1.0.0/pycg/analysis/stub_data/queue.json +1 -0
  233. pycg-1.0.0/pycg/analysis/stub_data/quopri.json +1 -0
  234. pycg-1.0.0/pycg/analysis/stub_data/random.json +1 -0
  235. pycg-1.0.0/pycg/analysis/stub_data/re.json +1 -0
  236. pycg-1.0.0/pycg/analysis/stub_data/readline.json +1 -0
  237. pycg-1.0.0/pycg/analysis/stub_data/reprlib.json +1 -0
  238. pycg-1.0.0/pycg/analysis/stub_data/resource.json +1 -0
  239. pycg-1.0.0/pycg/analysis/stub_data/rlcompleter.json +1 -0
  240. pycg-1.0.0/pycg/analysis/stub_data/runpy.json +1 -0
  241. pycg-1.0.0/pycg/analysis/stub_data/sched.json +1 -0
  242. pycg-1.0.0/pycg/analysis/stub_data/secrets.json +1 -0
  243. pycg-1.0.0/pycg/analysis/stub_data/select.json +1 -0
  244. pycg-1.0.0/pycg/analysis/stub_data/selectors.json +1 -0
  245. pycg-1.0.0/pycg/analysis/stub_data/shelve.json +1 -0
  246. pycg-1.0.0/pycg/analysis/stub_data/shlex.json +1 -0
  247. pycg-1.0.0/pycg/analysis/stub_data/shutil.json +1 -0
  248. pycg-1.0.0/pycg/analysis/stub_data/signal.json +1 -0
  249. pycg-1.0.0/pycg/analysis/stub_data/site.json +1 -0
  250. pycg-1.0.0/pycg/analysis/stub_data/smtpd.json +1 -0
  251. pycg-1.0.0/pycg/analysis/stub_data/smtplib.json +1 -0
  252. pycg-1.0.0/pycg/analysis/stub_data/sndhdr.json +1 -0
  253. pycg-1.0.0/pycg/analysis/stub_data/socket.json +1 -0
  254. pycg-1.0.0/pycg/analysis/stub_data/socketserver.json +1 -0
  255. pycg-1.0.0/pycg/analysis/stub_data/spwd.json +1 -0
  256. pycg-1.0.0/pycg/analysis/stub_data/sqlite3.json +1 -0
  257. pycg-1.0.0/pycg/analysis/stub_data/sre_compile.json +1 -0
  258. pycg-1.0.0/pycg/analysis/stub_data/sre_constants.json +1 -0
  259. pycg-1.0.0/pycg/analysis/stub_data/sre_parse.json +1 -0
  260. pycg-1.0.0/pycg/analysis/stub_data/ssl.json +1 -0
  261. pycg-1.0.0/pycg/analysis/stub_data/stat.json +1 -0
  262. pycg-1.0.0/pycg/analysis/stub_data/statistics.json +1 -0
  263. pycg-1.0.0/pycg/analysis/stub_data/string.json +1 -0
  264. pycg-1.0.0/pycg/analysis/stub_data/stringprep.json +1 -0
  265. pycg-1.0.0/pycg/analysis/stub_data/struct.json +1 -0
  266. pycg-1.0.0/pycg/analysis/stub_data/subprocess.json +1 -0
  267. pycg-1.0.0/pycg/analysis/stub_data/sunau.json +1 -0
  268. pycg-1.0.0/pycg/analysis/stub_data/symtable.json +1 -0
  269. pycg-1.0.0/pycg/analysis/stub_data/sys.json +1 -0
  270. pycg-1.0.0/pycg/analysis/stub_data/sysconfig.json +1 -0
  271. pycg-1.0.0/pycg/analysis/stub_data/syslog.json +1 -0
  272. pycg-1.0.0/pycg/analysis/stub_data/tabnanny.json +1 -0
  273. pycg-1.0.0/pycg/analysis/stub_data/tarfile.json +1 -0
  274. pycg-1.0.0/pycg/analysis/stub_data/telnetlib.json +1 -0
  275. pycg-1.0.0/pycg/analysis/stub_data/tempfile.json +1 -0
  276. pycg-1.0.0/pycg/analysis/stub_data/termios.json +1 -0
  277. pycg-1.0.0/pycg/analysis/stub_data/textwrap.json +1 -0
  278. pycg-1.0.0/pycg/analysis/stub_data/third_party/Jetson.json +1 -0
  279. pycg-1.0.0/pycg/analysis/stub_data/third_party/MySQLdb.json +1 -0
  280. pycg-1.0.0/pycg/analysis/stub_data/third_party/PyInstaller.json +1 -0
  281. pycg-1.0.0/pycg/analysis/stub_data/third_party/RPi.json +1 -0
  282. pycg-1.0.0/pycg/analysis/stub_data/third_party/Xlib.json +1 -0
  283. pycg-1.0.0/pycg/analysis/stub_data/third_party/_cffi_backend.json +1 -0
  284. pycg-1.0.0/pycg/analysis/stub_data/third_party/_jsonnet.json +1 -0
  285. pycg-1.0.0/pycg/analysis/stub_data/third_party/_win32typing.json +1 -0
  286. pycg-1.0.0/pycg/analysis/stub_data/third_party/aiofiles.json +1 -0
  287. pycg-1.0.0/pycg/analysis/stub_data/third_party/antlr4.json +1 -0
  288. pycg-1.0.0/pycg/analysis/stub_data/third_party/assertpy.json +1 -0
  289. pycg-1.0.0/pycg/analysis/stub_data/third_party/atheris.json +1 -0
  290. pycg-1.0.0/pycg/analysis/stub_data/third_party/authlib.json +1 -0
  291. pycg-1.0.0/pycg/analysis/stub_data/third_party/aws_xray_sdk.json +1 -0
  292. pycg-1.0.0/pycg/analysis/stub_data/third_party/behave.json +1 -0
  293. pycg-1.0.0/pycg/analysis/stub_data/third_party/bleach.json +1 -0
  294. pycg-1.0.0/pycg/analysis/stub_data/third_party/boltons.json +1 -0
  295. pycg-1.0.0/pycg/analysis/stub_data/third_party/braintree.json +1 -0
  296. pycg-1.0.0/pycg/analysis/stub_data/third_party/bugbear.json +1 -0
  297. pycg-1.0.0/pycg/analysis/stub_data/third_party/capturer.json +1 -0
  298. pycg-1.0.0/pycg/analysis/stub_data/third_party/cffi.json +1 -0
  299. pycg-1.0.0/pycg/analysis/stub_data/third_party/channels.json +1 -0
  300. pycg-1.0.0/pycg/analysis/stub_data/third_party/chevron.json +1 -0
  301. pycg-1.0.0/pycg/analysis/stub_data/third_party/click_default_group.json +1 -0
  302. pycg-1.0.0/pycg/analysis/stub_data/third_party/click_log.json +1 -0
  303. pycg-1.0.0/pycg/analysis/stub_data/third_party/click_shell.json +1 -0
  304. pycg-1.0.0/pycg/analysis/stub_data/third_party/click_spinner.json +1 -0
  305. pycg-1.0.0/pycg/analysis/stub_data/third_party/click_web.json +1 -0
  306. pycg-1.0.0/pycg/analysis/stub_data/third_party/colorama.json +1 -0
  307. pycg-1.0.0/pycg/analysis/stub_data/third_party/colorful.json +1 -0
  308. pycg-1.0.0/pycg/analysis/stub_data/third_party/commctrl.json +1 -0
  309. pycg-1.0.0/pycg/analysis/stub_data/third_party/consolemenu.json +1 -0
  310. pycg-1.0.0/pycg/analysis/stub_data/third_party/convertdate.json +1 -0
  311. pycg-1.0.0/pycg/analysis/stub_data/third_party/croniter.json +1 -0
  312. pycg-1.0.0/pycg/analysis/stub_data/third_party/cronlog.json +1 -0
  313. pycg-1.0.0/pycg/analysis/stub_data/third_party/crontab.json +1 -0
  314. pycg-1.0.0/pycg/analysis/stub_data/third_party/crontabs.json +1 -0
  315. pycg-1.0.0/pycg/analysis/stub_data/third_party/cups.json +1 -0
  316. pycg-1.0.0/pycg/analysis/stub_data/third_party/datauri.json +1 -0
  317. pycg-1.0.0/pycg/analysis/stub_data/third_party/dateparser.json +1 -0
  318. pycg-1.0.0/pycg/analysis/stub_data/third_party/dateparser_data.json +1 -0
  319. pycg-1.0.0/pycg/analysis/stub_data/third_party/dateutil.json +1 -0
  320. pycg-1.0.0/pycg/analysis/stub_data/third_party/dde.json +1 -0
  321. pycg-1.0.0/pycg/analysis/stub_data/third_party/decorator.json +1 -0
  322. pycg-1.0.0/pycg/analysis/stub_data/third_party/defusedxml.json +1 -0
  323. pycg-1.0.0/pycg/analysis/stub_data/third_party/deprecated.json +1 -0
  324. pycg-1.0.0/pycg/analysis/stub_data/third_party/dirhash.json +1 -0
  325. pycg-1.0.0/pycg/analysis/stub_data/third_party/django_filters.json +1 -0
  326. pycg-1.0.0/pycg/analysis/stub_data/third_party/docker.json +1 -0
  327. pycg-1.0.0/pycg/analysis/stub_data/third_party/dockerfile_parse.json +1 -0
  328. pycg-1.0.0/pycg/analysis/stub_data/third_party/docutils.json +1 -0
  329. pycg-1.0.0/pycg/analysis/stub_data/third_party/editdistance.json +1 -0
  330. pycg-1.0.0/pycg/analysis/stub_data/third_party/entrypoints.json +1 -0
  331. pycg-1.0.0/pycg/analysis/stub_data/third_party/ephem.json +1 -0
  332. pycg-1.0.0/pycg/analysis/stub_data/third_party/et_xmlfile.json +1 -0
  333. pycg-1.0.0/pycg/analysis/stub_data/third_party/fanstatic.json +1 -0
  334. pycg-1.0.0/pycg/analysis/stub_data/third_party/farmhash.json +1 -0
  335. pycg-1.0.0/pycg/analysis/stub_data/third_party/first.json +1 -0
  336. pycg-1.0.0/pycg/analysis/stub_data/third_party/flake8.json +1 -0
  337. pycg-1.0.0/pycg/analysis/stub_data/third_party/flake8_builtins.json +1 -0
  338. pycg-1.0.0/pycg/analysis/stub_data/third_party/flake8_docstrings.json +1 -0
  339. pycg-1.0.0/pycg/analysis/stub_data/third_party/flake8_rst_docstrings.json +1 -0
  340. pycg-1.0.0/pycg/analysis/stub_data/third_party/flake8_simplify.json +1 -0
  341. pycg-1.0.0/pycg/analysis/stub_data/third_party/flask_cors.json +1 -0
  342. pycg-1.0.0/pycg/analysis/stub_data/third_party/flask_migrate.json +1 -0
  343. pycg-1.0.0/pycg/analysis/stub_data/third_party/flask_socketio.json +1 -0
  344. pycg-1.0.0/pycg/analysis/stub_data/third_party/gdb.json +1 -0
  345. pycg-1.0.0/pycg/analysis/stub_data/third_party/geojson.json +1 -0
  346. pycg-1.0.0/pycg/analysis/stub_data/third_party/geopandas.json +1 -0
  347. pycg-1.0.0/pycg/analysis/stub_data/third_party/gevent.json +1 -0
  348. pycg-1.0.0/pycg/analysis/stub_data/third_party/google.json +1 -0
  349. pycg-1.0.0/pycg/analysis/stub_data/third_party/greenlet.json +1 -0
  350. pycg-1.0.0/pycg/analysis/stub_data/third_party/grpc.json +1 -0
  351. pycg-1.0.0/pycg/analysis/stub_data/third_party/grpc_channelz.json +1 -0
  352. pycg-1.0.0/pycg/analysis/stub_data/third_party/grpc_health.json +1 -0
  353. pycg-1.0.0/pycg/analysis/stub_data/third_party/grpc_reflection.json +1 -0
  354. pycg-1.0.0/pycg/analysis/stub_data/third_party/grpc_status.json +1 -0
  355. pycg-1.0.0/pycg/analysis/stub_data/third_party/gunicorn.json +1 -0
  356. pycg-1.0.0/pycg/analysis/stub_data/third_party/hdbcli.json +1 -0
  357. pycg-1.0.0/pycg/analysis/stub_data/third_party/hnswlib.json +1 -0
  358. pycg-1.0.0/pycg/analysis/stub_data/third_party/html5lib.json +1 -0
  359. pycg-1.0.0/pycg/analysis/stub_data/third_party/httplib2.json +1 -0
  360. pycg-1.0.0/pycg/analysis/stub_data/third_party/httpretty.json +1 -0
  361. pycg-1.0.0/pycg/analysis/stub_data/third_party/hvac.json +1 -0
  362. pycg-1.0.0/pycg/analysis/stub_data/third_party/ibm_db.json +1 -0
  363. pycg-1.0.0/pycg/analysis/stub_data/third_party/ibm_db_ctx.json +1 -0
  364. pycg-1.0.0/pycg/analysis/stub_data/third_party/import_export.json +1 -0
  365. pycg-1.0.0/pycg/analysis/stub_data/third_party/inifile.json +1 -0
  366. pycg-1.0.0/pycg/analysis/stub_data/third_party/isapi.json +1 -0
  367. pycg-1.0.0/pycg/analysis/stub_data/third_party/jack.json +1 -0
  368. pycg-1.0.0/pycg/analysis/stub_data/third_party/jenkins.json +1 -0
  369. pycg-1.0.0/pycg/analysis/stub_data/third_party/jks.json +1 -0
  370. pycg-1.0.0/pycg/analysis/stub_data/third_party/jmespath.json +1 -0
  371. pycg-1.0.0/pycg/analysis/stub_data/third_party/jose.json +1 -0
  372. pycg-1.0.0/pycg/analysis/stub_data/third_party/jsonschema.json +1 -0
  373. pycg-1.0.0/pycg/analysis/stub_data/third_party/jwcrypto.json +1 -0
  374. pycg-1.0.0/pycg/analysis/stub_data/third_party/kafka.json +1 -0
  375. pycg-1.0.0/pycg/analysis/stub_data/third_party/keyboard.json +1 -0
  376. pycg-1.0.0/pycg/analysis/stub_data/third_party/ldap3.json +1 -0
  377. pycg-1.0.0/pycg/analysis/stub_data/third_party/lunardate.json +1 -0
  378. pycg-1.0.0/pycg/analysis/stub_data/third_party/lupa.json +1 -0
  379. pycg-1.0.0/pycg/analysis/stub_data/third_party/lzstring.json +1 -0
  380. pycg-1.0.0/pycg/analysis/stub_data/third_party/m3u8.json +1 -0
  381. pycg-1.0.0/pycg/analysis/stub_data/third_party/management.json +1 -0
  382. pycg-1.0.0/pycg/analysis/stub_data/third_party/markdown.json +1 -0
  383. pycg-1.0.0/pycg/analysis/stub_data/third_party/mmapfile.json +1 -0
  384. pycg-1.0.0/pycg/analysis/stub_data/third_party/mmsystem.json +1 -0
  385. pycg-1.0.0/pycg/analysis/stub_data/third_party/mock.json +1 -0
  386. pycg-1.0.0/pycg/analysis/stub_data/third_party/mypy_extensions.json +1 -0
  387. pycg-1.0.0/pycg/analysis/stub_data/third_party/nanoid.json +1 -0
  388. pycg-1.0.0/pycg/analysis/stub_data/third_party/nanoleafapi.json +1 -0
  389. pycg-1.0.0/pycg/analysis/stub_data/third_party/netaddr.json +1 -0
  390. pycg-1.0.0/pycg/analysis/stub_data/third_party/netifaces.json +1 -0
  391. pycg-1.0.0/pycg/analysis/stub_data/third_party/networkx.json +1 -0
  392. pycg-1.0.0/pycg/analysis/stub_data/third_party/nmap.json +1 -0
  393. pycg-1.0.0/pycg/analysis/stub_data/third_party/ntsecuritycon.json +1 -0
  394. pycg-1.0.0/pycg/analysis/stub_data/third_party/oauthlib.json +1 -0
  395. pycg-1.0.0/pycg/analysis/stub_data/third_party/objgraph.json +1 -0
  396. pycg-1.0.0/pycg/analysis/stub_data/third_party/odbc.json +1 -0
  397. pycg-1.0.0/pycg/analysis/stub_data/third_party/olefile.json +1 -0
  398. pycg-1.0.0/pycg/analysis/stub_data/third_party/openpyxl.json +1 -0
  399. pycg-1.0.0/pycg/analysis/stub_data/third_party/opentracing.json +1 -0
  400. pycg-1.0.0/pycg/analysis/stub_data/third_party/paramiko.json +1 -0
  401. pycg-1.0.0/pycg/analysis/stub_data/third_party/parsimonious.json +1 -0
  402. pycg-1.0.0/pycg/analysis/stub_data/third_party/passpy.json +1 -0
  403. pycg-1.0.0/pycg/analysis/stub_data/third_party/peewee.json +1 -0
  404. pycg-1.0.0/pycg/analysis/stub_data/third_party/pep8ext_naming.json +1 -0
  405. pycg-1.0.0/pycg/analysis/stub_data/third_party/perfmon.json +1 -0
  406. pycg-1.0.0/pycg/analysis/stub_data/third_party/pexpect.json +1 -0
  407. pycg-1.0.0/pycg/analysis/stub_data/third_party/pika.json +1 -0
  408. pycg-1.0.0/pycg/analysis/stub_data/third_party/playhouse.json +1 -0
  409. pycg-1.0.0/pycg/analysis/stub_data/third_party/polib.json +1 -0
  410. pycg-1.0.0/pycg/analysis/stub_data/third_party/pony.json +1 -0
  411. pycg-1.0.0/pycg/analysis/stub_data/third_party/portpicker.json +1 -0
  412. pycg-1.0.0/pycg/analysis/stub_data/third_party/psutil.json +1 -0
  413. pycg-1.0.0/pycg/analysis/stub_data/third_party/psycopg2.json +1 -0
  414. pycg-1.0.0/pycg/analysis/stub_data/third_party/punq.json +1 -0
  415. pycg-1.0.0/pycg/analysis/stub_data/third_party/pyasn1.json +1 -0
  416. pycg-1.0.0/pycg/analysis/stub_data/third_party/pyaudio.json +1 -0
  417. pycg-1.0.0/pycg/analysis/stub_data/third_party/pyautogui.json +1 -0
  418. pycg-1.0.0/pycg/analysis/stub_data/third_party/pycocotools.json +1 -0
  419. pycg-1.0.0/pycg/analysis/stub_data/third_party/pycurl.json +1 -0
  420. pycg-1.0.0/pycg/analysis/stub_data/third_party/pyflakes.json +1 -0
  421. pycg-1.0.0/pycg/analysis/stub_data/third_party/pygments.json +1 -0
  422. pycg-1.0.0/pycg/analysis/stub_data/third_party/pyi_splash.json +1 -0
  423. pycg-1.0.0/pycg/analysis/stub_data/third_party/pyluach.json +1 -0
  424. pycg-1.0.0/pycg/analysis/stub_data/third_party/pymeeus.json +1 -0
  425. pycg-1.0.0/pycg/analysis/stub_data/third_party/pymysql.json +1 -0
  426. pycg-1.0.0/pycg/analysis/stub_data/third_party/pynput.json +1 -0
  427. pycg-1.0.0/pycg/analysis/stub_data/third_party/pyogrio.json +1 -0
  428. pycg-1.0.0/pycg/analysis/stub_data/third_party/pyperclip.json +1 -0
  429. pycg-1.0.0/pycg/analysis/stub_data/third_party/pyphen.json +1 -0
  430. pycg-1.0.0/pycg/analysis/stub_data/third_party/pyscreeze.json +1 -0
  431. pycg-1.0.0/pycg/analysis/stub_data/third_party/pytest_lazyfixture.json +1 -0
  432. pycg-1.0.0/pycg/analysis/stub_data/third_party/python_http_client.json +1 -0
  433. pycg-1.0.0/pycg/analysis/stub_data/third_party/pythoncom.json +1 -0
  434. pycg-1.0.0/pycg/analysis/stub_data/third_party/pythonwin.json +1 -0
  435. pycg-1.0.0/pycg/analysis/stub_data/third_party/pytz.json +1 -0
  436. pycg-1.0.0/pycg/analysis/stub_data/third_party/pywintypes.json +1 -0
  437. pycg-1.0.0/pycg/analysis/stub_data/third_party/qrbill.json +1 -0
  438. pycg-1.0.0/pycg/analysis/stub_data/third_party/qrcode.json +1 -0
  439. pycg-1.0.0/pycg/analysis/stub_data/third_party/rasterio.json +1 -0
  440. pycg-1.0.0/pycg/analysis/stub_data/third_party/ratelimit.json +1 -0
  441. pycg-1.0.0/pycg/analysis/stub_data/third_party/regex.json +1 -0
  442. pycg-1.0.0/pycg/analysis/stub_data/third_party/regutil.json +1 -0
  443. pycg-1.0.0/pycg/analysis/stub_data/third_party/reportlab.json +1 -0
  444. pycg-1.0.0/pycg/analysis/stub_data/third_party/requests.json +1 -0
  445. pycg-1.0.0/pycg/analysis/stub_data/third_party/requests_oauthlib.json +1 -0
  446. pycg-1.0.0/pycg/analysis/stub_data/third_party/resampy.json +1 -0
  447. pycg-1.0.0/pycg/analysis/stub_data/third_party/retry.json +1 -0
  448. pycg-1.0.0/pycg/analysis/stub_data/third_party/rfc3339_validator.json +1 -0
  449. pycg-1.0.0/pycg/analysis/stub_data/third_party/s2clientprotocol.json +1 -0
  450. pycg-1.0.0/pycg/analysis/stub_data/third_party/scp.json +1 -0
  451. pycg-1.0.0/pycg/analysis/stub_data/third_party/seaborn.json +1 -0
  452. pycg-1.0.0/pycg/analysis/stub_data/third_party/send2trash.json +1 -0
  453. pycg-1.0.0/pycg/analysis/stub_data/third_party/serial.json +1 -0
  454. pycg-1.0.0/pycg/analysis/stub_data/third_party/servicemanager.json +1 -0
  455. pycg-1.0.0/pycg/analysis/stub_data/third_party/setuptools.json +1 -0
  456. pycg-1.0.0/pycg/analysis/stub_data/third_party/shapely.json +1 -0
  457. pycg-1.0.0/pycg/analysis/stub_data/third_party/simple_websocket.json +1 -0
  458. pycg-1.0.0/pycg/analysis/stub_data/third_party/simplejson.json +1 -0
  459. pycg-1.0.0/pycg/analysis/stub_data/third_party/singledispatch.json +1 -0
  460. pycg-1.0.0/pycg/analysis/stub_data/third_party/six.json +1 -0
  461. pycg-1.0.0/pycg/analysis/stub_data/third_party/slumber.json +1 -0
  462. pycg-1.0.0/pycg/analysis/stub_data/third_party/socks.json +1 -0
  463. pycg-1.0.0/pycg/analysis/stub_data/third_party/sockshandler.json +1 -0
  464. pycg-1.0.0/pycg/analysis/stub_data/third_party/sspicon.json +1 -0
  465. pycg-1.0.0/pycg/analysis/stub_data/third_party/str2bool.json +1 -0
  466. pycg-1.0.0/pycg/analysis/stub_data/third_party/tabulate.json +1 -0
  467. pycg-1.0.0/pycg/analysis/stub_data/third_party/tensorflow.json +1 -0
  468. pycg-1.0.0/pycg/analysis/stub_data/third_party/tgcrypto.json +1 -0
  469. pycg-1.0.0/pycg/analysis/stub_data/third_party/timer.json +1 -0
  470. pycg-1.0.0/pycg/analysis/stub_data/third_party/tinycss2.json +1 -0
  471. pycg-1.0.0/pycg/analysis/stub_data/third_party/titlecase.json +1 -0
  472. pycg-1.0.0/pycg/analysis/stub_data/third_party/toml.json +1 -0
  473. pycg-1.0.0/pycg/analysis/stub_data/third_party/toposort.json +1 -0
  474. pycg-1.0.0/pycg/analysis/stub_data/third_party/tqdm.json +1 -0
  475. pycg-1.0.0/pycg/analysis/stub_data/third_party/translationstring.json +1 -0
  476. pycg-1.0.0/pycg/analysis/stub_data/third_party/ttkthemes.json +1 -0
  477. pycg-1.0.0/pycg/analysis/stub_data/third_party/tzdata.json +1 -0
  478. pycg-1.0.0/pycg/analysis/stub_data/third_party/unidiff.json +1 -0
  479. pycg-1.0.0/pycg/analysis/stub_data/third_party/untangle.json +1 -0
  480. pycg-1.0.0/pycg/analysis/stub_data/third_party/usersettings.json +1 -0
  481. pycg-1.0.0/pycg/analysis/stub_data/third_party/uwsgi.json +1 -0
  482. pycg-1.0.0/pycg/analysis/stub_data/third_party/uwsgidecorators.json +1 -0
  483. pycg-1.0.0/pycg/analysis/stub_data/third_party/vobject.json +1 -0
  484. pycg-1.0.0/pycg/analysis/stub_data/third_party/waitress.json +1 -0
  485. pycg-1.0.0/pycg/analysis/stub_data/third_party/watchpoints.json +1 -0
  486. pycg-1.0.0/pycg/analysis/stub_data/third_party/webencodings.json +1 -0
  487. pycg-1.0.0/pycg/analysis/stub_data/third_party/webob.json +1 -0
  488. pycg-1.0.0/pycg/analysis/stub_data/third_party/webtest.json +1 -0
  489. pycg-1.0.0/pycg/analysis/stub_data/third_party/whatthepatch.json +1 -0
  490. pycg-1.0.0/pycg/analysis/stub_data/third_party/win2kras.json +1 -0
  491. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32.json +1 -0
  492. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32api.json +1 -0
  493. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32clipboard.json +1 -0
  494. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32com.json +1 -0
  495. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32comext.json +1 -0
  496. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32con.json +1 -0
  497. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32console.json +1 -0
  498. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32cred.json +1 -0
  499. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32crypt.json +1 -0
  500. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32cryptcon.json +1 -0
  501. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32event.json +1 -0
  502. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32evtlog.json +1 -0
  503. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32evtlogutil.json +1 -0
  504. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32file.json +1 -0
  505. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32gui.json +1 -0
  506. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32gui_struct.json +1 -0
  507. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32help.json +1 -0
  508. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32inet.json +1 -0
  509. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32inetcon.json +1 -0
  510. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32job.json +1 -0
  511. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32lz.json +1 -0
  512. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32net.json +1 -0
  513. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32netcon.json +1 -0
  514. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32pdh.json +1 -0
  515. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32pdhquery.json +1 -0
  516. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32pipe.json +1 -0
  517. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32print.json +1 -0
  518. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32process.json +1 -0
  519. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32profile.json +1 -0
  520. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32ras.json +1 -0
  521. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32security.json +1 -0
  522. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32service.json +1 -0
  523. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32serviceutil.json +1 -0
  524. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32timezone.json +1 -0
  525. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32trace.json +1 -0
  526. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32transaction.json +1 -0
  527. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32ts.json +1 -0
  528. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32ui.json +1 -0
  529. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32uiole.json +1 -0
  530. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32verstamp.json +1 -0
  531. pycg-1.0.0/pycg/analysis/stub_data/third_party/win32wnet.json +1 -0
  532. pycg-1.0.0/pycg/analysis/stub_data/third_party/winerror.json +1 -0
  533. pycg-1.0.0/pycg/analysis/stub_data/third_party/winioctlcon.json +1 -0
  534. pycg-1.0.0/pycg/analysis/stub_data/third_party/winnt.json +1 -0
  535. pycg-1.0.0/pycg/analysis/stub_data/third_party/winperf.json +1 -0
  536. pycg-1.0.0/pycg/analysis/stub_data/third_party/winxpgui.json +1 -0
  537. pycg-1.0.0/pycg/analysis/stub_data/third_party/winxptheme.json +1 -0
  538. pycg-1.0.0/pycg/analysis/stub_data/third_party/workalendar.json +1 -0
  539. pycg-1.0.0/pycg/analysis/stub_data/third_party/wtforms.json +1 -0
  540. pycg-1.0.0/pycg/analysis/stub_data/third_party/wurlitzer.json +1 -0
  541. pycg-1.0.0/pycg/analysis/stub_data/third_party/www_authenticate.json +1 -0
  542. pycg-1.0.0/pycg/analysis/stub_data/third_party/xdg.json +1 -0
  543. pycg-1.0.0/pycg/analysis/stub_data/third_party/xdgenvpy.json +1 -0
  544. pycg-1.0.0/pycg/analysis/stub_data/third_party/xlrd.json +1 -0
  545. pycg-1.0.0/pycg/analysis/stub_data/third_party/xmldiff.json +1 -0
  546. pycg-1.0.0/pycg/analysis/stub_data/third_party/xmltodict.json +1 -0
  547. pycg-1.0.0/pycg/analysis/stub_data/third_party/yaml.json +1 -0
  548. pycg-1.0.0/pycg/analysis/stub_data/third_party/yt_dlp.json +1 -0
  549. pycg-1.0.0/pycg/analysis/stub_data/third_party/zstd.json +1 -0
  550. pycg-1.0.0/pycg/analysis/stub_data/third_party/zxcvbn.json +1 -0
  551. pycg-1.0.0/pycg/analysis/stub_data/this.json +1 -0
  552. pycg-1.0.0/pycg/analysis/stub_data/threading.json +1 -0
  553. pycg-1.0.0/pycg/analysis/stub_data/time.json +1 -0
  554. pycg-1.0.0/pycg/analysis/stub_data/timeit.json +1 -0
  555. pycg-1.0.0/pycg/analysis/stub_data/tkinter.json +1 -0
  556. pycg-1.0.0/pycg/analysis/stub_data/token.json +1 -0
  557. pycg-1.0.0/pycg/analysis/stub_data/tokenize.json +1 -0
  558. pycg-1.0.0/pycg/analysis/stub_data/tomllib.json +1 -0
  559. pycg-1.0.0/pycg/analysis/stub_data/trace.json +1 -0
  560. pycg-1.0.0/pycg/analysis/stub_data/traceback.json +1 -0
  561. pycg-1.0.0/pycg/analysis/stub_data/tracemalloc.json +1 -0
  562. pycg-1.0.0/pycg/analysis/stub_data/tty.json +1 -0
  563. pycg-1.0.0/pycg/analysis/stub_data/turtle.json +1 -0
  564. pycg-1.0.0/pycg/analysis/stub_data/types.json +1 -0
  565. pycg-1.0.0/pycg/analysis/stub_data/typing.json +1 -0
  566. pycg-1.0.0/pycg/analysis/stub_data/typing_extensions.json +1 -0
  567. pycg-1.0.0/pycg/analysis/stub_data/unicodedata.json +1 -0
  568. pycg-1.0.0/pycg/analysis/stub_data/unittest.json +1 -0
  569. pycg-1.0.0/pycg/analysis/stub_data/urllib.json +1 -0
  570. pycg-1.0.0/pycg/analysis/stub_data/uu.json +1 -0
  571. pycg-1.0.0/pycg/analysis/stub_data/uuid.json +1 -0
  572. pycg-1.0.0/pycg/analysis/stub_data/venv.json +1 -0
  573. pycg-1.0.0/pycg/analysis/stub_data/warnings.json +1 -0
  574. pycg-1.0.0/pycg/analysis/stub_data/wave.json +1 -0
  575. pycg-1.0.0/pycg/analysis/stub_data/weakref.json +1 -0
  576. pycg-1.0.0/pycg/analysis/stub_data/webbrowser.json +1 -0
  577. pycg-1.0.0/pycg/analysis/stub_data/winreg.json +1 -0
  578. pycg-1.0.0/pycg/analysis/stub_data/winsound.json +1 -0
  579. pycg-1.0.0/pycg/analysis/stub_data/wsgiref.json +1 -0
  580. pycg-1.0.0/pycg/analysis/stub_data/xdrlib.json +1 -0
  581. pycg-1.0.0/pycg/analysis/stub_data/xml.json +1 -0
  582. pycg-1.0.0/pycg/analysis/stub_data/xmlrpc.json +1 -0
  583. pycg-1.0.0/pycg/analysis/stub_data/xxlimited.json +1 -0
  584. pycg-1.0.0/pycg/analysis/stub_data/zipapp.json +1 -0
  585. pycg-1.0.0/pycg/analysis/stub_data/zipfile.json +1 -0
  586. pycg-1.0.0/pycg/analysis/stub_data/zipimport.json +1 -0
  587. pycg-1.0.0/pycg/analysis/stub_data/zlib.json +1 -0
  588. pycg-1.0.0/pycg/analysis/stub_data/zoneinfo.json +1 -0
  589. pycg-1.0.0/pycg/analysis/stubs.py +278 -0
  590. PyCG-0.0.7/pycg/utils/common.py → pycg-1.0.0/pycg/formats/__init__.py +18 -21
  591. pycg-1.0.0/pycg/formats/document.py +305 -0
  592. pycg-1.0.0/pycg/pycg.py +56 -0
  593. pycg-1.0.0/pyproject.toml +57 -0
  594. PyCG-0.0.7/PKG-INFO +0 -159
  595. PyCG-0.0.7/PyCG.egg-info/PKG-INFO +0 -159
  596. PyCG-0.0.7/PyCG.egg-info/SOURCES.txt +0 -65
  597. PyCG-0.0.7/PyCG.egg-info/dependency_links.txt +0 -1
  598. PyCG-0.0.7/PyCG.egg-info/entry_points.txt +0 -2
  599. PyCG-0.0.7/PyCG.egg-info/top_level.txt +0 -3
  600. PyCG-0.0.7/README.md +0 -143
  601. PyCG-0.0.7/micro-benchmark/__init__.py +0 -0
  602. PyCG-0.0.7/micro-benchmark/args_test.py +0 -25
  603. PyCG-0.0.7/micro-benchmark/assignments_test.py +0 -19
  604. PyCG-0.0.7/micro-benchmark/base.py +0 -98
  605. PyCG-0.0.7/micro-benchmark/builtins_test.py +0 -16
  606. PyCG-0.0.7/micro-benchmark/classes_test.py +0 -73
  607. PyCG-0.0.7/micro-benchmark/create_pytests.py +0 -42
  608. PyCG-0.0.7/micro-benchmark/decorators_test.py +0 -28
  609. PyCG-0.0.7/micro-benchmark/dicts_test.py +0 -43
  610. PyCG-0.0.7/micro-benchmark/direct_calls_test.py +0 -19
  611. PyCG-0.0.7/micro-benchmark/dynamic_test.py +0 -10
  612. PyCG-0.0.7/micro-benchmark/exceptions_test.py +0 -16
  613. PyCG-0.0.7/micro-benchmark/external_test.py +0 -25
  614. PyCG-0.0.7/micro-benchmark/functions_test.py +0 -19
  615. PyCG-0.0.7/micro-benchmark/generators_test.py +0 -25
  616. PyCG-0.0.7/micro-benchmark/imports_test.py +0 -49
  617. PyCG-0.0.7/micro-benchmark/kwargs_test.py +0 -16
  618. PyCG-0.0.7/micro-benchmark/lambdas_test.py +0 -22
  619. PyCG-0.0.7/micro-benchmark/lists_test.py +0 -31
  620. PyCG-0.0.7/micro-benchmark/mro_test.py +0 -28
  621. PyCG-0.0.7/micro-benchmark/returns_test.py +0 -19
  622. PyCG-0.0.7/micro-benchmark-key-errs/base.py +0 -81
  623. PyCG-0.0.7/micro-benchmark-key-errs/create_pytests.py +0 -42
  624. PyCG-0.0.7/pycg/__init__.py +0 -0
  625. PyCG-0.0.7/pycg/__main__.py +0 -89
  626. PyCG-0.0.7/pycg/formats/__init__.py +0 -23
  627. PyCG-0.0.7/pycg/formats/as_graph.py +0 -33
  628. PyCG-0.0.7/pycg/formats/base.py +0 -23
  629. PyCG-0.0.7/pycg/formats/fasten.py +0 -273
  630. PyCG-0.0.7/pycg/formats/simple.py +0 -33
  631. PyCG-0.0.7/pycg/machinery/__init__.py +0 -0
  632. PyCG-0.0.7/pycg/machinery/callgraph.py +0 -59
  633. PyCG-0.0.7/pycg/machinery/classes.py +0 -78
  634. PyCG-0.0.7/pycg/machinery/definitions.py +0 -230
  635. PyCG-0.0.7/pycg/machinery/imports.py +0 -235
  636. PyCG-0.0.7/pycg/machinery/key_err.py +0 -31
  637. PyCG-0.0.7/pycg/machinery/modules.py +0 -64
  638. PyCG-0.0.7/pycg/machinery/pointers.py +0 -149
  639. PyCG-0.0.7/pycg/machinery/scopes.py +0 -154
  640. PyCG-0.0.7/pycg/processing/__init__.py +0 -0
  641. PyCG-0.0.7/pycg/processing/base.py +0 -547
  642. PyCG-0.0.7/pycg/processing/cgprocessor.py +0 -252
  643. PyCG-0.0.7/pycg/processing/keyerrprocessor.py +0 -101
  644. PyCG-0.0.7/pycg/processing/postprocessor.py +0 -342
  645. PyCG-0.0.7/pycg/processing/preprocessor.py +0 -424
  646. PyCG-0.0.7/pycg/pycg.py +0 -263
  647. PyCG-0.0.7/pycg/utils/__init__.py +0 -22
  648. PyCG-0.0.7/pycg/utils/constants.py +0 -42
  649. PyCG-0.0.7/pyproject.toml +0 -45
  650. PyCG-0.0.7/setup.cfg +0 -7
  651. PyCG-0.0.7/setup.py +0 -61
  652. {PyCG-0.0.7 → pycg-1.0.0}/LICENCE +0 -0
  653. {PyCG-0.0.7/micro-benchmark-key-errs → pycg-1.0.0/pycg/analysis}/__init__.py +0 -0
pycg-1.0.0/.gitignore ADDED
@@ -0,0 +1,29 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ build/
6
+ dist/
7
+ .venv
8
+ .pytest_cache/
9
+ .hypothesis/
10
+ .coverage
11
+ *.log
12
+ *.sw*
13
+
14
+ # Local worktrees
15
+ .worktrees/
16
+
17
+ # The sources of the macro-benchmark, copied out of the inputs image
18
+ /evaluation/macro-benchmark/projects/
19
+ # The sources of the scale set, copied out of the inputs image
20
+ /evaluation/scale/projects/
21
+ # A new trace of a project (the committed traces are in
22
+ # evaluation/macro-benchmark/dynamic/)
23
+ /evaluation/results/
24
+ # The build logs of the wheels built from pinned sdists
25
+ # (evaluation/macro-benchmark/wheels/README.md)
26
+ !/evaluation/macro-benchmark/wheels/*.build.log
27
+
28
+ # Rust build output
29
+ target/
pycg-1.0.0/PKG-INFO ADDED
@@ -0,0 +1,169 @@
1
+ Metadata-Version: 2.5
2
+ Name: pycg
3
+ Version: 1.0.0
4
+ Summary: Practical Python Call Graphs
5
+ Project-URL: Homepage, https://github.com/vitsalis/PyCG
6
+ Project-URL: Bug Tracker, https://github.com/vitsalis/PyCG/issues
7
+ Author-email: Vitalis Salis <vitsalis@gmail.com>
8
+ License-Expression: Apache-2.0
9
+ License-File: LICENCE
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3 :: Only
12
+ Requires-Python: >=3.12
13
+ Description-Content-Type: text/markdown
14
+
15
+ # PyCG - Practical Python Call Graphs
16
+
17
+ > This is the final release of the Python engine; PyCG continues as a Rust tool.
18
+ > See the [repository](https://github.com/vitsalis/pycg) for more details.
19
+
20
+ PyCG generates call graphs for Python code with a fully static analysis:
21
+ it never imports or runs the code that it analyses. The analysis follows
22
+ the values that a program passes around (functions, classes, instances,
23
+ containers), so it resolves
24
+
25
+ * calls through variables, arguments, return values, attributes and
26
+ containers (higher-order code)
27
+ * methods through class hierarchies, `super()`, decorators, properties and
28
+ descriptors
29
+ * the calls that the interpreter makes without a call expression (`for`,
30
+ `with`, operators, subscripts, `await` and others)
31
+ * imports inside the package, followed automatically
32
+ * calls into code outside the package (the builtins, the standard library,
33
+ other packages), named through type stubs
34
+
35
+ The analysis is fast on packages that use the standard library as external
36
+ code. It does not yet scale to programs that include large generic
37
+ libraries such as the standard library itself: see *Open problems* in
38
+ [docs/design.md](https://github.com/vitsalis/PyCG/blob/python-engine-final/docs/design.md), which is the specification of the
39
+ analysis.
40
+
41
+ The first version of PyCG is described in the
42
+ [ICSE 2021 paper](https://arxiv.org/pdf/2103.00587.pdf). The analysis in
43
+ this repository is a redesign of it; that version is the tag
44
+ `baseline-original-engine`. [evaluation/](https://github.com/vitsalis/PyCG/blob/python-engine-final/evaluation/README.md) measures
45
+ PyCG on the micro-benchmark and on a benchmark of real packages:
46
+ `make eval`.
47
+
48
+ You can cite PyCG as follows.
49
+ Vitalis Salis, Thodoris Sotiropoulos, Panos Louridas, Diomidis Spinellis and Dimitris Mitropoulos.
50
+ PyCG: Practical Call Graph Generation in Python.
51
+ In _43rd International Conference on Software Engineering, ICSE '21_,
52
+ 25–28 May 2021.
53
+
54
+ # Installation
55
+
56
+ PyCG requires Python 3.12 or later and has no runtime dependencies.
57
+
58
+ This version is not on PyPI yet (`pip install pycg` gives the 2021
59
+ version). Install it from a checkout of this repository:
60
+ ```
61
+ git clone https://github.com/vitsalis/PyCG
62
+ cd PyCG
63
+ pip install .
64
+ ```
65
+
66
+ Or run it from the checkout without installing it:
67
+ ```
68
+ python -m pycg --help # from the root of the checkout
69
+ uv run pycg --help # with uv, which also makes the environment
70
+ ```
71
+
72
+ # Usage
73
+
74
+ ```
75
+ ~ >>> pycg -h
76
+ usage: pycg [-h] [--package PACKAGE] [--package-name PACKAGE_NAME]
77
+ [--package-version PACKAGE_VERSION] [-o OUTPUT] [--cap N]
78
+ [entry_point ...]
79
+
80
+ Write the call graph of a Python package as one JSON document.
81
+
82
+ positional arguments:
83
+ entry_point Entry points to be processed
84
+
85
+ options:
86
+ -h, --help show this help message and exit
87
+ --package PACKAGE Package root: module names are relative to it and only
88
+ modules under it are analysed. Default: the deepest
89
+ directory that contains every entry point
90
+ --package-name PACKAGE_NAME
91
+ Name of the analysed package
92
+ --package-version PACKAGE_VERSION
93
+ Version of the analysed package
94
+ -o, --output OUTPUT Output path
95
+ --cap N The most objects that the analysis keeps for one
96
+ variable or expression: past it the value is treated
97
+ as unknown, and calls through it are reported as
98
+ unresolved (saturated). 'none' removes the cap: the
99
+ analysis may then not finish, or run out of memory, on
100
+ large inputs. Default: 5000
101
+ ```
102
+
103
+ A module that cannot be read or parsed is reported as failed, with a
104
+ warning, and analysed as an empty module.
105
+
106
+ `--cap` (`cap=` of `CallGraphGenerator`) is the one setting of the
107
+ analysis; the document records it. `--cap none` gives the analysis
108
+ without a cap, which may not finish on large inputs.
109
+
110
+ # Output
111
+
112
+ PyCG writes one JSON document, specified in [docs/format.md](https://github.com/vitsalis/PyCG/blob/python-engine-final/docs/format.md).
113
+ It lists the analysed modules, their definitions (modules, classes with
114
+ their MROs, functions), the names that each module exports, the outside
115
+ names that the code calls, and the call sites of each caller: the position
116
+ of each call, what it may call, the implicit calls (`for`, `with`,
117
+ operators, properties and others) by construct, and the calls whose callee
118
+ is not known, with the cause. The document is deterministic: the same
119
+ input gives the same bytes on every run and every supported Python version.
120
+
121
+ `pycg.formats.edges(document)` gives the classic call graph: each node
122
+ mapped to the sorted names it calls.
123
+
124
+ ```
125
+ {
126
+ "node1": ["node2", "node3"],
127
+ "node2": ["node3"],
128
+ "node3": []
129
+ }
130
+ ```
131
+
132
+ # Examples
133
+
134
+ All the entry points are known:
135
+ ```
136
+ ~ >>> pycg --package pkg_root pkg_root/module1.py pkg_root/subpackage/module2.py -o cg.json
137
+ ```
138
+
139
+ All entry points are not known, and the package is named in the document:
140
+ ```
141
+ ~ >>> pycg --package django --package-name django --package-version 5.2 \
142
+ $(find django -type f -name "*.py") -o django.json
143
+ ```
144
+
145
+ # Development
146
+
147
+ Install [uv](https://docs.astral.sh/uv/). Then, from the root directory:
148
+ ```
149
+ uv run make test # unit tests, the micro-benchmark and its validator
150
+ uv run make lint # ruff check, ruff format --check, no comments
151
+ uv run make format # sort imports and format the code
152
+ ```
153
+
154
+ Each micro-benchmark case is a directory
155
+ `evaluation/micro-benchmark/snippets/<category>/<name>/` that contains a
156
+ `main.py` and the expected `callgraph.json`. The tests find new case
157
+ directories automatically.
158
+ To run one case:
159
+ ```
160
+ uv run pytest "tests/test_micro_benchmark.py::test_call_graph[classes/call]"
161
+ ```
162
+
163
+ The cases that the analysis fails are listed, each with its cause, in
164
+ `tests/known_failures.txt`, as strict expected failures. After a change to
165
+ the analysis, regenerate the list with `uv run python tests/triage.py`,
166
+ which holds the causes. It removes the cases that pass now and never adds a
167
+ case by itself: a failing case that is not in the list is a regression or a
168
+ new case, and the tool reports it and fails. Give such a case a cause in
169
+ `tests/triage.py` and add it with `--readmit <category>/<case>`.
pycg-1.0.0/README.md ADDED
@@ -0,0 +1,155 @@
1
+ # PyCG - Practical Python Call Graphs
2
+
3
+ > This is the final release of the Python engine; PyCG continues as a Rust tool.
4
+ > See the [repository](https://github.com/vitsalis/pycg) for more details.
5
+
6
+ PyCG generates call graphs for Python code with a fully static analysis:
7
+ it never imports or runs the code that it analyses. The analysis follows
8
+ the values that a program passes around (functions, classes, instances,
9
+ containers), so it resolves
10
+
11
+ * calls through variables, arguments, return values, attributes and
12
+ containers (higher-order code)
13
+ * methods through class hierarchies, `super()`, decorators, properties and
14
+ descriptors
15
+ * the calls that the interpreter makes without a call expression (`for`,
16
+ `with`, operators, subscripts, `await` and others)
17
+ * imports inside the package, followed automatically
18
+ * calls into code outside the package (the builtins, the standard library,
19
+ other packages), named through type stubs
20
+
21
+ The analysis is fast on packages that use the standard library as external
22
+ code. It does not yet scale to programs that include large generic
23
+ libraries such as the standard library itself: see *Open problems* in
24
+ [docs/design.md](https://github.com/vitsalis/PyCG/blob/python-engine-final/docs/design.md), which is the specification of the
25
+ analysis.
26
+
27
+ The first version of PyCG is described in the
28
+ [ICSE 2021 paper](https://arxiv.org/pdf/2103.00587.pdf). The analysis in
29
+ this repository is a redesign of it; that version is the tag
30
+ `baseline-original-engine`. [evaluation/](https://github.com/vitsalis/PyCG/blob/python-engine-final/evaluation/README.md) measures
31
+ PyCG on the micro-benchmark and on a benchmark of real packages:
32
+ `make eval`.
33
+
34
+ You can cite PyCG as follows.
35
+ Vitalis Salis, Thodoris Sotiropoulos, Panos Louridas, Diomidis Spinellis and Dimitris Mitropoulos.
36
+ PyCG: Practical Call Graph Generation in Python.
37
+ In _43rd International Conference on Software Engineering, ICSE '21_,
38
+ 25–28 May 2021.
39
+
40
+ # Installation
41
+
42
+ PyCG requires Python 3.12 or later and has no runtime dependencies.
43
+
44
+ This version is not on PyPI yet (`pip install pycg` gives the 2021
45
+ version). Install it from a checkout of this repository:
46
+ ```
47
+ git clone https://github.com/vitsalis/PyCG
48
+ cd PyCG
49
+ pip install .
50
+ ```
51
+
52
+ Or run it from the checkout without installing it:
53
+ ```
54
+ python -m pycg --help # from the root of the checkout
55
+ uv run pycg --help # with uv, which also makes the environment
56
+ ```
57
+
58
+ # Usage
59
+
60
+ ```
61
+ ~ >>> pycg -h
62
+ usage: pycg [-h] [--package PACKAGE] [--package-name PACKAGE_NAME]
63
+ [--package-version PACKAGE_VERSION] [-o OUTPUT] [--cap N]
64
+ [entry_point ...]
65
+
66
+ Write the call graph of a Python package as one JSON document.
67
+
68
+ positional arguments:
69
+ entry_point Entry points to be processed
70
+
71
+ options:
72
+ -h, --help show this help message and exit
73
+ --package PACKAGE Package root: module names are relative to it and only
74
+ modules under it are analysed. Default: the deepest
75
+ directory that contains every entry point
76
+ --package-name PACKAGE_NAME
77
+ Name of the analysed package
78
+ --package-version PACKAGE_VERSION
79
+ Version of the analysed package
80
+ -o, --output OUTPUT Output path
81
+ --cap N The most objects that the analysis keeps for one
82
+ variable or expression: past it the value is treated
83
+ as unknown, and calls through it are reported as
84
+ unresolved (saturated). 'none' removes the cap: the
85
+ analysis may then not finish, or run out of memory, on
86
+ large inputs. Default: 5000
87
+ ```
88
+
89
+ A module that cannot be read or parsed is reported as failed, with a
90
+ warning, and analysed as an empty module.
91
+
92
+ `--cap` (`cap=` of `CallGraphGenerator`) is the one setting of the
93
+ analysis; the document records it. `--cap none` gives the analysis
94
+ without a cap, which may not finish on large inputs.
95
+
96
+ # Output
97
+
98
+ PyCG writes one JSON document, specified in [docs/format.md](https://github.com/vitsalis/PyCG/blob/python-engine-final/docs/format.md).
99
+ It lists the analysed modules, their definitions (modules, classes with
100
+ their MROs, functions), the names that each module exports, the outside
101
+ names that the code calls, and the call sites of each caller: the position
102
+ of each call, what it may call, the implicit calls (`for`, `with`,
103
+ operators, properties and others) by construct, and the calls whose callee
104
+ is not known, with the cause. The document is deterministic: the same
105
+ input gives the same bytes on every run and every supported Python version.
106
+
107
+ `pycg.formats.edges(document)` gives the classic call graph: each node
108
+ mapped to the sorted names it calls.
109
+
110
+ ```
111
+ {
112
+ "node1": ["node2", "node3"],
113
+ "node2": ["node3"],
114
+ "node3": []
115
+ }
116
+ ```
117
+
118
+ # Examples
119
+
120
+ All the entry points are known:
121
+ ```
122
+ ~ >>> pycg --package pkg_root pkg_root/module1.py pkg_root/subpackage/module2.py -o cg.json
123
+ ```
124
+
125
+ All entry points are not known, and the package is named in the document:
126
+ ```
127
+ ~ >>> pycg --package django --package-name django --package-version 5.2 \
128
+ $(find django -type f -name "*.py") -o django.json
129
+ ```
130
+
131
+ # Development
132
+
133
+ Install [uv](https://docs.astral.sh/uv/). Then, from the root directory:
134
+ ```
135
+ uv run make test # unit tests, the micro-benchmark and its validator
136
+ uv run make lint # ruff check, ruff format --check, no comments
137
+ uv run make format # sort imports and format the code
138
+ ```
139
+
140
+ Each micro-benchmark case is a directory
141
+ `evaluation/micro-benchmark/snippets/<category>/<name>/` that contains a
142
+ `main.py` and the expected `callgraph.json`. The tests find new case
143
+ directories automatically.
144
+ To run one case:
145
+ ```
146
+ uv run pytest "tests/test_micro_benchmark.py::test_call_graph[classes/call]"
147
+ ```
148
+
149
+ The cases that the analysis fails are listed, each with its cause, in
150
+ `tests/known_failures.txt`, as strict expected failures. After a change to
151
+ the analysis, regenerate the list with `uv run python tests/triage.py`,
152
+ which holds the causes. It removes the cases that pass now and never adds a
153
+ case by itself: a failing case that is not in the list is a regression or a
154
+ new case, and the tool reports it and fails. Give such a case a cause in
155
+ `tests/triage.py` and add it with `--readmit <category>/<case>`.