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.0a2.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.0a2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for files_sdk_local-0.1.0a2.tar.gz
Algorithm Hash digest
SHA256 e14910c747b9fcfe13d27c0566793d566c7d2c5aa3376a9d69dc475a1fe75b1f
MD5 4e20c75edd4dbaac9a4b080c1baae165
BLAKE2b-256 d84ffba064d483d2f1f79acc6b73820b1f92c2cf497d2777fba5133c735a4155

See more details on using hashes here.

Provenance

The following attestation bundles were made for files_sdk_local-0.1.0a2.tar.gz:

Publisher: release.yml on menelsystems/files-sdk-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for files_sdk_local-0.1.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 4a198306d739dba55f9647ad725a27c0a0ba66e8af0671e687d2be23f8833201
MD5 d8946ab2fe6a10333679daab523271db
BLAKE2b-256 9198637bf50076f351fa7eab1cd67262671df9ff050ae2f89b015286f7e21d0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for files_sdk_local-0.1.0a2-py3-none-any.whl:

Publisher: release.yml on menelsystems/files-sdk-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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