fsspec 2024.3.1__py3-none-any.whl → 2024.6.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.
- fsspec/__init__.py +2 -3
- fsspec/_version.py +14 -19
- fsspec/caching.py +86 -16
- fsspec/compression.py +2 -1
- fsspec/core.py +32 -8
- fsspec/exceptions.py +1 -0
- fsspec/generic.py +1 -1
- fsspec/gui.py +1 -1
- fsspec/implementations/arrow.py +0 -2
- fsspec/implementations/cache_mapper.py +1 -2
- fsspec/implementations/cache_metadata.py +7 -7
- fsspec/implementations/cached.py +1 -13
- fsspec/implementations/dirfs.py +2 -2
- fsspec/implementations/github.py +12 -0
- fsspec/implementations/http.py +9 -9
- fsspec/implementations/local.py +78 -45
- fsspec/implementations/memory.py +9 -0
- fsspec/implementations/reference.py +6 -0
- fsspec/implementations/smb.py +13 -1
- fsspec/implementations/webhdfs.py +1 -3
- fsspec/json.py +81 -0
- fsspec/parquet.py +0 -8
- fsspec/registry.py +28 -18
- fsspec/spec.py +97 -38
- fsspec/tests/abstract/mv.py +57 -0
- fsspec/utils.py +1 -3
- fsspec-2024.6.0.dist-info/METADATA +279 -0
- fsspec-2024.6.0.dist-info/RECORD +55 -0
- {fsspec-2024.3.1.dist-info → fsspec-2024.6.0.dist-info}/WHEEL +1 -2
- fsspec-2024.3.1.dist-info/METADATA +0 -167
- fsspec-2024.3.1.dist-info/RECORD +0 -54
- fsspec-2024.3.1.dist-info/top_level.txt +0 -1
- {fsspec-2024.3.1.dist-info → fsspec-2024.6.0.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: fsspec
|
|
3
|
-
Version: 2024.3.1
|
|
4
|
-
Summary: File-system specification
|
|
5
|
-
Home-page: https://github.com/fsspec/filesystem_spec
|
|
6
|
-
Maintainer: Martin Durant
|
|
7
|
-
Maintainer-email: mdurant@anaconda.com
|
|
8
|
-
License: BSD
|
|
9
|
-
Project-URL: Changelog, https://filesystem-spec.readthedocs.io/en/latest/changelog.html
|
|
10
|
-
Project-URL: Documentation, https://filesystem-spec.readthedocs.io/en/latest/
|
|
11
|
-
Keywords: file
|
|
12
|
-
Classifier: Development Status :: 4 - Beta
|
|
13
|
-
Classifier: Intended Audience :: Developers
|
|
14
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
15
|
-
Classifier: Operating System :: OS Independent
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
-
Requires-Python: >=3.8
|
|
21
|
-
Description-Content-Type: text/markdown
|
|
22
|
-
License-File: LICENSE
|
|
23
|
-
Provides-Extra: abfs
|
|
24
|
-
Requires-Dist: adlfs ; extra == 'abfs'
|
|
25
|
-
Provides-Extra: adl
|
|
26
|
-
Requires-Dist: adlfs ; extra == 'adl'
|
|
27
|
-
Provides-Extra: arrow
|
|
28
|
-
Requires-Dist: pyarrow >=1 ; extra == 'arrow'
|
|
29
|
-
Provides-Extra: dask
|
|
30
|
-
Requires-Dist: dask ; extra == 'dask'
|
|
31
|
-
Requires-Dist: distributed ; extra == 'dask'
|
|
32
|
-
Provides-Extra: devel
|
|
33
|
-
Requires-Dist: pytest ; extra == 'devel'
|
|
34
|
-
Requires-Dist: pytest-cov ; extra == 'devel'
|
|
35
|
-
Provides-Extra: dropbox
|
|
36
|
-
Requires-Dist: dropboxdrivefs ; extra == 'dropbox'
|
|
37
|
-
Requires-Dist: requests ; extra == 'dropbox'
|
|
38
|
-
Requires-Dist: dropbox ; extra == 'dropbox'
|
|
39
|
-
Provides-Extra: entrypoints
|
|
40
|
-
Provides-Extra: full
|
|
41
|
-
Requires-Dist: adlfs ; extra == 'full'
|
|
42
|
-
Requires-Dist: aiohttp !=4.0.0a0,!=4.0.0a1 ; extra == 'full'
|
|
43
|
-
Requires-Dist: dask ; extra == 'full'
|
|
44
|
-
Requires-Dist: distributed ; extra == 'full'
|
|
45
|
-
Requires-Dist: dropbox ; extra == 'full'
|
|
46
|
-
Requires-Dist: dropboxdrivefs ; extra == 'full'
|
|
47
|
-
Requires-Dist: fusepy ; extra == 'full'
|
|
48
|
-
Requires-Dist: gcsfs ; extra == 'full'
|
|
49
|
-
Requires-Dist: libarchive-c ; extra == 'full'
|
|
50
|
-
Requires-Dist: ocifs ; extra == 'full'
|
|
51
|
-
Requires-Dist: panel ; extra == 'full'
|
|
52
|
-
Requires-Dist: paramiko ; extra == 'full'
|
|
53
|
-
Requires-Dist: pyarrow >=1 ; extra == 'full'
|
|
54
|
-
Requires-Dist: pygit2 ; extra == 'full'
|
|
55
|
-
Requires-Dist: requests ; extra == 'full'
|
|
56
|
-
Requires-Dist: s3fs ; extra == 'full'
|
|
57
|
-
Requires-Dist: smbprotocol ; extra == 'full'
|
|
58
|
-
Requires-Dist: tqdm ; extra == 'full'
|
|
59
|
-
Provides-Extra: fuse
|
|
60
|
-
Requires-Dist: fusepy ; extra == 'fuse'
|
|
61
|
-
Provides-Extra: gcs
|
|
62
|
-
Requires-Dist: gcsfs ; extra == 'gcs'
|
|
63
|
-
Provides-Extra: git
|
|
64
|
-
Requires-Dist: pygit2 ; extra == 'git'
|
|
65
|
-
Provides-Extra: github
|
|
66
|
-
Requires-Dist: requests ; extra == 'github'
|
|
67
|
-
Provides-Extra: gs
|
|
68
|
-
Requires-Dist: gcsfs ; extra == 'gs'
|
|
69
|
-
Provides-Extra: gui
|
|
70
|
-
Requires-Dist: panel ; extra == 'gui'
|
|
71
|
-
Provides-Extra: hdfs
|
|
72
|
-
Requires-Dist: pyarrow >=1 ; extra == 'hdfs'
|
|
73
|
-
Provides-Extra: http
|
|
74
|
-
Requires-Dist: aiohttp !=4.0.0a0,!=4.0.0a1 ; extra == 'http'
|
|
75
|
-
Provides-Extra: libarchive
|
|
76
|
-
Requires-Dist: libarchive-c ; extra == 'libarchive'
|
|
77
|
-
Provides-Extra: oci
|
|
78
|
-
Requires-Dist: ocifs ; extra == 'oci'
|
|
79
|
-
Provides-Extra: s3
|
|
80
|
-
Requires-Dist: s3fs ; extra == 's3'
|
|
81
|
-
Provides-Extra: sftp
|
|
82
|
-
Requires-Dist: paramiko ; extra == 'sftp'
|
|
83
|
-
Provides-Extra: smb
|
|
84
|
-
Requires-Dist: smbprotocol ; extra == 'smb'
|
|
85
|
-
Provides-Extra: ssh
|
|
86
|
-
Requires-Dist: paramiko ; extra == 'ssh'
|
|
87
|
-
Provides-Extra: tqdm
|
|
88
|
-
Requires-Dist: tqdm ; extra == 'tqdm'
|
|
89
|
-
|
|
90
|
-
# filesystem_spec
|
|
91
|
-
|
|
92
|
-
[](https://pypi.python.org/pypi/fsspec/)
|
|
93
|
-
[](https://anaconda.org/conda-forge/fsspec)
|
|
94
|
-

|
|
95
|
-
[](https://filesystem-spec.readthedocs.io/en/latest/?badge=latest)
|
|
96
|
-
[](https://pepy.tech/project/fsspec)
|
|
97
|
-
|
|
98
|
-
A specification for pythonic filesystems.
|
|
99
|
-
|
|
100
|
-
## Install
|
|
101
|
-
|
|
102
|
-
```bash
|
|
103
|
-
pip install fsspec
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
would install the base fsspec. Various optionally supported features might require specification of custom
|
|
107
|
-
extra require, e.g. `pip install fsspec[ssh]` will install dependencies for `ssh` backends support.
|
|
108
|
-
Use `pip install fsspec[full]` for installation of all known extra dependencies.
|
|
109
|
-
|
|
110
|
-
Up-to-date package also provided through conda-forge distribution:
|
|
111
|
-
|
|
112
|
-
```bash
|
|
113
|
-
conda install -c conda-forge fsspec
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
## Purpose
|
|
118
|
-
|
|
119
|
-
To produce a template or specification for a file-system interface, that specific implementations should follow,
|
|
120
|
-
so that applications making use of them can rely on a common behaviour and not have to worry about the specific
|
|
121
|
-
internal implementation decisions with any given backend. Many such implementations are included in this package,
|
|
122
|
-
or in sister projects such as `s3fs` and `gcsfs`.
|
|
123
|
-
|
|
124
|
-
In addition, if this is well-designed, then additional functionality, such as a key-value store or FUSE
|
|
125
|
-
mounting of the file-system implementation may be available for all implementations "for free".
|
|
126
|
-
|
|
127
|
-
## Documentation
|
|
128
|
-
|
|
129
|
-
Please refer to [RTD](https://filesystem-spec.readthedocs.io/en/latest/?badge=latest)
|
|
130
|
-
|
|
131
|
-
## Develop
|
|
132
|
-
|
|
133
|
-
fsspec uses GitHub Actions for CI. Environment files can be found
|
|
134
|
-
in the "ci/" directory. Note that the main environment is called "py38",
|
|
135
|
-
but it is expected that the version of python installed be adjustable at
|
|
136
|
-
CI runtime. For local use, pick a version suitable for you.
|
|
137
|
-
|
|
138
|
-
### Testing
|
|
139
|
-
|
|
140
|
-
Tests can be run in the dev environment, if activated, via ``pytest fsspec``.
|
|
141
|
-
|
|
142
|
-
The full fsspec suite requires a system-level docker, docker-compose, and fuse
|
|
143
|
-
installation. If only making changes to one backend implementation, it is
|
|
144
|
-
not generally necessary to run all tests locally.
|
|
145
|
-
|
|
146
|
-
It is expected that contributors ensure that any change to fsspec does not
|
|
147
|
-
cause issues or regressions for either other fsspec-related packages such
|
|
148
|
-
as gcsfs and s3fs, nor for downstream users of fsspec. The "downstream" CI
|
|
149
|
-
run and corresponding environment file run a set of tests from the dask
|
|
150
|
-
test suite, and very minimal tests against pandas and zarr from the
|
|
151
|
-
test_downstream.py module in this repo.
|
|
152
|
-
|
|
153
|
-
### Code Formatting
|
|
154
|
-
|
|
155
|
-
fsspec uses [Black](https://black.readthedocs.io/en/stable) to ensure
|
|
156
|
-
a consistent code format throughout the project.
|
|
157
|
-
Run ``black fsspec`` from the root of the filesystem_spec repository to
|
|
158
|
-
auto-format your code. Additionally, many editors have plugins that will apply
|
|
159
|
-
``black`` as you edit files. ``black`` is included in the ``tox`` environments.
|
|
160
|
-
|
|
161
|
-
Optionally, you may wish to setup [pre-commit hooks](https://pre-commit.com) to
|
|
162
|
-
automatically run ``black`` when you make a git commit.
|
|
163
|
-
Run ``pre-commit install --install-hooks`` from the root of the
|
|
164
|
-
filesystem_spec repository to setup pre-commit hooks. ``black`` will now be run
|
|
165
|
-
before you commit, reformatting any changed files. You can format without
|
|
166
|
-
committing via ``pre-commit run`` or skip these checks with ``git commit
|
|
167
|
-
--no-verify``.
|
fsspec-2024.3.1.dist-info/RECORD
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
fsspec/__init__.py,sha256=C8G5rqeNAes0NHYFhdxcw-ZMg4yDipqzSNc4NIR7uoc,2010
|
|
2
|
-
fsspec/_version.py,sha256=wHq_BWmvVWba6IeFL8lWxmbw1fXQhCR4NJHH8b77Nxs,500
|
|
3
|
-
fsspec/archive.py,sha256=S__DzfZj-urAN3tp2W6jJ6YDiXG1fAl7FjvWUN73qIE,2386
|
|
4
|
-
fsspec/asyn.py,sha256=AOd2SXH2YPCaQL5jA6IegYevdMFkAnGD7Seh9DC2gSE,36404
|
|
5
|
-
fsspec/caching.py,sha256=TrZqKo3drK9Afujg7grZRiLNcmgUr84rnvMcojzURnI,28819
|
|
6
|
-
fsspec/callbacks.py,sha256=BDIwLzK6rr_0V5ch557fSzsivCElpdqhXr5dZ9Te-EE,9210
|
|
7
|
-
fsspec/compression.py,sha256=Yyd8FXw2rwWRtVoRVah_yguv-J7BUcBo4yDu6Qt52a0,4859
|
|
8
|
-
fsspec/config.py,sha256=LF4Zmu1vhJW7Je9Q-cwkRc3xP7Rhyy7Xnwj26Z6sv2g,4279
|
|
9
|
-
fsspec/conftest.py,sha256=fVfx-NLrH_OZS1TIpYNoPzM7efEcMoL62reHOdYeFCA,1245
|
|
10
|
-
fsspec/core.py,sha256=kkwJ7IR3-i1C9SAZ_oGrPpbM5hqpBZ2OLkuHU5a1sYE,22471
|
|
11
|
-
fsspec/dircache.py,sha256=YzogWJrhEastHU7vWz-cJiJ7sdtLXFXhEpInGKd4EcM,2717
|
|
12
|
-
fsspec/exceptions.py,sha256=xcS7LiRrQ748kvOB9mrUR14kpjNztrHgEkZWi9M-VaI,330
|
|
13
|
-
fsspec/fuse.py,sha256=66amOa6wdIbS0DMhhfAPUoOB37HPorfXD1izV0prmTY,10145
|
|
14
|
-
fsspec/generic.py,sha256=jIA7wBwtUzJhTth78PTzWbOBjGom2e4IjmQ_KBSlHPg,13575
|
|
15
|
-
fsspec/gui.py,sha256=XKoXZpUhRE7jOhRCJH4-jRbKhVu56aS8h9tecvPD3nc,13932
|
|
16
|
-
fsspec/mapping.py,sha256=hSsiRo-dgAOj6oHf67bF3i11U4xREglXToHGUX4GhRY,8261
|
|
17
|
-
fsspec/parquet.py,sha256=qVxDhwc960SGOt5etcYAJxCr-7HQKP01687KpDR02Gw,19463
|
|
18
|
-
fsspec/registry.py,sha256=VjnfGUg39lvlCDxOoGSeYm8UL12wZC5yQ5n8-W92eD0,11173
|
|
19
|
-
fsspec/spec.py,sha256=3t96RgizRN_slIuHXnuR0bXjVUfBS1TfuDrEua4oQvE,66277
|
|
20
|
-
fsspec/transaction.py,sha256=xliRG6U2Zf3khG4xcw9WiB-yAoqJSHEGK_VjHOdtgo0,2398
|
|
21
|
-
fsspec/utils.py,sha256=kYBiiw_0AEFJPCYwYlbZ7QxiGwuXdaaxrK6KM3mcFak,23052
|
|
22
|
-
fsspec/implementations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
|
-
fsspec/implementations/arrow.py,sha256=_7TLuV6ZzNlpmUU_v6ud56u2wadzsKmY5qugPBxgMEs,8649
|
|
24
|
-
fsspec/implementations/cache_mapper.py,sha256=iHgBA6gjzDJ7_mBboHFzpLTf55HP3UEwUOZ43xyUK4M,2429
|
|
25
|
-
fsspec/implementations/cache_metadata.py,sha256=ZvyA7Y3KK-5Ct4E5pELzD6mH_5T03XqaKVT96qYDADU,8576
|
|
26
|
-
fsspec/implementations/cached.py,sha256=CuxQXQ6f-MRnLvsRzvauEhpmXEgicZZCfViKjIu1kn4,33029
|
|
27
|
-
fsspec/implementations/dask.py,sha256=CXZbJzIVOhKV8ILcxuy3bTvcacCueAbyQxmvAkbPkrk,4466
|
|
28
|
-
fsspec/implementations/data.py,sha256=LDLczxRh8h7x39Zjrd-GgzdQHr78yYxDlrv2C9Uxb5E,1658
|
|
29
|
-
fsspec/implementations/dbfs.py,sha256=cix9OYUveuSOx5UO5uRUwNUkYqjzyY0fkKnca1kTgZ0,15014
|
|
30
|
-
fsspec/implementations/dirfs.py,sha256=inDIRSDPhI1_ud1MMBFrpZQ11VIAMJ_dZQtbE4V08Ng,11384
|
|
31
|
-
fsspec/implementations/ftp.py,sha256=rp6cTog8xqjDPlKdSLKcsyP7K593_ByMabxGbNSEpTo,11655
|
|
32
|
-
fsspec/implementations/git.py,sha256=vKGI-Vd5q4H2RrvhebkPc9NwlfkZ980OUGhebeCw-M0,4034
|
|
33
|
-
fsspec/implementations/github.py,sha256=0kIiKkeAaROuHgdWBHVQFrzJ2ZfoDgymCehL_kJXHYA,7565
|
|
34
|
-
fsspec/implementations/http.py,sha256=yr6t0OhLwZx_pvNQ05detAehcQjRw0Pg6XdwWv81jxk,29601
|
|
35
|
-
fsspec/implementations/jupyter.py,sha256=B2uj7OEm7yIk-vRSsO37_ND0t0EBvn4B-Su43ibN4Pg,3811
|
|
36
|
-
fsspec/implementations/libarchive.py,sha256=5_I2DiLXwQ1JC8x-K7jXu-tBwhO9dj7tFLnb0bTnVMQ,7102
|
|
37
|
-
fsspec/implementations/local.py,sha256=XLsBoG4lf92w5ZddmbHXcStThSYxHgeoJEd2Mp5Uo0Y,14327
|
|
38
|
-
fsspec/implementations/memory.py,sha256=tlaGCekgZ2Z_9n8B6hsSpo6_V89PwjugkOmD445QrqE,9778
|
|
39
|
-
fsspec/implementations/reference.py,sha256=3dPi55riD_cROCafpeoUm2Xbb1vpXpyQijl09f5jTsE,43871
|
|
40
|
-
fsspec/implementations/sftp.py,sha256=fMY9XZcmpjszQ2tCqO_TPaJesaeD_Dv7ptYzgUPGoO0,5631
|
|
41
|
-
fsspec/implementations/smb.py,sha256=_hR5MKwDUCi3u5zEzvnenIWRIGPMhuUryWRYvNSp0WE,10804
|
|
42
|
-
fsspec/implementations/tar.py,sha256=dam78Tp_CozybNqCY2JYgGBS3Uc9FuJUAT9oB0lolOs,4111
|
|
43
|
-
fsspec/implementations/webhdfs.py,sha256=wqVfno7z0TY1HepaIvKTUUcl_bi5NkV6qWsST8t_s7Y,16745
|
|
44
|
-
fsspec/implementations/zip.py,sha256=vc1fNz-yO8uWQ9bQUqBFYpTcgsfZQq9vDwwg4Aufs9Y,4417
|
|
45
|
-
fsspec/tests/abstract/__init__.py,sha256=i1wcFixV6QhOwdoB24c8oXjzobISNqiKVz9kl2DvAY8,10028
|
|
46
|
-
fsspec/tests/abstract/common.py,sha256=1GQwNo5AONzAnzZj0fWgn8NJPLXALehbsuGxS3FzWVU,4973
|
|
47
|
-
fsspec/tests/abstract/copy.py,sha256=gU5-d97U3RSde35Vp4RxPY4rWwL744HiSrJ8IBOp9-8,19967
|
|
48
|
-
fsspec/tests/abstract/get.py,sha256=vNR4HztvTR7Cj56AMo7_tx7TeYz1Jgr_2Wb8Lv-UiBY,20755
|
|
49
|
-
fsspec/tests/abstract/put.py,sha256=7aih17OKB_IZZh1Mkq1eBDIjobhtMQmI8x-Pw-S_aZk,21201
|
|
50
|
-
fsspec-2024.3.1.dist-info/LICENSE,sha256=LcNUls5TpzB5FcAIqESq1T53K0mzTN0ARFBnaRQH7JQ,1513
|
|
51
|
-
fsspec-2024.3.1.dist-info/METADATA,sha256=Wv4QVGqB4lYfHfgP-Cfby1Nce57WYXXAhH0f6Ju5FUM,6786
|
|
52
|
-
fsspec-2024.3.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
53
|
-
fsspec-2024.3.1.dist-info/top_level.txt,sha256=blt2pDrQDwN3Gklcw13CSPLQRd6aaOgJ8AxqrW395MI,7
|
|
54
|
-
fsspec-2024.3.1.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
fsspec
|
|
File without changes
|