### Setup Project for Contribution (Shell) Source: https://github.com/rr-/docstring_parser/blob/master/README.md Guides users on setting up the `docstring_parser` project for development. This includes cloning the repository, creating and activating a virtual environment, and installing the package in editable mode with development dependencies. ```Shell git clone https://github.com/rr-/docstring_parser.git cd docstring_parser python -m venv venv # create environment source venv/bin/activate # activate environment pip install -e ".[dev]" # install as editable pre-commit install # make sure pre-commit is setup ``` -------------------------------- ### Install docstring_parser via pip (Shell) Source: https://github.com/rr-/docstring_parser/blob/master/README.md Provides instructions for installing the `docstring_parser` library using pip, including steps for creating and activating a virtual environment. ```Shell pip install docstring_parser # 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 ``` -------------------------------- ### Install docstring_parser via conda (Conda) Source: https://github.com/rr-/docstring_parser/blob/master/README.md Details the process of installing the `docstring_parser` library using conda, either directly or by creating a new conda environment with the package installed from the conda-forge channel. ```Conda 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 ``` -------------------------------- ### Run Tests (Shell) Source: https://github.com/rr-/docstring_parser/blob/master/README.md Instructions for running the project's tests after setting up the development environment. It assumes the virtual environment is activated. ```Shell source venv/bin/activate pytest ``` -------------------------------- ### Parse Python Docstrings (Python) Source: https://github.com/rr-/docstring_parser/blob/master/README.md Demonstrates how to use the `docstring_parser` library to parse a Python docstring. It shows how to extract the short description, long description, parameters, and raised exceptions from a formatted docstring. ```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 ''') print(docstring.long_description) print(docstring.params[1].arg_name) print(docstring.raises[0].type_name) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.