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>.jsonrecords content-type and user metadata. signed_upload_url()is NOT supported (no signing authority on local fs) — raisesFilesError(code="invalid_input"). The class attributesupports_signed_upload = Falselets the conformance suite skip cleanly.url(key, public=False)returnsfile://.... Withpublic=Trueandpublic_url_base=(or envFILES_SDK_LOCAL_PUBLIC_URL_BASE) it returns<base>/<key>— useful when a webserver servesrootover HTTP.- Keys are sanitized: anything that resolves outside
rootraisesFilesError(code="invalid_input").
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f109d73e40a474a61dd9dc5741ba5dcdf00984d933f408e1376513bf32564716
|
|
| MD5 |
c3207a691aa878d10d077b2d3d30806d
|
|
| BLAKE2b-256 |
ec19305bde468ea2ba93ae9b1ae88c7d0abbce24ee13ad30fb3462b32ce75124
|
File details
Details for the file files_sdk_local-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: files_sdk_local-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b74964ee93027cdc79e0056f1158234512470ca3c1aab5dec61640a416ee7a36
|
|
| MD5 |
01e6fd81920fccf31c974430d39f5e8e
|
|
| BLAKE2b-256 |
13ed43566e088d864d8cccaa7d13af41a62bdcf0bf62eeec98317bbc1d65b6f6
|