docstring-extractor-0.4.0
توضیحات
Get Python docstrings from files
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | docstring-extractor-0.4.0 |
| نام | docstring-extractor |
| نسخه کتابخانه | 0.4.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Francisco Jimenez Cabrera |
| ایمیل نویسنده | jkfran@gmail.com |
| آدرس صفحه اصلی | https://github.com/jkfran/docstring-extractor |
| آدرس اینترنتی | https://pypi.org/project/docstring-extractor/ |
| مجوز | GPL-3.0-or-later |
# docstring-extractor
Get Python docstrings from files or Python source code.
Example usage:
```python
>>> 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](https://github.com/psf/black).
نیازمندی
| مقدار | نام |
|---|---|
| >=0.7.2,<0.8.0 | docstring-parser |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6,<4.0 | Python |
نحوه نصب
نصب پکیج whl docstring-extractor-0.4.0:
pip install docstring-extractor-0.4.0.whl
نصب پکیج tar.gz docstring-extractor-0.4.0:
pip install docstring-extractor-0.4.0.tar.gz