Skip to content

Commit

Permalink
docs(client): update module docstring for client
Browse files Browse the repository at this point in the history
  • Loading branch information
watsonvv committed Dec 6, 2021
1 parent 30f5b52 commit 7df85ca
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 110 deletions.
6 changes: 1 addition & 5 deletions tensorbay/client/cloud_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
# Copyright 2021 Graviti. Licensed under MIT License.
#

"""Class CloudClient.
The :class:`CloudClient` defines the initial client to interact between local and cloud platform.
"""
"""Related classes for the Storage Config."""

from typing import Any, Dict, Iterator, List, Type, TypeVar

Expand Down
19 changes: 1 addition & 18 deletions tensorbay/client/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,7 @@
# Copyright 2021 Graviti. Licensed under MIT License.
#

"""Class DatasetClientBase, DatasetClient and FusionDatasetClient.
:class:`DatasetClient` is a remote concept. It contains the information
needed for determining a unique dataset on TensorBay, and provides a series of methods within
dataset scope, such as :meth:`DatasetClient.get_segment`, :meth:`DatasetClient.list_segment_names`,
:meth:`DatasetClient.commit <DatasetClientBase.commit>`, and so on.
In contrast to the :class:`DatasetClient`,
:class:`~tensorbay.dataset.dataset.Dataset` is a local concept. It represents a
dataset created locally. Please refer to
:class:`~tensorbay.dataset.dataset.Dataset` for more information.
Similar to the :class:`DatasetClient`, the
:class:`FusionDatasetClient` represents
the fusion dataset on TensorBay, and its local counterpart is
:class:`~tensorbay.dataset.dataset.FusionDataset`.
Please refer to :class:`~tensorbay.dataset.dataset.FusionDataset` for more information.
"""
"""The remote dataset on TensorBay."""

import logging
import os
Expand Down
22 changes: 1 addition & 21 deletions tensorbay/client/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,7 @@
# Copyright 2021 Graviti. Licensed under MIT License.
#

"""Class about the diff.
:class:`DiffBase` defines the basic structure of a diff.
:class:`NotesDiff` defines the basic structure of a brief diff of notes.
:class:`CatalogDiff` defines the basic structure of a brief diff of catalog.
:class:`FileDiff` defines the basic structure of a brief diff of data file.
:class:`LabelDiff` defines the basic structure of a brief diff of data label.
:class:`SensorDiff` defines the basic structure of a brief diff of sensor.
:class:`DataDiff` defines the basic structure of a brief diff of data.
:class:`SegmentDiff` defines the basic structure of a brief diff of a segment.
:class:`DatasetDiff` defines the basic structure of a brief diff of a dataset.
"""
"""Related classes for the diff."""

from typing import Any, Dict, Sequence, Tuple, Type, TypeVar, Union, overload

Expand Down
10 changes: 1 addition & 9 deletions tensorbay/client/gas.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,7 @@
# Copyright 2021 Graviti. Licensed under MIT License.
#

"""Class GAS.
The :class:`GAS` defines the initial client to interact between local and TensorBay.
It provides some operations on datasets level such as :meth:`GAS.create_dataset`,
:meth:`GAS.list_dataset_names` and :meth:`GAS.get_dataset`.
AccessKey is required when operating with dataset.
"""
"""The implementation of the gas."""

import logging
from typing import Any, Dict, Generator, Optional, Type, Union, overload
Expand Down
2 changes: 1 addition & 1 deletion tensorbay/client/lazy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright 2021 Graviti. Licensed under MIT License.
#

"""Lazy evaluation related classes."""
"""Related classes for the lazy evaluation."""

from itertools import repeat, zip_longest
from typing import (
Expand Down
6 changes: 1 addition & 5 deletions tensorbay/client/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
# Copyright 2021 Graviti. Licensed under MIT License.
#

"""Logging utility functions.
:meth:`Dump_request_and_response <dump_request_and_response>` dumps http request and response.
"""
"""The implementation of logging utilities."""

import json
from typing import MutableMapping
Expand Down
6 changes: 1 addition & 5 deletions tensorbay/client/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
# Copyright 2021 Graviti. Licensed under MIT License.
#

"""Statistical.
:class:`Profile` is a class used to save statistical summary.
"""
"""Record statistics of the interface that interacts with TensorBay."""

import csv
import json
Expand Down
8 changes: 1 addition & 7 deletions tensorbay/client/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
# Copyright 2021 Graviti. Licensed under MIT License.
#

"""Class Client and method multithread_upload.
:class:`Client` can send POST, PUT, and GET requests to the TensorBay Dataset Open API.
:meth:`multithread_upload` creates a multi-thread framework for uploading.
"""
"""The multi-thread uploading framework and request senders of the TensorBay Dataset Open API."""

import logging
import os
Expand Down
20 changes: 1 addition & 19 deletions tensorbay/client/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,7 @@
# Copyright 2021 Graviti. Licensed under MIT License.
#

"""SegmentClientBase, SegmentClient and FusionSegmentClient.
The :class:`SegmentClient` is a remote concept. It
contains the information needed for determining a unique segment in a dataset
on TensorBay, and provides a series of methods within a segment scope,
such as :meth:`SegmentClient.upload_label`, :meth:`SegmentClient.upload_data`,
:meth:`SegmentClient.list_data` and so on.
In contrast to the :class:`SegmentClient`,
:class:`~tensorbay.dataset.segment.Segment` is a local concept.
It represents a segment created locally. Please refer to
:class:`~tensorbay.dataset.segment.Segment` for more information.
Similarly to the :class:`SegmentClient`, the :class:`FusionSegmentClient` represents
the fusion segment in a fusion dataset on TensorBay, and its local counterpart
is :class:`~tensorbay.dataset.segment.FusionSegment`.
Please refer to :class:`~tensorbay.dataset.segment.FusionSegment`
for more information.
"""
"""The segment of remote dataset on TensorBay."""

import os
import time
Expand Down
6 changes: 1 addition & 5 deletions tensorbay/client/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
# Copyright 2021 Graviti. Licensed under MIT License.
#

"""Class Statistics.
"""The basic structure of the label statistics."""

:class:`Statistics` defines the basic structure of the label statistics obtained by
:meth:`DatasetClientBase.get_label_statistics`.
"""
from typing import Any, Dict

from tensorbay.utility import UserMapping
Expand Down
2 changes: 1 addition & 1 deletion tensorbay/client/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright 2021 Graviti. Licensed under MIT License.
#

"""Class Status."""
"""The basic concept of the status."""


from typing import Any, Dict, Optional
Expand Down
14 changes: 1 addition & 13 deletions tensorbay/client/struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,7 @@
# Copyright 2021 Graviti. Licensed under MIT License.
#

"""User, Commit, Tag, Branch and Draft classes.
:class:`User` defines the basic concept of a user with an action.
:class:`Commit` defines the structure of a commit.
:class:`Tag` defines the structure of a commit tag.
:class:`Branch` defines the structure of a branch.
:class:`Draft` defines the structure of a draft.
"""
"""Structures of dataset-scopic actions on the TensorBay."""

from functools import partial
from typing import Any, Dict, Optional, Tuple, Type, TypeVar
Expand Down
2 changes: 1 addition & 1 deletion tensorbay/client/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright 2021 Graviti. Licensed under MIT License.
#

"""TensorBay dataset version control related classes."""
"""Related methods of the TensorBay version control."""

from typing import Any, Dict, Generator, Optional, Union

Expand Down

0 comments on commit 7df85ca

Please sign in to comment.