3 ms·
Pydeps: A Useful Program
- kapilvt 7y agoPipdeptree is another useful tool in this vein except cli driven on display. Poetry as a package manager also has some ice built is via their show sub command. https://github.com/naiquevin/pipdeptree https://github.com/naiquevin/pipdeptree
- closed 7y agoI'm a huge fan of pydeps! Recently, I have been using it to discuss with developers the structure of their code. Being able to quickly show them how interconnected their imports are, and ask which of the "lines" they might remove is a great teaching tool. Cutting out "lines" isn't always the right decision, but it's been helpful to visualize and discuss.
- fermigier 7y agoMy projects use a bit of dynamic imports (Flask blueprints imported using `werkzeug.import_string`. From a quick trial, pydeps only works with static imports. A similar project (or the same one!) which collects data at runtime would be useful in this case.
- qwerty456127 7y ago> "version" file I had created early on, was really redundant since its content (a single variable) could easily be incorporated in the Public API file. What if it was not? How would you re-structure the program in that case? As for me program structure is the hardest part of Python and I haven't seen a single Python program which's structure wouldn't look at least slightly ugly to me.