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.
- pycg-1.0.0/.gitignore +29 -0
- pycg-1.0.0/PKG-INFO +169 -0
- pycg-1.0.0/README.md +155 -0
- pycg-1.0.0/docs/design.md +4779 -0
- pycg-1.0.0/docs/format.md +267 -0
- pycg-1.0.0/pycg/__init__.py +1 -0
- pycg-1.0.0/pycg/__main__.py +68 -0
- pycg-1.0.0/pycg/analysis/annotations.py +767 -0
- pycg-1.0.0/pycg/analysis/arguments.py +233 -0
- pycg-1.0.0/pycg/analysis/attributes.py +609 -0
- pycg-1.0.0/pycg/analysis/builder.py +1295 -0
- pycg-1.0.0/pycg/analysis/builtin_models.py +336 -0
- pycg-1.0.0/pycg/analysis/builtin_rules.py +946 -0
- pycg-1.0.0/pycg/analysis/containers.py +1146 -0
- pycg-1.0.0/pycg/analysis/expressions.py +856 -0
- pycg-1.0.0/pycg/analysis/flow.py +227 -0
- pycg-1.0.0/pycg/analysis/hierarchy.py +1032 -0
- pycg-1.0.0/pycg/analysis/imports.py +285 -0
- pycg-1.0.0/pycg/analysis/library.py +375 -0
- pycg-1.0.0/pycg/analysis/matching.py +217 -0
- pycg-1.0.0/pycg/analysis/model.py +425 -0
- pycg-1.0.0/pycg/analysis/mro.py +79 -0
- pycg-1.0.0/pycg/analysis/narrowing.py +512 -0
- pycg-1.0.0/pycg/analysis/outside.py +1236 -0
- pycg-1.0.0/pycg/analysis/patterns.py +278 -0
- pycg-1.0.0/pycg/analysis/program.py +348 -0
- pycg-1.0.0/pycg/analysis/protocols.py +595 -0
- pycg-1.0.0/pycg/analysis/reflection.py +172 -0
- pycg-1.0.0/pycg/analysis/scopes.py +558 -0
- pycg-1.0.0/pycg/analysis/semantics.py +1114 -0
- pycg-1.0.0/pycg/analysis/solver.py +902 -0
- pycg-1.0.0/pycg/analysis/stub_data/LICENSE +237 -0
- pycg-1.0.0/pycg/analysis/stub_data/README.md +232 -0
- pycg-1.0.0/pycg/analysis/stub_data/__future__.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/__main__.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_ast.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_asyncio.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_bisect.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_blake2.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_bz2.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_codecs.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_collections_abc.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_colorize.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_compat_pickle.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_compression.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_contextvars.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_csv.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_ctypes.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_curses.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_curses_panel.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_dbm.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_decimal.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_frozen_importlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_frozen_importlib_external.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_gdbm.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_hashlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_heapq.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_imp.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_interpchannels.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_interpqueues.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_interpreters.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_io.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_json.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_locale.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_lsprof.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_lzma.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_markupbase.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_msi.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_multibytecodec.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_operator.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_osx_support.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_pickle.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_posixsubprocess.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_py_abc.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_pydecimal.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_queue.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_random.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_remote_debugging.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_sitebuiltins.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_socket.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_sqlite3.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_ssl.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_stat.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_struct.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_thread.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_threading_local.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_tkinter.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_tracemalloc.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_typeshed.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_warnings.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_weakref.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_weakrefset.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_winapi.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/_zstd.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/abc.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/aifc.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/annotationlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/antigravity.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/argparse.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/array.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/ast.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/asynchat.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/asyncio.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/asyncore.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/atexit.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/audioop.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/base64.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/bdb.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/binascii.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/binhex.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/bisect.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/builtins.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/bz2.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/cProfile.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/calendar.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/cgi.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/cgitb.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/chunk.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/cmath.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/cmd.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/code.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/codecs.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/codeop.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/collections.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/colorsys.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/compileall.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/compression.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/concurrent.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/configparser.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/contextlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/contextvars.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/copy.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/copyreg.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/crypt.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/csv.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/ctypes.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/curses.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/dataclasses.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/datetime.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/dbm.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/decimal.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/difflib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/dis.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/distutils.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/doctest.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/email.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/encodings.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/ensurepip.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/enum.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/errno.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/faulthandler.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/fcntl.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/filecmp.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/fileinput.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/fnmatch.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/fractions.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/ftplib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/functools.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/gc.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/genericpath.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/getopt.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/getpass.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/gettext.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/glob.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/graphlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/grp.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/gzip.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/hashlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/heapq.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/hmac.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/html.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/http.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/imaplib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/imghdr.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/imp.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/importlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/inspect.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/io.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/ipaddress.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/itertools.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/json.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/keyword.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/lib2to3.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/linecache.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/locale.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/logging.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/lzma.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/mailbox.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/mailcap.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/marshal.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/math.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/mimetypes.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/mmap.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/modulefinder.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/msilib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/msvcrt.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/multiprocessing.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/netrc.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/nis.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/nntplib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/nt.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/ntpath.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/nturl2path.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/numbers.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/opcode.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/operator.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/optparse.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/os.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/ossaudiodev.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/pathlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/pdb.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/pickle.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/pickletools.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/pipes.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/pkgutil.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/platform.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/plistlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/poplib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/posix.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/posixpath.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/pprint.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/profile.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/profiling.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/pstats.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/pty.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/pwd.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/py_compile.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/pyclbr.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/pydoc.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/pydoc_data.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/pyexpat.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/queue.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/quopri.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/random.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/re.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/readline.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/reprlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/resource.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/rlcompleter.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/runpy.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/sched.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/secrets.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/select.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/selectors.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/shelve.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/shlex.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/shutil.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/signal.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/site.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/smtpd.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/smtplib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/sndhdr.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/socket.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/socketserver.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/spwd.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/sqlite3.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/sre_compile.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/sre_constants.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/sre_parse.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/ssl.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/stat.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/statistics.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/string.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/stringprep.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/struct.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/subprocess.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/sunau.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/symtable.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/sys.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/sysconfig.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/syslog.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/tabnanny.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/tarfile.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/telnetlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/tempfile.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/termios.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/textwrap.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/Jetson.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/MySQLdb.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/PyInstaller.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/RPi.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/Xlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/_cffi_backend.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/_jsonnet.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/_win32typing.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/aiofiles.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/antlr4.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/assertpy.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/atheris.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/authlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/aws_xray_sdk.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/behave.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/bleach.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/boltons.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/braintree.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/bugbear.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/capturer.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/cffi.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/channels.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/chevron.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/click_default_group.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/click_log.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/click_shell.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/click_spinner.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/click_web.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/colorama.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/colorful.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/commctrl.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/consolemenu.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/convertdate.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/croniter.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/cronlog.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/crontab.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/crontabs.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/cups.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/datauri.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/dateparser.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/dateparser_data.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/dateutil.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/dde.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/decorator.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/defusedxml.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/deprecated.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/dirhash.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/django_filters.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/docker.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/dockerfile_parse.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/docutils.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/editdistance.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/entrypoints.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/ephem.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/et_xmlfile.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/fanstatic.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/farmhash.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/first.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/flake8.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/flake8_builtins.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/flake8_docstrings.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/flake8_rst_docstrings.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/flake8_simplify.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/flask_cors.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/flask_migrate.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/flask_socketio.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/gdb.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/geojson.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/geopandas.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/gevent.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/google.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/greenlet.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/grpc.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/grpc_channelz.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/grpc_health.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/grpc_reflection.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/grpc_status.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/gunicorn.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/hdbcli.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/hnswlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/html5lib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/httplib2.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/httpretty.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/hvac.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/ibm_db.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/ibm_db_ctx.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/import_export.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/inifile.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/isapi.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/jack.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/jenkins.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/jks.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/jmespath.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/jose.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/jsonschema.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/jwcrypto.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/kafka.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/keyboard.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/ldap3.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/lunardate.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/lupa.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/lzstring.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/m3u8.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/management.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/markdown.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/mmapfile.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/mmsystem.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/mock.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/mypy_extensions.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/nanoid.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/nanoleafapi.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/netaddr.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/netifaces.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/networkx.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/nmap.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/ntsecuritycon.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/oauthlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/objgraph.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/odbc.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/olefile.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/openpyxl.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/opentracing.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/paramiko.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/parsimonious.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/passpy.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/peewee.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pep8ext_naming.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/perfmon.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pexpect.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pika.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/playhouse.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/polib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pony.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/portpicker.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/psutil.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/psycopg2.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/punq.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pyasn1.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pyaudio.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pyautogui.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pycocotools.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pycurl.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pyflakes.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pygments.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pyi_splash.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pyluach.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pymeeus.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pymysql.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pynput.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pyogrio.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pyperclip.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pyphen.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pyscreeze.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pytest_lazyfixture.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/python_http_client.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pythoncom.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pythonwin.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pytz.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/pywintypes.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/qrbill.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/qrcode.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/rasterio.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/ratelimit.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/regex.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/regutil.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/reportlab.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/requests.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/requests_oauthlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/resampy.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/retry.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/rfc3339_validator.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/s2clientprotocol.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/scp.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/seaborn.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/send2trash.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/serial.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/servicemanager.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/setuptools.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/shapely.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/simple_websocket.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/simplejson.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/singledispatch.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/six.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/slumber.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/socks.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/sockshandler.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/sspicon.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/str2bool.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/tabulate.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/tensorflow.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/tgcrypto.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/timer.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/tinycss2.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/titlecase.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/toml.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/toposort.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/tqdm.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/translationstring.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/ttkthemes.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/tzdata.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/unidiff.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/untangle.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/usersettings.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/uwsgi.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/uwsgidecorators.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/vobject.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/waitress.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/watchpoints.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/webencodings.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/webob.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/webtest.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/whatthepatch.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win2kras.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32api.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32clipboard.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32com.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32comext.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32con.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32console.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32cred.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32crypt.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32cryptcon.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32event.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32evtlog.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32evtlogutil.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32file.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32gui.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32gui_struct.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32help.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32inet.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32inetcon.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32job.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32lz.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32net.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32netcon.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32pdh.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32pdhquery.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32pipe.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32print.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32process.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32profile.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32ras.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32security.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32service.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32serviceutil.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32timezone.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32trace.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32transaction.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32ts.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32ui.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32uiole.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32verstamp.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/win32wnet.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/winerror.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/winioctlcon.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/winnt.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/winperf.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/winxpgui.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/winxptheme.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/workalendar.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/wtforms.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/wurlitzer.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/www_authenticate.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/xdg.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/xdgenvpy.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/xlrd.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/xmldiff.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/xmltodict.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/yaml.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/yt_dlp.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/zstd.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/third_party/zxcvbn.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/this.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/threading.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/time.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/timeit.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/tkinter.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/token.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/tokenize.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/tomllib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/trace.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/traceback.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/tracemalloc.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/tty.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/turtle.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/types.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/typing.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/typing_extensions.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/unicodedata.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/unittest.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/urllib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/uu.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/uuid.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/venv.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/warnings.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/wave.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/weakref.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/webbrowser.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/winreg.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/winsound.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/wsgiref.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/xdrlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/xml.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/xmlrpc.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/xxlimited.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/zipapp.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/zipfile.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/zipimport.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/zlib.json +1 -0
- pycg-1.0.0/pycg/analysis/stub_data/zoneinfo.json +1 -0
- pycg-1.0.0/pycg/analysis/stubs.py +278 -0
- PyCG-0.0.7/pycg/utils/common.py → pycg-1.0.0/pycg/formats/__init__.py +18 -21
- pycg-1.0.0/pycg/formats/document.py +305 -0
- pycg-1.0.0/pycg/pycg.py +56 -0
- pycg-1.0.0/pyproject.toml +57 -0
- PyCG-0.0.7/PKG-INFO +0 -159
- PyCG-0.0.7/PyCG.egg-info/PKG-INFO +0 -159
- PyCG-0.0.7/PyCG.egg-info/SOURCES.txt +0 -65
- PyCG-0.0.7/PyCG.egg-info/dependency_links.txt +0 -1
- PyCG-0.0.7/PyCG.egg-info/entry_points.txt +0 -2
- PyCG-0.0.7/PyCG.egg-info/top_level.txt +0 -3
- PyCG-0.0.7/README.md +0 -143
- PyCG-0.0.7/micro-benchmark/__init__.py +0 -0
- PyCG-0.0.7/micro-benchmark/args_test.py +0 -25
- PyCG-0.0.7/micro-benchmark/assignments_test.py +0 -19
- PyCG-0.0.7/micro-benchmark/base.py +0 -98
- PyCG-0.0.7/micro-benchmark/builtins_test.py +0 -16
- PyCG-0.0.7/micro-benchmark/classes_test.py +0 -73
- PyCG-0.0.7/micro-benchmark/create_pytests.py +0 -42
- PyCG-0.0.7/micro-benchmark/decorators_test.py +0 -28
- PyCG-0.0.7/micro-benchmark/dicts_test.py +0 -43
- PyCG-0.0.7/micro-benchmark/direct_calls_test.py +0 -19
- PyCG-0.0.7/micro-benchmark/dynamic_test.py +0 -10
- PyCG-0.0.7/micro-benchmark/exceptions_test.py +0 -16
- PyCG-0.0.7/micro-benchmark/external_test.py +0 -25
- PyCG-0.0.7/micro-benchmark/functions_test.py +0 -19
- PyCG-0.0.7/micro-benchmark/generators_test.py +0 -25
- PyCG-0.0.7/micro-benchmark/imports_test.py +0 -49
- PyCG-0.0.7/micro-benchmark/kwargs_test.py +0 -16
- PyCG-0.0.7/micro-benchmark/lambdas_test.py +0 -22
- PyCG-0.0.7/micro-benchmark/lists_test.py +0 -31
- PyCG-0.0.7/micro-benchmark/mro_test.py +0 -28
- PyCG-0.0.7/micro-benchmark/returns_test.py +0 -19
- PyCG-0.0.7/micro-benchmark-key-errs/base.py +0 -81
- PyCG-0.0.7/micro-benchmark-key-errs/create_pytests.py +0 -42
- PyCG-0.0.7/pycg/__init__.py +0 -0
- PyCG-0.0.7/pycg/__main__.py +0 -89
- PyCG-0.0.7/pycg/formats/__init__.py +0 -23
- PyCG-0.0.7/pycg/formats/as_graph.py +0 -33
- PyCG-0.0.7/pycg/formats/base.py +0 -23
- PyCG-0.0.7/pycg/formats/fasten.py +0 -273
- PyCG-0.0.7/pycg/formats/simple.py +0 -33
- PyCG-0.0.7/pycg/machinery/__init__.py +0 -0
- PyCG-0.0.7/pycg/machinery/callgraph.py +0 -59
- PyCG-0.0.7/pycg/machinery/classes.py +0 -78
- PyCG-0.0.7/pycg/machinery/definitions.py +0 -230
- PyCG-0.0.7/pycg/machinery/imports.py +0 -235
- PyCG-0.0.7/pycg/machinery/key_err.py +0 -31
- PyCG-0.0.7/pycg/machinery/modules.py +0 -64
- PyCG-0.0.7/pycg/machinery/pointers.py +0 -149
- PyCG-0.0.7/pycg/machinery/scopes.py +0 -154
- PyCG-0.0.7/pycg/processing/__init__.py +0 -0
- PyCG-0.0.7/pycg/processing/base.py +0 -547
- PyCG-0.0.7/pycg/processing/cgprocessor.py +0 -252
- PyCG-0.0.7/pycg/processing/keyerrprocessor.py +0 -101
- PyCG-0.0.7/pycg/processing/postprocessor.py +0 -342
- PyCG-0.0.7/pycg/processing/preprocessor.py +0 -424
- PyCG-0.0.7/pycg/pycg.py +0 -263
- PyCG-0.0.7/pycg/utils/__init__.py +0 -22
- PyCG-0.0.7/pycg/utils/constants.py +0 -42
- PyCG-0.0.7/pyproject.toml +0 -45
- PyCG-0.0.7/setup.cfg +0 -7
- PyCG-0.0.7/setup.py +0 -61
- {PyCG-0.0.7 → pycg-1.0.0}/LICENCE +0 -0
- {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>`.
|