<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dennis Joseph</title>
    <description>The latest articles on DEV Community by Dennis Joseph (@dennis_joseph_2025).</description>
    <link>https://dev.to/dennis_joseph_2025</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3984879%2F04cd3e06-7a19-4609-8ae9-d11916abf558.jpg</url>
      <title>DEV Community: Dennis Joseph</title>
      <link>https://dev.to/dennis_joseph_2025</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dennis_joseph_2025"/>
    <language>en</language>
    <item>
      <title>Title: How I Built an AI-Powered Documentation Generator for Python</title>
      <dc:creator>Dennis Joseph</dc:creator>
      <pubDate>Mon, 15 Jun 2026 07:03:24 +0000</pubDate>
      <link>https://dev.to/dennis_joseph_2025/title-how-i-built-an-ai-powered-documentation-generator-for-python-5ebk</link>
      <guid>https://dev.to/dennis_joseph_2025/title-how-i-built-an-ai-powered-documentation-generator-for-python-5ebk</guid>
      <description>&lt;p&gt;Writing documentation is every developer's least favorite task. So I built a tool that does it automatically.&lt;/p&gt;

&lt;p&gt;The Problem&lt;br&gt;
Python projects grow fast. Classes, functions, models, APIs — keeping docs in sync with code is tedious and easy to ignore until a new dev joins and has no idea what's going on.&lt;/p&gt;

&lt;p&gt;The Solution&lt;br&gt;
PyDocAI takes your Python code and:&lt;/p&gt;

&lt;p&gt;Parses it using Python's ast module to extract classes, functions, models, fields, and endpoints&lt;br&gt;
Sends the structured data to an AI model (Groq LLaMA, with Gemini/Claude fallbacks)&lt;br&gt;
Generates clean Markdown documentation with tables, function signatures, and API specs&lt;br&gt;
Tech Stack&lt;br&gt;
Backend: Django 5 + Django REST Framework + Celery + Redis + PostgreSQL&lt;br&gt;
Frontend: React 19 + Vite + TypeScript + Tailwind CSS&lt;br&gt;
AI: Groq API (with fallbacks to Gemini and Claude)&lt;br&gt;
Deployment: Vercel (frontend), AWS EC2 + RDS (backend)&lt;br&gt;
How It Works&lt;br&gt;
Users can upload code three ways:&lt;/p&gt;

&lt;p&gt;Single .py file — quick analysis&lt;br&gt;
.zip archive — upload a whole project folder&lt;br&gt;
GitHub repo — connect via OAuth or public URL&lt;br&gt;
The backend parses each file, extracts the AST, and queues an AI generation task. Once complete, the documentation is rendered as styled Markdown in the browser with syntax highlighting, Mermaid diagrams, and export support.&lt;/p&gt;

&lt;p&gt;Key Learnings&lt;br&gt;
Python's ast module is incredibly powerful for extracting structural code information&lt;br&gt;
Prompt engineering matters — structuring the AST data properly before sending to the AI makes a huge difference in output quality&lt;br&gt;
Celery + Redis handles long-running AI generation tasks smoothly&lt;br&gt;
Try It Out&lt;br&gt;
Live demo: &lt;a href="https://pydocai.vercel.app" rel="noopener noreferrer"&gt;https://pydocai.vercel.app&lt;/a&gt; GitHub: &lt;a href="https://github.com/dennisjoseph2025/PyDocAI" rel="noopener noreferrer"&gt;https://github.com/dennisjoseph2025/PyDocAI&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's open source (MIT). Contributions, issues, and stars are welcome!&lt;/p&gt;

</description>
      <category>python</category>
      <category>documentation</category>
      <category>ai</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
