Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

API Documentation for Python Projects

License

NotificationsYou must be signed in to change notification settings

mitmproxy/pdoc

pdoc

pdoc documentationCI StatusCode Coverageautofix.ci: yesPyPI VersionSupported Python Versions

API Documentation for Python Projects.

Example

pdoc -o ./html pdoc generates this website:pdoc.dev/docs.

Installation

pip install pdoc

pdoc is compatible with Python 3.10 and newer.

Usage

pdoc your_python_module# orpdoc ./my_project.py

Runpdoc pdoc to see pdoc's own documentation,runpdoc --help to view the command line flags,or check ourhosted copy of the documentation.

Features

pdoc's main feature is a focus on simplicity: pdoc aims to do one thing and do it well.

  • Documentation is plainMarkdown.
  • First-class support for type annotations and all other modern Python 3 features.
  • Builtin web server with live reloading.
  • Customizable HTML templates.
  • Understands numpydoc and Google-style docstrings.
  • Standalone HTML output without additional dependencies.

Under the hood...

  • pdoc will automatically link identifiers in your docstrings to their corresponding documentation.
  • pdoc respects your__all__ variable when present.
  • pdoc will traverse the abstract syntax tree to extract type annotations and docstrings from constructors as well.
  • pdoc will automatically try to resolve type annotation string literals as forward references.
  • pdoc will use inheritance to resolve type annotations and docstrings for class members.

If you have substantially more complex documentation needs, we recommend usingSphinx!

Contributing

As an open source project, pdoc welcomes contributions of all forms.

Dev Guide

pdoc vs. pdoc3

This project is not associated with "pdoc3", which often falsely assumes our name.Quoting@BurntSushi, the original author of pdoc:

I'm pretty disgusted that someone has taken a project I built, relicensed it,attempted to erase its entry on the Python Wiki,released it under effectively the same name and, worst of all, associated it with Nazi symbols.

Source:pdoc3/pdoc#64

In contrast, the pdoc project strives to uphold a healthy community where everyone is treated with respect.Everyone is welcome to contribute as long as they adhere to basic civility. We expressly distance ourselves from the useof Nazi symbols and ideology.


The pdoc project was originally created byAndrew Gallantand is currently maintained byMaximilian Hils.


[8]ページ先頭

©2009-2025 Movatter.jp