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: Uses DeepAgents' built-in code search tools

📦 Quick Start

Installation

# Install CodeViewX
pip install codeviewx

# 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? Upgrade deepagents and reinstall CodeViewX dependencies
  • 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, and LangChain.


⭐ 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.9.tar.gz (160.2 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.9-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: codeviewx-0.2.9.tar.gz
  • Upload date:
  • Size: 160.2 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.9.tar.gz
Algorithm Hash digest
SHA256 cc1fc982440c23ad980cfea11349771853c5105adef416b5edef648eacc4639d
MD5 b8a755f561cd1a1b7daa0fb2893e6fbb
BLAKE2b-256 085fd0e3db17acb90904f42db0b042cd5e8acd230dcae64e5850c29bf6c8282e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: codeviewx-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 43.0 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 75a095229c807a03bf49dd3826145b7902187a72afd3864debe481c8a903b69f
MD5 a98ce6d8bb251dc95cafdfed05dd12bd
BLAKE2b-256 ef1b0f6c15ff2834c208e57c26bad189bf9b58595b16af38555408e38cad8267

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