Skip to main content

Call Graph Producer for PyPI Packages with the use of PyCG

Project description

Library for generating PyPI Call Graphs through PyCG

This library can be used to produce the call graph of a package distributed through pip along with saving its source code and the call graph in JSON format in a specified directory.

Usage

Example usage after installing the specific package through pip:

from pycg_producer.producer import CallGraphGenerator

coord = { "product": "pycg-stitch",
          "version": "0.0.8",
          "version_timestamp": "2000",
          "requires_dist": []}
generator = CallGraphGenerator("directoryName", coord)
print(generator.generate())

The CallGraphGenerator class recieves as input the name of the directory where the source code and the call graph JSON will be stored, along with a Python dictionary containing the product name and version of the specific PyPI coordinate.

Note: It is mandatory to provide also a version_timestamp and requires_dist fields, which can be left empty if they are not going to be used.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycg-producer-0.0.6.tar.gz (7.1 kB view details)

Uploaded Source

File details

Details for the file pycg-producer-0.0.6.tar.gz.

File metadata

  • Download URL: pycg-producer-0.0.6.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.3 CPython/3.6.9

File hashes

Hashes for pycg-producer-0.0.6.tar.gz
Algorithm Hash digest
SHA256 a41ee69af36a971399166ae6632b437d20722d0578c75a14c0a32ff1fae7c942
MD5 8c5d63a6ddaf3b88c7076d5096001945
BLAKE2b-256 43864ae7b257df4b9d1fce44b9e5f4c84bb5b817ace44439835586c002497221

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page