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

Uploaded Source

File details

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

File metadata

  • Download URL: pycg-producer-0.0.5.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for pycg-producer-0.0.5.tar.gz
Algorithm Hash digest
SHA256 00e41a3c4b4d9f774df157e8acf8683f7d4bf976a75fd188aaffe9282e6a0ece
MD5 1a4140aebbad306c47f513797303b8d4
BLAKE2b-256 ca6d743c1d07fd7d53e870419c9973f50e6ca23338cb31641da64cdd1c29cbd8

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