redis-fs
A unified file-system-like storage API with Redis and local filesystem backends.
Features
- Unified API: Same interface regardless of backend
- Async-first: Built on
asyncio - Flexible backends: Local FS, Redis, or both
- Automatic sync: Mirror Redis changes to local filesystem
- Bulk operations: Upload/download entire directory trees
- Upstash support: Works with Upstash Redis for serverless
Installation
# With uv (recommended)
uv add redis-fs
# With pip
pip install redis-fs
Quick Start
import asyncio
from redis_fs import RedisFs
async def main():
# Filesystem only
async with RedisFs(fs_root="/tmp/data") as rfs:
await rfs.write_text("hello.txt", "Hello, World!")
content = await rfs.read_text("hello.txt")
print(content)
# Redis only
async with RedisFs(redis="redis://localhost:6379", redis_prefix="myapp") as rfs:
await rfs.write_text("config.json", '{"debug": true}')
# Both with sync
async with RedisFs(
redis="redis://localhost:6379",
redis_prefix="myapp",
fs_root="/tmp/data"
) as rfs:
await rfs.start_sync()
await rfs.write_text("data.txt", "Synced!")
await rfs.stop_sync()
asyncio.run(main())
Documentation
See the full documentation for:
License
MIT License - see LICENSE for details.
Metadata
Release files for redis-fs 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| redis_fs-0.1.0.tar.gz | 10.5 kB | Without provenance | Details for redis_fs-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| redis_fs-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for redis_fs-0.1.0-py3-none-any.whl |
Total release size: 22.9 kB
Release files / redis_fs-0.1.0.tar.gz
| Download URL | redis_fs-0.1.0.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc7ab7fe8627d6ac6d0ab4be17b9e5a2f847df4e05ca4c746c6e9678d37f5b08
|
|
BLAKE2b-256 checksum How to use checksums |
ab1c5ef8d2e583bd21e2bde6e58f8a74c43905a505f78a90ed8fb0b6d9140499
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Pop!_OS","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / redis_fs-0.1.0-py3-none-any.whl
| Download URL | redis_fs-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f710597e5481a67ee216c6df0cbc7a9dca9660792719d20995ac6762735a3fc1
|
|
BLAKE2b-256 checksum How to use checksums |
54c60916dd3a7908a1bd24979af8c28ccaf298d0e7ec19e69e6b80df1e094274
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Pop!_OS","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for redis-fs 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.