Skip to main content

Build Status

Docdocdoc

A python library to template documentation from docstrings.

Installation

You can install docdocdoc with pip with the following command:

pip install docdocdoc

Usage


build

build_fn

Function returning the function or class documentation written in Markdown.

Arguments

  • fn str - str of the function or class name".

Returns

str - function or class documentation written in Markdown.

build_toc

Function returning the table of content written in Markdown.

Arguments

  • data list - list of dicts with the keys "title" and "fns". "title" contains the name of the section and "fns" contains the name of the functions in the section.

Returns

str - table of content written in Markdown.

build_docs

Function returning the documentation written in Markdown.

Arguments

  • data list - list of dicts with the keys "title" and "fns". "title" contains the name of the section and "fns" contains the name of the functions in the section.

Returns

StringIO - documentation written in Markdown.

generate_readme

Function printing readme.

Arguments

  • data list - list of dicts with the keys "title" and "fns". "title" contains the name of the section and "fns" contains the name of the fonctions in the section.

parts

assembling_description

Function returning the short description of the docstring, aggregated with the long description.

Arguments

  • docstring DocstringStyle.GOOGLE - a google docstring.

Returns

string - description of the docstring.

get_article

Function returning the article if the docstring has one, None otherwise.

Arguments

  • docstring DocstringStyle.GOOGLE - a google docstring.

Returns

string - string containing the description of the article.

get_function

Function returning a dict with the different part for a function (or class) documentation (i.e. name, description, article.).

Arguments

  • fn function - a function you defined.

Returns

dict - dict with the different part of the documentation.

get_references

Function returning the references if the docstring has some, None otherwise.

Arguments

  • docstring DocstringStyle.GOOGLE - a google docstring.

Returns

list - list containing the strings with the references.

template_params

Function returning templated arguments.

Arguments

  • fn_doc dict - a dict with the function documentation parts (returned by get_function).

Returns

string - templated arguments.

template_references

Function returning templated references.

Arguments

  • fn_doc dict - a dict with the function documentation parts (returned by get_function).

Returns

string - templated references.

template_return

Function returning templated arguments.

Arguments

  • fn_doc dict - a dict with the function documentation parts (returned by get_function).

Returns

string - templated returns.

Metadata

Release files for docdocdoc 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docdocdoc 0.1.0
File Size Uploaded Provenance Actions
docdocdoc-0.1.0.tar.gz 4.1 kB Without provenance Details for docdocdoc-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for docdocdoc 0.1.0
File Interpreter ABI Platform Actions
docdocdoc-0.1.0-py3-none-any.whl Python 3 none any Details for docdocdoc-0.1.0-py3-none-any.whl

Total release size: 10.3 kB

Release files / docdocdoc-0.1.0.tar.gz

Download URL docdocdoc-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f68a9d1e11416d9eae49ee06d7bbf9b3dd577eded8cc5f8e472a90b19850d94d
BLAKE2b-256 checksum
How to use checksums
dd2f02840fef3d8f7cc236356c3a4abdf9f74d2923443b8514d20fb95f2c5b35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.10

Release files / docdocdoc-0.1.0-py3-none-any.whl

Download URL docdocdoc-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
005862cc659426f8847ff5b12e46b3a15724f5bb8081c24c4363bd9e49e8e02c
BLAKE2b-256 checksum
How to use checksums
3a1472485b98b3621e3344ace4ab2baed93f38ff8e2282ce220a1f9e7347ccbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.10

Security for docdocdoc 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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