-
Notifications
You must be signed in to change notification settings - Fork 200
Expand file tree
/
Copy path__init__.pyi
More file actions
61 lines (51 loc) · 1.8 KB
/
Copy path__init__.pyi
File metadata and controls
61 lines (51 loc) · 1.8 KB
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
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright the Vortex contributors
class CosStore:
"""A Tencent Cloud COS object store, backed by OpenDAL.
Construct it with explicit configuration and pass it to
``vortex.io.read_url(url, store=cos_store)`` /
``vortex.io.write(arrays, path, store=cos_store)``.
"""
def __init__(
self,
bucket: str,
endpoint: str,
*,
secret_id: str | None = None,
secret_key: str | None = None,
root: str | None = None,
disable_config_load: bool = False,
) -> None: ...
class GoosefsStore:
"""A Tencent Cloud GooseFS object store, backed by OpenDAL.
Construct it with explicit configuration and pass it to
``vortex.io.read_url(url, store=goosefs_store)`` /
``vortex.io.write(arrays, path, store=goosefs_store)``.
"""
def __init__(
self,
master_addr: str,
*,
root: str | None = None,
block_size: int | None = None,
chunk_size: int | None = None,
write_type: str | None = None,
auth_type: str | None = None,
auth_username: str | None = None,
) -> None: ...
class HfStore:
"""A Hugging Face Hub object store, rooted at one repository and revision.
Reading an ``hf://`` URL needs no store; this covers a token held in a variable
rather than the environment, and reads that must stay anonymous regardless of it.
Construct it and pass it to ``vortex.io.read_url(path, store=hf_store)``, where
``path`` is a path within the repository.
"""
def __init__(
self,
repo_id: str,
*,
repo_type: str = "dataset",
revision: str | None = None,
token: bool | str | None = None,
endpoint: str | None = None,
) -> None: ...