Skip to main content

pdoc

pdoc documentation CI Status Code Coverage autofix.ci: yes PyPI Version Supported 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.8 and newer.

Usage

pdoc your_python_module
# or
pdoc ./my_project.py

Run pdoc pdoc to see pdoc's own documentation, run pdoc --help to view the command line flags, or check our hosted 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 plain Markdown.
  • 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 using Sphinx!

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: https://github.com/pdoc3/pdoc/issues/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 use of Nazi symbols and ideology.


The pdoc project was originally created by Andrew Gallant and is currently maintained by Maximilian Hils.

Download files

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

Source Distribution

pdoc-14.6.1.tar.gz (154.3 kB view details)

Uploaded Source

Built Distribution

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

pdoc-14.6.1-py3-none-any.whl (144.6 kB view details)

Uploaded Python 3

File details

Details for the file pdoc-14.6.1.tar.gz.

File metadata

  • Download URL: pdoc-14.6.1.tar.gz
  • Upload date:
  • Size: 154.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for pdoc-14.6.1.tar.gz
Algorithm Hash digest
SHA256 ee598f30d5c55dd4702086dabc412a26022acc35aa88aa382cda8ac655fead98
MD5 6dd8a1ae1ad0a01a97b073c7c2c02097
BLAKE2b-256 c4188e5cec09b50ca7f68adead96ca81e245e8754a866e92c7b36d1e1ca0784d

See more details on using hashes here.

File details

Details for the file pdoc-14.6.1-py3-none-any.whl.

File metadata

  • Download URL: pdoc-14.6.1-py3-none-any.whl
  • Upload date:
  • Size: 144.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for pdoc-14.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 efbed433655264392c60551615a3d42b8f21e492373419756d20234c667b54bc
MD5 75bbc9ac115cd922ea1a703eb7efd5c9
BLAKE2b-256 f00aaa74f87c21adf518d6fb3ca48c7ece4008dfc08b5bd031bcd792e1b92b6a

See more details on using hashes here.

Release history Release notifications | RSS feed

16.0.0

2 files

15.0.4

2 files

15.0.3

2 files

15.0.2

2 files

15.0.1

2 files

15.0.0

2 files

14.7.0

2 files

This release

14.6.1 This release

2 files

14.6.0

2 files

14.5.1

2 files

14.5.0

2 files

14.4.0

2 files

14.3.0

2 files

14.2.0

2 files

14.1.0

2 files

14.0.0

2 files

13.1.1

2 files

13.1.0

2 files

13.0.1

2 files

13.0.0

2 files

12.3.1

2 files

12.3.0

2 files

12.2.2

2 files

12.2.1

2 files

12.2.0

2 files

12.1.0

2 files

12.0.2

2 files

12.0.1

2 files

12.0.0

2 files

11.2.0

2 files

11.1.0

2 files

11.0.0

2 files

10.0.4

1 file

10.0.3

1 file

10.0.2

1 file

10.0.1

1 file

10.0.0

1 file

9.0.1

1 file

9.0.0

1 file

8.3.0

1 file

8.2.0

1 file

8.1.0

1 file

8.0.1

1 file

8.0.0

1 file

7.4.0

1 file

7.3.1

1 file

7.3.0

1 file

7.2.0

1 file

7.1.1

1 file

7.1.0

1 file

7.0.3

1 file

7.0.2

1 file

7.0.1

1 file

7.0.0

1 file

6.6.0

1 file

6.5.0

1 file

6.4.4

1 file

6.4.3

1 file

6.4.2

1 file

6.4.1

1 file

6.4.0

1 file

6.3.2

1 file

6.3.1

1 file

6.3.0

1 file

6.2.0

1 file

6.1.1

1 file

6.1.0

1 file

6.0.0

1 file

5.0.0

1 file

4.0.0

1 file

3.0.1

1 file

3.0.0

1 file

2.0.0

1 file

1.1.0

1 file

1.0.1

1 file

1.0.0

1 file

0.4.1

1 file

0.4

1 file

0.3.2

1 file

0.3.1

1 file

0.3.0

1 file

0.2.4

1 file

0.2.3

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

0.1.8

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

0.0.19

1 file

0.0.18

1 file

0.0.17

1 file

0.0.16

1 file

0.0.15

1 file

0.0.14

1 file

0.0.13

1 file

0.0.12

1 file

0.0.11

1 file

0.0.10

1 file

0.0.9

1 file

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page