Skip to main content

AI-powered code documentation generator based on DeepAgents and LangChain

Project description

CodeViewX

AI-Powered Code Documentation Generator

中文 | English

PyPI version Python Version License: GPL v3 Downloads

CodeViewX automatically analyzes your codebase and generates professional technical documentation using AI (Anthropic Claude + DeepAgents + LangChain).

✨ Key Features

  • 🤖 AI-Powered Analysis: Automatically understands code structure and business logic
  • 📝 Complete Documentation: Generates 8 standard chapters (overview, quick start, architecture, core mechanisms, data models, API reference, development guide, testing)
  • 🌐 Multi-Language: Supports Chinese, English, Japanese, Korean, French, German, Spanish, Russian
  • 🖥️ Documentation Browser: Built-in web server for elegant documentation display
  • Fast Search: Integrated ripgrep for high-speed code search

📦 Quick Start

Installation

# Install CodeViewX
pip install codeviewx

# Install ripgrep (code search tool)
brew install ripgrep  # macOS
# sudo apt install ripgrep  # Ubuntu/Debian

# Configure API Key and base url
export ANTHROPIC_AUTH_TOKEN='your-api-key-here'
export ANTHROPIC_BASE_URL='https://api.anthropic.com/v1'

Get your API key at Anthropic Console

Basic Usage

# Generate documentation for current directory
codeviewx

# Specify project path and language
codeviewx -w /path/to/project -l English -o docs

# Start documentation browser
codeviewx --serve -o docs

Python API

from codeviewx import generate_docs, start_document_web_server

# Generate documentation
generate_docs(
    working_directory="/path/to/project",
    output_directory="docs",
    doc_language="English"
)

# Start web server
start_document_web_server("docs")

📚 Documentation

For complete documentation, visit the docs/en directory:

🔧 Troubleshooting

Having issues? Check the detailed documentation for help.

Quick Tips:

  • API key error? Ensure ANTHROPIC_AUTH_TOKEN environment variable is set correctly
  • Search not working? Check if ripgrep is installed
  • More questions? See docs/en for complete documentation

🤝 Contributing

Contributions are welcome! See Contributing Guide for details.

📄 License

GNU General Public License v3.0 - see LICENSE file.

🙏 Acknowledgments

Built with Anthropic Claude, DeepAgents, LangChain, and ripgrep.


⭐ Star this project if you find it helpful!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codeviewx-0.2.8.tar.gz (161.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codeviewx-0.2.8-py3-none-any.whl (43.8 kB view details)

Uploaded Python 3

File details

Details for the file codeviewx-0.2.8.tar.gz.

File metadata

  • Download URL: codeviewx-0.2.8.tar.gz
  • Upload date:
  • Size: 161.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for codeviewx-0.2.8.tar.gz
Algorithm Hash digest
SHA256 3e87d055dc52cd3c38c5e40c77e48fa74dcf4736f8b36e3cc1fbcbd8ed481afc
MD5 173475196c2c8e8e14861f2d9384bc2c
BLAKE2b-256 0da19cb4217a74fa20d89a48956fd719524465582fc43551303c70e764cd5fa1

See more details on using hashes here.

File details

Details for the file codeviewx-0.2.8-py3-none-any.whl.

File metadata

  • Download URL: codeviewx-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 43.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for codeviewx-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5076cb84b95c30865c25cb15cc958a32cb276d93f9a256c366259a61166f05a6
MD5 07f053c70b723ed62c3017b031f061a2
BLAKE2b-256 0cf0a8beda68d19453260392677cdd67a7b1eaddb914618953b4d4033f507367

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page