Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyscript_fsspec_client-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyscript_fsspec_client-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file pyscript_fsspec_client-0.1.0.tar.gz.

File metadata

  • Download URL: pyscript_fsspec_client-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyscript_fsspec_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 abc603c70eb1f3524fe91a285cfdfab08252c5d1ffd8b53a93092ab47beea1be
MD5 4cf88aa4603b07b214ab34f72d3b250f
BLAKE2b-256 11cde9b5f69284f3014710a881eb22373c607fc33c42bec9e34a38d1b7ba42c5

See more details on using hashes here.

File details

Details for the file pyscript_fsspec_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyscript_fsspec_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b5830d2eb54db549c56fa2117a71f90b2090ef4bb4bc84d65f915c988d0396b
MD5 caae730d99419c2fb81ea94048167559
BLAKE2b-256 b67b030c370d402223a982cd756e5317499a5689a1f657a834dacfd1355869ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page