thebjorn/pydeps

How do I create a monolithic Python app dependencies graph?

Closed this issue · 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?

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.