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.2.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for aioseaweedfs-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21ce8dd402433497818e19fc14b469531c83f9f67bcc62934544a340a50e9a54 |
|
MD5 | b1e937f7270ea7ef9e6376ff97355974 |
|
BLAKE2b-256 | 9ff5709771d353aac970daa819f078117f9554606cc2970f9c9182b92abb9d73 |