🌐
GitHub
github.com › Akuli › python-tutorial › blob › master › basics › docstrings.md
python-tutorial/basics/docstrings.md at master · Akuli/python-tutorial
| | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables (if defined) | | __weakref__ | list of weak references to the object (if defined) FUNCTIONS do_hello() This is a test function. FILE /home/akuli/testie.py · That's pretty cool. We just added docstrings to our code and Python made this thing out of it.
Author: Akuli
🌐
GitHub
gist.github.com › redlotus › 3bc387c2591e3e908c9b63b97b11d24e
Google Style Python Docstrings · GitHub
Google Style Python Docstrings. GitHub Gist: instantly share code, notes, and snippets.
Starred by 125 users
Forked by 12 users
Languages: Python 100.0% | Python 100.0%
🌐
GitHub
github.com › topics › docstrings
docstrings · GitHub Topics · GitHub
Preprocessed Python functions and docstrings for automated code documentation (code2doc) and automated code generation (doc2code) tasks.
🌐
GitHub
github.com › mkdocstrings › mkdocstrings › issues › 135
How to handle bullet list in python docstrings · Issue #135 · mkdocstrings/mkdocstrings
July 15, 2020 - Hi! I'm trying to list something inside the docstrings of an argument of a function. For example: def fn( x: tp.Union[ jnp.ndarray, np.ndarray, tp.Mapping[str, tp.Union[np.ndarray, jnp.ndarray]], tp.Tuple[tp.Union[np.ndarray, jnp.ndarray...
Author: mkdocstrings
🌐
Mkdocstrings
mkdocstrings.github.io › python › usage › configuration › docstrings
Docstrings - mkdocstrings-python
A section is a block of text that has a special meaning in a docstring. There are sections for documenting attributes of an object, parameters of a function, exceptions raised by a function, the return value of a function, etc. Sections are parsed as structured data and can therefore be rendered in different ways. Possible values: "table": a simple table, usually with type, name and description columns · "list": a simple list, akin to what you get with the ReadTheDocs Sphinx theme
🌐
GitHub
github.com › topics › docstring-documentation
docstring-documentation · GitHub Topics · GitHub
A Hyper Simple Docstring to Markdown. Creates indexed Markdown files from Python libraries docstrings.
🌐
GitHub
github.com › topics › docstring
docstring · GitHub Topics · GitHub
documentation r devtools documentation-tool r-package docstring roxygen-style ... A Vim plugin for generating python docstrings.
Find elsewhere
🌐
Python-sprints
python-sprints.github.io › pandas › guide › pandas_docstring.html
pandas docstring guide — Python documentation
In rare occasions reST styles like bold text or itallics will be used in docstrings, but is it common to have inline code, which is presented between backticks. It is considered inline code: ... Python code, a module, function, built-in, type, literal… (e.g. os, list, numpy.abs, datetime.date, True)
Author: NilsJPWerner
🌐
GitHub
github.com › HunterMcGushion › docstr_coverage
GitHub - HunterMcGushion/docstr_coverage: Docstring coverage analysis and rating for Python
Other locations can be passed using docstr-coverage -C path/to/config.yml or the long version --config. ... paths: # list or string - docstr_coverage badge: docs # Path exclude: .*/test # regex verbose: 3 # int (0-4) skip_magic: True # Boolean skip_file_doc: True # Boolean skip_init: True # Boolean skip_class_def: True # Boolean skip_private: True # Boolean follow_links: True # Boolean accept_empty: True # Boolean ignore_names_file: .*/test # regex fail_under: 90 # int percentage_only: True # Boolean ignore_patterns: # Dict with key/value pairs of file-pattern/node-pattern .*: method_to_ignore_in_all_files FileWhereWeWantToIgnoreAllSpecialMethods: "__.+__" SomeFile: - method_to_ignore1 - method_to_ignore2 - method_to_ignore3 a_very_important_view_file: - "^get$" - "^set$" - "^post$" detect_.*: - "get_val.*"
Starred by 103 users
Forked by 20 users
Languages: Python 100.0% | Python 100.0%
🌐
GitHub
github.com › DanialSoleimany › python-docstring-tutorial
GitHub - DanialSoleimany/python-docstring-tutorial · GitHub
PEP 257 – Python Enhancement Proposal 257: Docstring Conventions This is the official Python documentation standard for writing docstrings. It outlines conventions like spacing, summaries, and formatting for functions, classes, and modules.
Author: DanialSoleimany
🌐
GitHub
github.com › PyCQA › pydocstyle
GitHub - PyCQA/pydocstyle: docstring style checker · GitHub
November 3, 2023 - docstring style checker. Contribute to PyCQA/pydocstyle development by creating an account on GitHub.
Author: PyCQA
🌐
GitHub
github.com › robodair › pydocstring
GitHub - robodair/pydocstring: Python package for autogenerating python docstrings, and switching between common docstring formats
Python package for autogenerating python docstrings, and switching between common docstring formats - robodair/pydocstring
Starred by 21 users
Forked by 5 users
Languages: Python 100.0% | Python 100.0%
🌐
GitHub
github.com › airtai › docstring-gen
GitHub - airtai/docstring-gen: Generator for docstrings · GitHub
Instantly improve the documentation of your Python code with Codex. docstring-gen is an easy-to-use Python library that uses OpenAI’s Codex model to automatically generate Google-style docstrings for Python codebase. The library is capable of reading both Jupyter notebooks and Python files, and seamlessly adds meaningful docstrings to classes and functions that lack documentation.
Starred by 19 users
Forked by 5 users
Languages: Jupyter Notebook 78.9% | Python 19.2%
🌐
Blue Book
lyz-code.github.io › blue-book › coding › python › docstrings
Docstrings - The Blue Book
A list of any classes, exception, functions, and any other objects exported by the module. Only needed if they are not defined in the same file, otherwise help() will get them automatically. The docstring for a module function should include the same items as a class method.
🌐
GitHub
gist.github.com › alexsavio › 48d38edfe9b81024dc5c
Docstring examples · GitHub
Docstring examples · Raw · example_google.py · This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters ·
🌐
GitHub
github.com › jboy › nim-docstrings
GitHub - jboy/nim-docstrings: Python-like docstrings for code written in the Nim programming language
import docstrings proc myProc(x: int, y: string, z: float64): int {. extractdocstrings .} = ## This double-hashed comment is a Nim documentation comment: ## http://nim-lang.org/docgen.html#documentation-comments ## ## It's recognised by Nim's "docgen" utility, which is how the official ## Nim docs are generated. However, I can't work out how to extract the ## text content of the documentation comment from my own code. ## ## Hence, I present extractable Python-style docstrings: docstring"""This is a Python-style docstring!
Author: jboy
🌐
GitHub
github.com › jsh9 › format-docstring
GitHub - jsh9/format-docstring: A comprehensive Python docstring formatter · GitHub
# Format a single file with default settings format-docstring my_module.py # Format all Python files in a directory with custom line length format-docstring --line-length 72 src/ # Format Google-style docstrings format-docstring --docstring-style google src/ # Format Jupyter notebooks excluding certain directories format-docstring-jupyter --exclude "\.git|\.venv|__pycache__" notebooks/ # Format Google-style docstrings in notebooks format-docstring-jupyter --docstring-style google notebooks/ # Preview changes with unified diffs format-docstring --verbose diff src/ # Use a specific config file f
Author: jsh9