Observed since 21 Oct, 10:13 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
This project automates the process of aggregating code files from a directory into a single markdown file, ready for use in an OpenAI Assistant or any RAG model. It intelligently skips files specified in the .gitignore and leverages ChatGPT to generate concise summaries for each code file, ensuring that the final markdown file is both comprehensive and easy to understand.
This project automates the process of aggregating code files from a directory into a single markdown file, ready for use in an OpenAI Assistant or any RAG model. It intelligently skips files specified in the .gitignore and leverages ChatGPT to generate concise summaries for each code file, ensuring that the final markdown file is both comprehensive and easy to understand.
pip install ai-code-summary
For more details, visit the PyPI project page.
git clone https://github.com/DEV3L/ai-code-summary
cd ai-code-summary
OPENAI_API_KEY with your actual OpenAI API key:cp env.default .env
brew install hatch
hatch env create
hatch shell
The following environment variables can be configured in the .env file:
OPENAI_MODEL: The model to use
gpt-4oSUMMARY_PROMPT: The prompt used to summarize code files
You are code summary expert. You summarize code in a short way that is easy to understand.hatch run e2e
hatch run test
Command + Shift + P => Coverage Gutters: Watch
from ai_code_summary.markdown.export import create_markdown_from_code
if __name__ == "__main__":
create_markdown_from_code(".")
Example output as a markdown file - ai-code-summary.md
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.1 | 24 Oct 2024 | 5 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 10:13 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:f5a7a27e0b2a5320156ca0bc6765ca403b1689db5df809362207fb678d9b0621