pydeps icon indicating copy to clipboard operation
pydeps copied to clipboard

How do I create a monolithic Python app dependencies graph?

Open jpventura opened this issue 4 years ago • 1 comments

I have a monolithic Django application and I wish to measure the cyclomatic complexity in order to refactor it to Django standalone apps (or even FastAPI, Flask, or Quart microservices).

Simply calling pydeps onto the projects causes:

jpventura@ubuntu:django-project$ pydeps project

	ERROR: [Errno 2] No such file or directory: 'project' 

even though django-project/project exists and is filled with submodules.

So what is the proper way of creating the clusterized graph of module dependencies using pydeps?

jpventura avatar Feb 20 '21 16:02 jpventura

Make sure you're standing in the django-project directory, and that it is on the path, and that the django-project/project/__init__.py file imports all submodules.

thebjorn avatar Feb 20 '21 17:02 thebjorn