Project

General

Profile

Actions

Idea #18797

closed

Flesh out python sdk documentation in docstrings & ensure good presentation in pydoc

Added by Peter Amstutz almost 3 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
SDKs
Target version:
Start date:
11/11/2022
Due date:
Story points:
-
Release relationship:
Auto

Description

Determine the capabilities & correct usage of pydoc for
  • text formatting
  • annotating function parameters
  • module-level docstrings
  • treatment of Py3 type annotations (what does the documentation system do with them, how are they displayed, how does it take advantage of it)

Determine how to mark things as deprecated (documentation only, or possibly using decorators somehow)

Determine how to hide private variables/functions/classes from documentation (or possibly not export them at all, but need to be careful about backwards compatibility)

Do some initial documentation samples and share with the team for feedback.

The end goal is to update all documentation for public APIs in the Python SDK with correct formatting, deprecation markers, type annotations, etc. Also module-level docstrings to direct users to the correct classes for various topics. However, documenting everything now is not required for this ticket.

You should produce a document with guidelines and best practices for the team for Python SDK documentation going forward.


Files

arvados.retry.txt (7.85 KB) arvados.retry.txt pydoc output Brett Smith, 11/10/2022 10:06 PM
Screenshot from 2022-11-10 16-48-43.png (193 KB) Screenshot from 2022-11-10 16-48-43.png pdoc method output Brett Smith, 11/10/2022 10:06 PM
Screenshot from 2022-11-10 16-54-35.png (220 KB) Screenshot from 2022-11-10 16-54-35.png pdoc class output Brett Smith, 11/10/2022 10:06 PM

Subtasks 3 (0 open3 closed)

Task #19725: group reviewResolved11/11/2022Actions
Task #19788: Review 18797-retry-docstringsResolvedLucas Di Pentima11/21/2022Actions
Task #19789: Review Coding_Standards#PythonResolvedLucas Di Pentima11/21/2022Actions

Related issues 3 (1 open2 closed)

Related to Arvados - Support #18263: Plan to document the Python SDKResolvedPeter AmstutzActions
Related to Arvados Epics - Idea #18800: Update Python SDK documentationIn ProgressActions
Precedes Arvados - Idea #20885: Revise Python docstring style for Markdown extensionsResolvedBrett Smith08/16/2023Actions
Actions

Also available in: Atom PDF