async client for seaweedfs
Project description
aioseaweedfs
This is an asyncio client for seaweedfs.
Installation
pip install aioseaweedfs
Basic Usage
import aioseaweedfs
async def main():
master = aioseaweedfs.Master()
volume, file_ids = await master.get_assign_key()
await volume.post(file_ids[0], "File Content")
content = await volume.get(file_ids[0])
Filer Usage
filer = aioseaweedfs.Filer()
await filer.post("/some/path/to/file.txt", "file contents", content_type="text/plain")
contents = await filer.get("/some/path/to/file.txt")
# contents will always be bytes
See Documentation
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
aioseaweedfs-0.3.1.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for aioseaweedfs-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6bb7b63d17edc36df3b38fa15895bdde28ac3bcf297ce05eb0cdeb50961c72c |
|
MD5 | 7785376120c8171932fc0e93f5a81dbe |
|
BLAKE2b-256 | 720e85eb9e5aef569842b6885adbff3614033096ec38fc7acb6ad3e6d2c7d49f |