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

Uploaded Source

File details

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

File metadata

  • Download URL: pycg-producer-0.0.4.tar.gz
  • Upload date:
  • Size: 6.0 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.4.tar.gz
Algorithm Hash digest
SHA256 5f6b5a633ee9e47ce9b63be944af190ad71088501c6a4c1013bd4f485c1d4c42
MD5 1285f7375f0fba63e0d41fc0f5ca5556
BLAKE2b-256 76c71988108825838773ea596bea5e019b31b3360eb97d38ef1934d2081af6bc

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