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
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.1.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for aioseaweedfs-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 868680282f7513338bfb05598d731a3b36d668ce149e9021d891e7d7e6925ab0 |
|
MD5 | 2128c083f0db1d3f17559bb516db105e |
|
BLAKE2b-256 | 0ce041bda266c48ba4ec0f4bfee5cebea57e2d0627ed3ac6319719396daf7c85 |