How to add a link to python libraries using pydoc -
i want generate documentation following python code. worked ok guess. because generated following html documentation.
problem
the problem when click on of modules (argparse, os, sys, zipfile) gives empty page. how can add links modules in documentation in order when click on of them directed webpage?
suppose click on zipfile can directed https://docs.python.org/2/library/zipfile.html
source code"
#!/usr/bin/env python import os import sys import argparse import zipfile ftplib import ftp os.path import basename def is_route(record, routes): """ check if route belongs of 14 routes :param record: name of route :param routes: list of routes :return: true if routes exists else false """ route in routes: if route in record: return true return false def download(username, password, searchdate, routes, output): """ download files ftp server :param username: username of ftp server :param password: password of ftp server :param searchdate: date of previous day :param routes: list of routes :output: directory downloaded files saved :return: returns nothing """ if __name__ == "__main__": #download routes download("", "", "", "", "")
try start pydoc server
pydoc -p <arbitrary port number>
Comments
Post a Comment