# Copyright 2019 DeepMind Technologies Limited.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Reverb."""

# pylint: disable=g-import-not-at-top
# pylint: disable=g-bad-import-order
from reverb.platform.default import ensure_tf_install

ensure_tf_install.ensure_tf_version()

# Cleanup symbols to avoid polluting namespace.
del ensure_tf_install
# pylint: enable=g-bad-import-order

from reverb import item_selectors as selectors
from reverb import rate_limiters

from reverb.client import Client
from reverb.client import Writer

from reverb.dataset import ReplayDataset

from reverb.errors import DeadlineExceededError
from reverb.errors import ReverbError

from reverb.platform.default import checkpointers

from reverb.replay_sample import ReplaySample
from reverb.replay_sample import SampleInfo

from reverb.server import Server
from reverb.server import Table

from reverb.tf_client import TFClient


# TODO(b/177308010): Make method public once API is stable.
from reverb.timestep_dataset import TimestepDataset as _TimestepDataset
from reverb.trajectory_dataset import TrajectoryDataset as _TrajectoryDataset

from reverb.trajectory_writer import TrajectoryColumn
from reverb.trajectory_writer import TrajectoryWriter

# Copyright 2019 DeepMind Technologies Limited.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Reverb."""

# pylint: disable=g-import-not-at-top
# pylint: disable=g-bad-import-order
from reverb.platform.default import ensure_tf_install

ensure_tf_install.ensure_tf_version()

# Cleanup symbols to avoid polluting namespace.
del ensure_tf_install
# pylint: enable=g-bad-import-order

from reverb import item_selectors as selectors
from reverb import rate_limiters

from reverb.client import Client
from reverb.client import Writer

from reverb.dataset import ReplayDataset

from reverb.errors import DeadlineExceededError
from reverb.errors import ReverbError

from reverb.platform.default import checkpointers

from reverb.replay_sample import ReplaySample
from reverb.replay_sample import SampleInfo

from reverb.server import Server
from reverb.server import Table

from reverb.tf_client import TFClient

from reverb.timestep_dataset import TimestepDataset

from reverb.trajectory_dataset import TrajectoryDataset

from reverb.trajectory_writer import TrajectoryColumn
from reverb.trajectory_writer import TrajectoryWriter

Make `TimestepDataset` and `TrajectoryDataset` public.