-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path__init__.py
71 lines (66 loc) · 1.79 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
"""Read and download STAC items, item collections, collections, and assets.
The main entry points are free functions:
* :py:func:`download_item`
* :py:func:`download_item_collection`
* :py:func:`download_collection`
* :py:func:`download_asset`
Use :py:class:`Config` to configure how assets are downloaded. Every client
inherits from :py:class:`Client`, which defines a common interface for accessing
assets. Writing items, item collections, collections, and assets is currently
unsupported, but is on the roadmap.
"""
from ._functions import (
assert_asset_exists,
asset_exists,
download_asset,
download_collection,
download_file,
download_item,
download_item_collection,
open_href,
read_href,
)
from .client import Client, get_client_classes
from .config import Config
from .earthdata_client import EarthdataClient
from .errors import (
AssetOverwriteError,
ConfigError,
ContentTypeError,
DownloadError,
DownloadWarning,
)
from .filesystem_client import FilesystemClient
from .http_client import HttpClient
from .messages import Message
from .planetary_computer_client import PlanetaryComputerClient
from .s3_client import S3Client
from .strategy import ErrorStrategy, FileNameStrategy
# Keep this list sorted
__all__ = [
"AssetOverwriteError",
"Client",
"Config",
"ConfigError",
"ContentTypeError",
"DownloadError",
"DownloadWarning",
"EarthdataClient",
"ErrorStrategy",
"FileNameStrategy",
"FilesystemClient",
"HttpClient",
"Message",
"PlanetaryComputerClient",
"S3Client",
"assert_asset_exists",
"asset_exists",
"download_asset",
"download_collection",
"download_item",
"download_item_collection",
"download_file",
"get_client_classes",
"open_href",
"read_href",
]