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

Uploaded Source

File details

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

File metadata

  • Download URL: pycg-producer-0.0.2.tar.gz
  • Upload date:
  • Size: 9.7 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.2.tar.gz
Algorithm Hash digest
SHA256 7dcd30d1849d635cf9c413a3cfba35ea0191c9b8caa452f020e134cd1b5a2242
MD5 ca2376942656eb19bf43fd307728f13f
BLAKE2b-256 02e6df196c0195ad7821b40a5ed1d7219fa46d968835cad4bae4d67eb06296c3

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