docstring-to-markdown 0.17
pip install docstring-to-markdown
Released:
On the fly conversion of Python docstrings to markdown
Navigation
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIMeta
- License: GNU Lesser General Public License v2 or later (LGPLv2+) (LGPL-2.1-or-later)
- Author: Michał Krassowski
- Tags Docstring, conversion, markdown
- Requires: Python >=3.7
Classifiers
- Intended Audience
- License
- Programming Language
- Topic
Project description
docstring-to-markdown
On the fly conversion of Python docstrings to markdown
- Python 3.7+ (tested on 3.8 up to 3.13)
- can recognise reStructuredText and convert multiple of its features to Markdown
- since v0.13 includes initial support for Google-formatted docstrings
Installation
pip install docstring-to-markdown
Example
Convert reStructuredText:
>>> import docstring_to_markdown
>>> docstring_to_markdown.convert(':math:`\\sum`')
'$\\sum$'
When given the format cannot be recognised an exception will be raised:
>>> docstring_to_markdown.convert('\\sum')
Traceback (most recent call last):
raise UnknownFormatError()
docstring_to_markdown.UnknownFormatError
Extensibility
docstring_to_markdown
entry point group allows to add custom converters which follow the Converter
protocol.
The built-in converters can be customized by providing entry point with matching name.
Development
pip install -e .
pytest
Project details
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIMeta
- License: GNU Lesser General Public License v2 or later (LGPLv2+) (LGPL-2.1-or-later)
- Author: Michał Krassowski
- Tags Docstring, conversion, markdown
- Requires: Python >=3.7
Classifiers
- Intended Audience
- License
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file docstring_to_markdown-0.17.tar.gz
.
File metadata
- Download URL: docstring_to_markdown-0.17.tar.gz
- Upload date:
- Size: 32.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df72a112294c7492487c9da2451cae0faeee06e86008245c188c5761c9590ca3 |
|
MD5 | c0376556ad66ae9dacd4bbdfae420fea |
|
BLAKE2b-256 | 52d88abe80d62c5dce1075578031bcfde07e735bcf0afe2886dd48b470162ab4 |
Provenance
The following attestation bundles were made for docstring_to_markdown-0.17.tar.gz
:
Publisher:
publish.yml
on python-lsp/docstring-to-markdown
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
docstring_to_markdown-0.17.tar.gz
- Subject digest:
df72a112294c7492487c9da2451cae0faeee06e86008245c188c5761c9590ca3
- Sigstore transparency entry: 206149517
- Sigstore integration time:
- Permalink:
python-lsp/docstring-to-markdown@1cdc9e13d5d2ac6837c106a84d2eb638a2be8220
- Branch / Tag:
refs/tags/v0.17
- Owner: https://github.com/python-lsp
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
publish.yml@1cdc9e13d5d2ac6837c106a84d2eb638a2be8220
- Trigger Event:
release
- Statement type:
File details
Details for the file docstring_to_markdown-0.17-py3-none-any.whl
.
File metadata
- Download URL: docstring_to_markdown-0.17-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd7d5094aa83943bf5f9e1a13701866b7c452eac19765380dead666e36d3711c |
|
MD5 | 4aba454952a09c150976a72e78fd60cf |
|
BLAKE2b-256 | 567baf3d0da15bed3a8665419bb3a630585756920f4ad67abfdfef26240ebcc0 |
Provenance
The following attestation bundles were made for docstring_to_markdown-0.17-py3-none-any.whl
:
Publisher:
publish.yml
on python-lsp/docstring-to-markdown
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
docstring_to_markdown-0.17-py3-none-any.whl
- Subject digest:
fd7d5094aa83943bf5f9e1a13701866b7c452eac19765380dead666e36d3711c
- Sigstore transparency entry: 206149522
- Sigstore integration time:
- Permalink:
python-lsp/docstring-to-markdown@1cdc9e13d5d2ac6837c106a84d2eb638a2be8220
- Branch / Tag:
refs/tags/v0.17
- Owner: https://github.com/python-lsp
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
publish.yml@1cdc9e13d5d2ac6837c106a84d2eb638a2be8220
- Trigger Event:
release
- Statement type: