psycopg2's code visualization (python part) #1785
Replies: 1 comment 1 reply
-
Hello, psycopg2 is in maintenance mode and I don't see ourselves adding more features to it. Because it is a dense hand-written C module I assume that the LLM will not be able to find much more than hallucination in the way of explaining it. Psycopg 2 is pretty much this big blob of C and a few features written in Python, pretty much ony one-level deep around the C module. If you want to play with something you may try and run this analysis on psycopg 3, which is entirely written in Python (with an optional C module that replaces some Python functionality by offering a 1:1 compatible interface). Giving a skim of the result documentation, I see these issues which you might try to address:
Good luck with your project! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all,
Me and a friend recently were talking and came to the conclusion that getting to know new code bases is not an easy task for both maintainers and devs. It requires quite an effor to have a nice documentation which is also maintained from the maintainers pov and if such thing doesn't exist it can be quite challenging for new devs to contribute to a project.
This said we decided that we will try to help and make this process nicer for everyone. We believe that the best starting point is high-level visualization of the codebase - to us that is diagrams. In order to have them always up-to-date we are levering static analysis and LLMs to create them (thus only the python part, as we don't have the C static analysis just yet 😅 ).
I would love to hear your opinion on diagram first documentation and also on the one we generated for this repo:
https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/psycopg2/on_boarding.md
Any sort of feedback is more than welcome!
Full disclosure: we're trying to turn this into a startup, but we're still in a very early stage and figuring out what will actually be useful for people.
Beta Was this translation helpful? Give feedback.
All reactions