mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
RequestsFetcher should still be public (even if deprecated). * We don't want to import RequestsFetcher in __init__ (because that requires importing requests) * but we do want RequestsFetcher to be importable publicly Move both fetchers out of _internal: that was never the right place for them anyway: they are public modules. Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
18 lines
533 B
Python
18 lines
533 B
Python
# Copyright New York University and the TUF contributors
|
|
# SPDX-License-Identifier: MIT OR Apache-2.0
|
|
|
|
"""TUF client public API."""
|
|
|
|
from tuf.api.metadata import TargetFile
|
|
from tuf.ngclient.config import UpdaterConfig
|
|
from tuf.ngclient.fetcher import FetcherInterface
|
|
from tuf.ngclient.updater import Updater
|
|
from tuf.ngclient.urllib3_fetcher import Urllib3Fetcher
|
|
|
|
__all__ = [ # noqa: PLE0604
|
|
FetcherInterface.__name__,
|
|
Urllib3Fetcher.__name__,
|
|
TargetFile.__name__,
|
|
Updater.__name__,
|
|
UpdaterConfig.__name__,
|
|
]
|