Project

General

Profile

Actions

Idea #21935

closed

Identify the public API of the Python SDK and make a plan to hide non-public stuff in an internal module

Added by Peter Amstutz about 2 months ago. Updated about 1 month ago.

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

Description

Proposed:

  • arvados.cache has a single class, merge it into arvados.api. (I believe we can maintain backwards compatibility by saying cache = api inside arvados/__init__.py.)
  • Ditto arvados.safeapi.
  • Move the following modules wholesale into arvados._internal, removing leading underscore as needed:
    • arvados.diskcache
    • arvados.http_to_keep
    • arvados.retry
    • arvados.timer (maybe just move this class to arvados._internal since it's so small?)
    • arvados._normalize_stream
    • arvados._pycurlhelper
    • arvados._ranges
  • In arvados.util:
    • deprecated moves to arvados._internal
    • All the _BaseDir* classes move to arvados._internal.basedirs

Subtasks 2 (0 open2 closed)

Task #21980: Review the planResolvedPeter Amstutz07/11/2024Actions
Task #21987: Review 21935-clean-pysdk-apiResolvedPeter Amstutz07/24/2024Actions
Actions

Also available in: Atom PDF