Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

Docstring template decorator

Project Description

Docstring template decorator.


You can specify replacement fields between curly braces {} and do other fancy stuff. See Format String Syntax for a description of the various formatting options that can be specified in format strings.

>>> from dtd import docstring
>>> @docstring(foo='bar')
>>> def fun():
...     """{foo}"""
...     pass
>>> print(fun.__doc__)


$ pip install dtd

Release history Release notifications

This version
History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
dtd-1.0.3.tar.gz (1.6 kB) Copy SHA256 hash SHA256 Source None Aug 5, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page