archivefs 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- archivefs/__init__.py +61 -0
- archivefs/backends/__init__.py +0 -0
- archivefs/backends/bia.py +868 -0
- archivefs/backends/cbioportal.py +415 -0
- archivefs/backends/chiro.py +257 -0
- archivefs/backends/dbgap.py +134 -0
- archivefs/backends/ega.py +594 -0
- archivefs/backends/geo.py +408 -0
- archivefs/backends/mendeley.py +430 -0
- archivefs/backends/zenodo.py +1031 -0
- archivefs/base.py +1395 -0
- archivefs/blockcache.py +619 -0
- archivefs/bundle.py +808 -0
- archivefs/chiro.py +362 -0
- archivefs/cli.py +1237 -0
- archivefs/config.py +329 -0
- archivefs/confirm.py +334 -0
- archivefs/credentials.py +367 -0
- archivefs/dvc_meta.py +140 -0
- archivefs/dvcfs.py +451 -0
- archivefs/dvcfs_hook.py +85 -0
- archivefs/errors.py +225 -0
- archivefs/from_dvc.py +233 -0
- archivefs/ping.py +252 -0
- archivefs/py.typed +0 -0
- archivefs/registry.py +434 -0
- archivefs/store.py +132 -0
- archivefs/update.py +132 -0
- archivefs/writer.py +214 -0
- archivefs/zipsafe.py +276 -0
- archivefs-0.2.0.dist-info/METADATA +226 -0
- archivefs-0.2.0.dist-info/RECORD +37 -0
- archivefs-0.2.0.dist-info/WHEEL +5 -0
- archivefs-0.2.0.dist-info/entry_points.txt +12 -0
- archivefs-0.2.0.dist-info/licenses/LICENSE +202 -0
- archivefs-0.2.0.dist-info/licenses/NOTICE +4 -0
- archivefs-0.2.0.dist-info/top_level.txt +1 -0
archivefs/__init__.py
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""archivefs — read-only fsspec filesystems for scientific data archives.
|
|
2
|
+
|
|
3
|
+
Address data by accession or DOI and pull it through the fsspec ecosystem
|
|
4
|
+
(including DVC's ``import-url``)::
|
|
5
|
+
|
|
6
|
+
ega://EGAD00001006673 # dataset -> directory
|
|
7
|
+
ega://EGAD00001006673/EGAF00004908765 # one file
|
|
8
|
+
zenodo://<record_id>/<filename> # or zenodo://10.5281/zenodo.<id>
|
|
9
|
+
mendeley://10.17632/<id>[/<version>] # Mendeley Data (anonymous; experimental)
|
|
10
|
+
geo://<GSE_accession> # supplementary/processed files
|
|
11
|
+
dbgap://<phs_id>/<SRR_accession> # deferred, not implemented
|
|
12
|
+
|
|
13
|
+
Importing this package is *not* required to use the protocols — fsspec finds them
|
|
14
|
+
through entry points — but it does re-register them with better error messages,
|
|
15
|
+
so it is cheap and harmless to do.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
from __future__ import annotations
|
|
19
|
+
|
|
20
|
+
from archivefs.errors import (
|
|
21
|
+
ArchiveFSError,
|
|
22
|
+
ArchiveNotFoundError,
|
|
23
|
+
AuthenticationError,
|
|
24
|
+
CredentialsNotFoundError,
|
|
25
|
+
ManifestError,
|
|
26
|
+
MissingExtraError,
|
|
27
|
+
MissingToolError,
|
|
28
|
+
NotSupportedError,
|
|
29
|
+
UnsafeArchiveMemberError,
|
|
30
|
+
VerificationError,
|
|
31
|
+
)
|
|
32
|
+
from archivefs.registry import PROTOCOLS, installed_backends, register_implementations
|
|
33
|
+
|
|
34
|
+
try: # pragma: no cover - trivial packaging glue
|
|
35
|
+
from archivefs._version import version as __version__
|
|
36
|
+
except ImportError: # pragma: no cover
|
|
37
|
+
try:
|
|
38
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
39
|
+
|
|
40
|
+
__version__ = version("archivefs")
|
|
41
|
+
except (ImportError, PackageNotFoundError):
|
|
42
|
+
__version__ = "0.0.0+unknown"
|
|
43
|
+
|
|
44
|
+
register_implementations()
|
|
45
|
+
|
|
46
|
+
__all__ = [
|
|
47
|
+
"PROTOCOLS",
|
|
48
|
+
"ArchiveFSError",
|
|
49
|
+
"ArchiveNotFoundError",
|
|
50
|
+
"AuthenticationError",
|
|
51
|
+
"CredentialsNotFoundError",
|
|
52
|
+
"ManifestError",
|
|
53
|
+
"MissingExtraError",
|
|
54
|
+
"MissingToolError",
|
|
55
|
+
"NotSupportedError",
|
|
56
|
+
"UnsafeArchiveMemberError",
|
|
57
|
+
"VerificationError",
|
|
58
|
+
"__version__",
|
|
59
|
+
"installed_backends",
|
|
60
|
+
"register_implementations",
|
|
61
|
+
]
|
|
File without changes
|