Skip to content

Document public API #1053

Closed
Closed

Description

@jku

Description of issue or feature request:
The public API (if any) of the reference implementation should be clearly documented.

Current behavior:
The actual source files seem to be documented (see e.g. tuf/client/updater.py) but since the documentation is seemingly not published anywhere it's not really clear to an outsider what is actually supported as external API (nothing? just tuf.client.updater? more?)

Expected behavior:
The API reference is published and then linked to from e.g. https://pypi.org/project/tuf/

Activity

  1. jku commented on Jun 17, 2020

    @jku
    MemberAuthor

    I guess depending on the answer to "what is actually supported as external API" there might be a followup issue: should tuf.client.updater be packaged into it's own wheel, with just the dependencies it needs?

  2. lukpueh commented on Jun 17, 2020

    @lukpueh
    Member

    Thanks for submitting this request, @jku! I aggree with you 100%. Currently, the best way to check what parts of TUF are "public API" is to look at the functions used in the Tutorial.

    The good news is that we are planning a larger refactor, part of which will be to clearly define and document the supported API, similarly to what we just did for TUF's sister project in-toto (see in-toto/in-toto#369). There are also discussions about making TUF more modular (see e.g. #881).

  3. added
    documentation
    on Jun 29, 2020
  4. added this to the milestone on Jul 7, 2020
  5. removed this from the milestone on Sep 8, 2020
  6. jku commented on Feb 16, 2022

    @jku
    MemberAuthor

    Closing this issue as it was filed against (what is now known as) the legacy codebase: issue seems to not be relevant anymore. Please re-open or file a new issue if you feel that the issue is revelant to current python-tuf.

    More details

    Current source code (and upcoming 1.0 release) only contains the modern components

    • a low-level Metadata API (tuf.api) and
    • tuf.ngclient that implements the client workflow,

    Legacy components (e.g. tuf.client, tuf.repository_tool, tuf.repository_lib as well as the repo and client scripts) are no longer included. See announcement and API reference for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions