Skip to content

maxkapur/fetch_python_docs.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fetch_python_docs.py

A Python script to idempotently download, extract, and locally serve a mirror of docs.python.org.

Installation and usage

The script has minimal dependencies (requests and send2trash), so in most environments (e.g. Ubuntu) you can just run the script in your shell:

sudo apt install python3-requests python3-send2trash  # if needed
./fetch_python_docs.py --systemd

This downloads the docs to within the git repository, then defines, starts, and enables a systemd user service. You can browse the docs by going to localhost:8004 in a web browser.

To skip the systemd integration and just download the docs, use the following command instead:

./fetch_python_docs.py

The docs are downloaded to within the git repository and you can open /python-3.xx-docs-html/index.html manually.

To reverse installation, use the --clean flag:

./fetch_python_docs.py --clean

Why not just use pydoc -b?

The color scheme.

About

Idempotently download, extract, and locally serve a mirror of docs.python.org

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages