Name | docstring-parser-fork JSON |
Version |
0.0.12
JSON |
| download |
home_page | None |
Summary | Parse Python docstrings in reST, Google and Numpydoc format |
upload_time | 2025-01-13 07:57:43 |
maintainer | None |
docs_url | None |
author | Marcin Kurczewski |
requires_python | <4.0,>=3.7 |
license | MIT |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
docstring_parser_fork
================
This is a fork of [docstring_parser](https://github.com/rr-/docstring_parser).
This fork fixes bugs that the upstream library has not fixed, and it also
offers additional functionalities. To inspect the difference between this
fort and the upstream, go to [CHANGELOG.md](./CHANGELOG.md) and read the
entries that start with "(Fork)".
------
[](https://github.com/rr-/docstring_parser/actions/workflows/build.yml)
Parse Python docstrings. Currently support ReST, Google, Numpydoc-style and
Epydoc docstrings.
Example usage:
```python
>>> from docstring_parser import parse
>>>
>>>
>>> docstring = parse(
... '''
... Short description
...
... Long description spanning multiple lines
... - First line
... - Second line
... - Third line
...
... :param name: description 1
... :param int priority: description 2
... :param str sender: description 3
... :raises ValueError: if name is invalid
... ''')
>>>
>>> docstring.long_description
'Long description spanning multiple lines\n- First line\n- Second line\n- Third line'
>>> docstring.params[1].arg_name
'priority'
>>> docstring.raises[0].type_name
'ValueError'
```
Read [API Documentation](https://rr-.github.io/docstring_parser/).
# Installation
Installation using pip
```shell
pip install docstring_parser_fork
# or if you want to install it in a virtual environment
python -m venv venv # create environment
source venv/bin/activate # activate environment
python -m pip install docstring_parser_fork
```
Installation using conda
1. Download and install miniconda or anaconda
2. Install the package from the conda-forge channel via:
- `conda install -c conda-forge docstring_parser`
- or create a new conda environment via `conda create -n my-new-environment -c conda-forge docstring_parser`
# Contributing
To set up the project:
```sh
pip install --user poetry
git clone https://github.com/rr-/docstring_parser.git
cd docstring_parser
poetry install
poetry run pre-commit install
```
To run tests:
```
poetry run pytest
```
Raw data
{
"_id": null,
"home_page": null,
"name": "docstring-parser-fork",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.7",
"maintainer_email": null,
"keywords": null,
"author": "Marcin Kurczewski",
"author_email": "dash@wind.garden",
"download_url": "https://files.pythonhosted.org/packages/c6/72/61f7243ad62e14d527f93304cd4f333e681295aa3ef9bcc4afc36c07001a/docstring_parser_fork-0.0.12.tar.gz",
"platform": null,
"description": "docstring_parser_fork\n================\n\nThis is a fork of [docstring_parser](https://github.com/rr-/docstring_parser).\n\nThis fork fixes bugs that the upstream library has not fixed, and it also\noffers additional functionalities. To inspect the difference between this\nfort and the upstream, go to [CHANGELOG.md](./CHANGELOG.md) and read the\nentries that start with \"(Fork)\".\n\n------\n\n[](https://github.com/rr-/docstring_parser/actions/workflows/build.yml)\n\nParse Python docstrings. Currently support ReST, Google, Numpydoc-style and\nEpydoc docstrings.\n\nExample usage:\n\n```python\n>>> from docstring_parser import parse\n>>>\n>>>\n>>> docstring = parse(\n... '''\n... Short description\n...\n... 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\n... ''')\n>>>\n>>> docstring.long_description\n'Long description spanning multiple lines\\n- First line\\n- Second line\\n- Third line'\n>>> docstring.params[1].arg_name\n'priority'\n>>> docstring.raises[0].type_name\n'ValueError'\n```\n\nRead [API Documentation](https://rr-.github.io/docstring_parser/).\n\n# Installation\n\nInstallation using pip\n\n```shell\npip install docstring_parser_fork\n\n# or if you want to install it in a virtual environment\n\npython -m venv venv # create environment\nsource venv/bin/activate # activate environment\npython -m pip install docstring_parser_fork\n```\n\nInstallation using conda\n\n\n1. Download and install miniconda or anaconda\n2. Install the package from the conda-forge channel via:\n - `conda install -c conda-forge docstring_parser`\n - or create a new conda environment via `conda create -n my-new-environment -c conda-forge docstring_parser`\n\n\n# Contributing\n\nTo set up the project:\n```sh\npip install --user poetry\n\ngit clone https://github.com/rr-/docstring_parser.git\ncd docstring_parser\n\npoetry install\npoetry run pre-commit install\n```\n\nTo run tests:\n```\npoetry run pytest\n```\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Parse Python docstrings in reST, Google and Numpydoc format",
"version": "0.0.12",
"project_urls": {
"Repository": "https://github.com/jsh9/docstring_parser_fork"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "500deed05d4b1065f11f8bef2f57440759d4dacc73c22780764948bfa4aaa304",
"md5": "6a6029dc52e566eb67299466936a527c",
"sha256": "55d7cbbc8b367655efd64372b9a0b33a49bae930a8ddd5cdc4c6112312e28a87"
},
"downloads": -1,
"filename": "docstring_parser_fork-0.0.12-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6a6029dc52e566eb67299466936a527c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.7",
"size": 42185,
"upload_time": "2025-01-13T07:57:39",
"upload_time_iso_8601": "2025-01-13T07:57:39.993393Z",
"url": "https://files.pythonhosted.org/packages/50/0d/eed05d4b1065f11f8bef2f57440759d4dacc73c22780764948bfa4aaa304/docstring_parser_fork-0.0.12-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c67261f7243ad62e14d527f93304cd4f333e681295aa3ef9bcc4afc36c07001a",
"md5": "551502613c63c2a680ab19a1dc764653",
"sha256": "b44c5e0be64ae80f395385f01497d381bd094a57221fd9ff020987d06857b2a0"
},
"downloads": -1,
"filename": "docstring_parser_fork-0.0.12.tar.gz",
"has_sig": false,
"md5_digest": "551502613c63c2a680ab19a1dc764653",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.7",
"size": 31608,
"upload_time": "2025-01-13T07:57:43",
"upload_time_iso_8601": "2025-01-13T07:57:43.351112Z",
"url": "https://files.pythonhosted.org/packages/c6/72/61f7243ad62e14d527f93304cd4f333e681295aa3ef9bcc4afc36c07001a/docstring_parser_fork-0.0.12.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-13 07:57:43",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jsh9",
"github_project": "docstring_parser_fork",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "docstring-parser-fork"
}