https://github.com/zincware/rclone-filesystem
https://github.com/zincware/rclone-filesystem
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zincware/rclone-filesystem
- Owner: zincware
- License: apache-2.0
- Created: 2025-06-13T06:25:35.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-13T06:34:28.000Z (12 months ago)
- Last Synced: 2025-07-17T10:33:28.502Z (11 months ago)
- Language: Python
- Size: 88.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RCloneFileSystem: fsspec-Compatible Filesystem via rclone
This package provides a fsspec compliant filesystem interface for rclone.
Given an rclone remove `rclone config create myremote s3 ...` you can use the `RCloneFileSystem` as follows:
```py
from rclone_filesystem import RCloneFileSystem
fs = RCloneFileSystem(remote="myremote")
fs.ls("data") # path, e.g. bucket name for S3
with fs.open("data/test-file.txt", "wb") as f:
f.write(b"Hello, World!")
with fs.open("data/test-file.txt", "rb") as f:
content = f.read()
assert content == b"Hello, World!"
```