A lightweight Python library for parsing and analyzing abstract syntax trees (AST) and extracting docstring information. Designed to facilitate the documentation process, astdoc provides tools for developers to easily access, manipulate, and generate documentation from Python code.
- Smart Docstring Parsing: Automatically extracts and parses docstrings in Google and NumPy styles
- AST Analysis: Deep understanding of Python code structure through AST traversal
- Namespace Support: Handles namespace packages and complex module structures
- Type-Aware: Built-in support for type hints and annotations
- Modern Python: Compatible with Python 3.10+ including the latest 3.13
- Lightweight: Minimal dependencies, focusing on core functionality
pip install astdoc
For detailed documentation, visit https://daizutabi.github.io/astdoc/
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.