Skip to main content

Local filesystem adapter for files-sdk — zero deps, ideal for dev/test

Project description

files-sdk-local

Local filesystem adapter for files-sdk. Zero extra dependencies. Ideal for dev, tests, demos, and offline tooling.

from files_sdk import Files
from files_sdk_local import LocalAdapter

files = Files(adapter=LocalAdapter(root="/tmp/my-store"))
files.upload("hello.txt", b"hi")
print(files.download("hello.txt").text())

Notes

  • Objects live at <root>/<key>. Subdirectories are auto-created.
  • Sidecar metadata at <root>/.files-sdk-meta/<key>.json records content-type and user metadata.
  • signed_upload_url() is NOT supported (no signing authority on local fs) — raises FilesError(code="invalid_input"). The class attribute supports_signed_upload = False lets the conformance suite skip cleanly.
  • url(key, public=False) returns file://.... With public=True and public_url_base= (or env FILES_SDK_LOCAL_PUBLIC_URL_BASE) it returns <base>/<key> — useful when a webserver serves root over HTTP.
  • Keys are sanitized: anything that resolves outside root raises FilesError(code="invalid_input").

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

files_sdk_local-0.1.0a1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

files_sdk_local-0.1.0a1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file files_sdk_local-0.1.0a1.tar.gz.

File metadata

  • Download URL: files_sdk_local-0.1.0a1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for files_sdk_local-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 f109d73e40a474a61dd9dc5741ba5dcdf00984d933f408e1376513bf32564716
MD5 c3207a691aa878d10d077b2d3d30806d
BLAKE2b-256 ec19305bde468ea2ba93ae9b1ae88c7d0abbce24ee13ad30fb3462b32ce75124

See more details on using hashes here.

File details

Details for the file files_sdk_local-0.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for files_sdk_local-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 b74964ee93027cdc79e0056f1158234512470ca3c1aab5dec61640a416ee7a36
MD5 01e6fd81920fccf31c974430d39f5e8e
BLAKE2b-256 13ed43566e088d864d8cccaa7d13af41a62bdcf0bf62eeec98317bbc1d65b6f6

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