docstring-extractor
Get Python docstrings from files or Python source code.
Example usage:
>>> from docstring_extractor import get_docstrings
>>>
>>> with open("example.py") as file:
... get_docstrings(file)
...
{
'module': 'example',
'content': [{
'type': 'Function',
'name': 'my_fuction',
'line': 4,
'docstring': 'Long description spanning multiple lines\n- First line\n- Second line\n- Third line\n\n:param name: description 1\n:param int priority: description 2\n:param str sender: description 3\n:raises ValueError: if name is invalid'
}]
}
Contributing
This project uses Black.
Metadata
Release files for docstring-extractor 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| docstring-extractor-0.4.0.tar.gz | 14.7 kB | Without provenance | Details for docstring-extractor-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| docstring_extractor-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for docstring_extractor-0.4.0-py3-none-any.whl |
Total release size: 29.6 kB
Release files / docstring-extractor-0.4.0.tar.gz
| Download URL | docstring-extractor-0.4.0.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f20185ffccdbc8f1f3ebb23220ee7e39b30872f10ec5b18e8fac67064e538a17
|
|
BLAKE2b-256 checksum How to use checksums |
522452e289dccdab85451bd9ab5975b149a3d17987d7558dfc5cc3c09264be20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.3 CPython/3.8.5 Linux/5.4.0-65-generic
|
Release files / docstring_extractor-0.4.0-py3-none-any.whl
| Download URL | docstring_extractor-0.4.0-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1a9eaa0baf53aa70b0ec6ec2a6a081beafce42fbef670b5bc25e0588945dad7
|
|
BLAKE2b-256 checksum How to use checksums |
4902f8b97d9f372933da6190fdca7009a7e9a10a3ae8203e854892af4558027e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.3 CPython/3.8.5 Linux/5.4.0-65-generic
|
Security for docstring-extractor 0.4.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.