Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Asynchronous tus (tus.io) client library

License

NotificationsYou must be signed in to change notification settings

JenSte/aiotus

Repository files navigation

License: Apache 2.0Python VersionsMypy CheckedCode Style: black
CI StatusCode CoverageQuality GateDocumentation StatusPyPI Package Version

aiotus implements the client-side of thetus protocol.

Features

  • Implements thecore protocol aswell as thecreationandconcatenation extensions.
  • Built-in retry support in case of communication errors.
  • Extensive test bench, including tests against the referencetusd server.

Usage

importaiotuscreation_url="http://example.com/files"metadata= {"Filename":"image.jpeg".encode(),"Content-Type":"image/jpeg".encode()}# Upload a file to a tus server.withopen("image.jpeg","rb")asf:location=awaitaiotus.upload(creation_url,f,metadata)# 'location' is the URL where the file was uploaded to.# Read back the metadata from the server.metadata=awaitaiotus.metadata(location)

Requirements

Installation

Installaiotus fromPyPi:

pip install aiotus

Development versions can be installed fromTestPyPi:

pip install --index-url https://test.pypi.org/simple --extra-index-url https://pypi.org/simple aiotus

Documentation

The documentation can be found ataiotus.readthedocs.io.

License

aiotus is licensed under the Apache 2.0 license.


[8]ページ先頭

©2009-2025 Movatter.jp