No project description provided
Project description
fsspec proxy and client
Allows reading/writing files via standard fsspec/python operations via a proxy which doesn't expose any of its internal credentials.
This is particularly useful for pyscript, which cannot call the backend packages required to talk to remote filesystems, like botocore.
Quickstart
Install the two sub-packages:
- fsspec-proxy, a fastAPI-based server which reads/writes to configured storage locations
- pyscript-fsspec-client, a filesystem implementation that connects to the proxy, allowing even pyscript to access bytes in remote stores
Now run:
$ fsspec-proxy dev
to start the (unsecured) proxy server, with port 8000. Further arguments will be passed to fastAPI to configure, for example, the port and address to listen on.
The default config in config.yaml has entry "Conda Stats",
which is available anonymously from S3. The location of the config
file to read can be set with FSSPEC_PROXY_CONFIG. Optionally, the
server can be reconfigured via an API call.
WARNING: the proxy server does not currently implement secure connections or auth. It can be regarded as a prototype to base production-level implementations on.
Demo
With the server running locally, now navigate to: https://martindurant.pyscriptapps.com/empty-tundra/latest/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fsspec_proxy-0.1.0.tar.gz.
File metadata
- Download URL: fsspec_proxy-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8d51271d3d369030ec07fdc29413f0b32f32645870961cc6b8e035474f82d0a
|
|
| MD5 |
824a43e72c3d0cd71fb5e47793f865df
|
|
| BLAKE2b-256 |
877efcaf4c253b8961c496450d26cbb640768ad73383e388aa0e6f44c61acaea
|
File details
Details for the file fsspec_proxy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fsspec_proxy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d93d35899d2269979cd0735f7f10840e5f5da7ce7ab2bbf385c840a10fe7b277
|
|
| MD5 |
158ce24683036f9e6371fb208d4424dc
|
|
| BLAKE2b-256 |
a64d9ca86ae77ad1ae39e36b746ae1e375a91a6d4d436775c5041247f438798b
|