Skip to main content

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aioseaweedfs-0.3.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file aioseaweedfs-0.3.1.tar.gz.

File metadata

  • Download URL: aioseaweedfs-0.3.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for aioseaweedfs-0.3.1.tar.gz
Algorithm Hash digest
SHA256 ac9c376b4365a23cf1ecb76d1fe66f00ee7c155e43a403669ae3fd2b3a021713
MD5 debb8ce83cc758329d889471b81413d6
BLAKE2b-256 f1dd2387cbaf5c498e2ce0f36024d8ac938e055c664466ef67fd99b4841f5199

See more details on using hashes here.

File details

Details for the file aioseaweedfs-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: aioseaweedfs-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for aioseaweedfs-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6bb7b63d17edc36df3b38fa15895bdde28ac3bcf297ce05eb0cdeb50961c72c
MD5 7785376120c8171932fc0e93f5a81dbe
BLAKE2b-256 720e85eb9e5aef569842b6885adbff3614033096ec38fc7acb6ad3e6d2c7d49f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page