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.7.tar.gz (7.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pycg-producer-0.0.7.tar.gz
  • Upload date:
  • Size: 7.4 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.7.tar.gz
Algorithm Hash digest
SHA256 ed2222302e906411fa33d6ef8d9b3dbf6d4b572db73437b89536e0f87fe852b3
MD5 c135c943dd4f3a876655f1a83393d6a0
BLAKE2b-256 525fc8638da3d1b54544b3d324fd6c6b03cee6c986b32939172630c30daf37b5

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