Skip to main content

No project description provided

Project description

About

docrepr renders Python docstrings in HTML. It is based on the sphinxify module developed by Tim Dumol for the Sage Notebook and the utils.inspector module developed for the Spyder IDE.

Rationale

Video presentation @ SciPy 2015 by Carlos Cordoba:

Towards a Better Documentation System for Scientific Python

Details

The module renders a dictionary as returned by IPython oinspect module into a full HTML page (with all assets) from an object’s docstring, by using the rich_repr function of its sphinxify submodule.

Example of use

import webbrowser

import docrepr                                # Set module options
from docrepr import sphinxify                 # html generator
from IPython.core.oinspect import Inspector   # oinfo generator

import numpy as np

oinfo = Inspector().info(np.sin)
oinfo['name'] = 'sin'
url = sphinxify.rich_repr(oinfo)

webbrowser.open_new_tab(url)

License

This project is distributed under the under the terms of the Modified BSD License

Project details


Download files

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

Source Distribution

docrepr-0.1.0.tar.gz (143.9 kB view details)

Uploaded Source

Built Distribution

docrepr-0.1.0-py2.py3-none-any.whl (150.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file docrepr-0.1.0.tar.gz.

File metadata

  • Download URL: docrepr-0.1.0.tar.gz
  • Upload date:
  • Size: 143.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for docrepr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ac1c543b5bb5f225a16aa5393c9458b69d4cc65acd3faaace8feca8b9974fc3e
MD5 30ade6abd48b1fb93b141873634dc810
BLAKE2b-256 9d612539f5a6967ef7183e929bea8852a1cd80b1e7caa7d775915d2c59a4ce1e

See more details on using hashes here.

File details

Details for the file docrepr-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for docrepr-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 61140ee59733b1b070e23ce99632f140cd0abd30f71008e75857e79da9294df7
MD5 b83899fc52730155c754538bb8cd38e5
BLAKE2b-256 d372993b6436c5002e964209160d9bc5de57e8d22e1ad632f16c08d77190f152

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page