I have plenty of home-developed packages on Gitlab. Many of these package have setup.py but many of them don't.
I also have projects on Gitlab that use these packages.
My duty is to map the imports in all of these projects to the corresponding package. The problem is that most of the time, the packages that don't have setup.py have a project name slightly different from the statement used in the import
Example:
- project called: abc-def, or abc def
- when installing: pip install company-name-abc-def
- when importing: abc_def
Sometimes the name could be further (not only a dash or space)
Is there a way to know the import name for each project? or the project name from the import statement?
Could it be something set in the pyproject.toml? I read these files but there wasn't something obvious of this.