This release is a pre-release and may not be stable for production use.
aseafile
Asynchronous seafile
Unofficial library that provides the API methods of the seafile service
Installation
pip install aseafile --upgrade
Features
This library is asynchronous
At the moment, the library has support several sections of the seafile web api:
Currently, only version 2.1 of the seafile web api is supported
Dependencies
python version 3.10 minimum required
Requirements python libraries:
Getting started
Creating an instance of http client and verifying that the service is running using the "ping" method:
import asyncio
from aseafile import SeafileHttpClient
async def main():
client = SeafileHttpClient(base_url='http://seafile.example.com')
result = await client.ping()
print(result.content) # pong
if __name__ == '__main__':
asyncio.run(main())
Obtaining access token and sending "auth ping":
import asyncio
from aseafile import SeafileHttpClient
async def main():
client = SeafileHttpClient(base_url='http://seafile.example.com')
token_result = await client.obtain_auth_token(username='my@example.com', password='Test123456')
result = await client.auth_ping(token=token_result.content)
print(result.content) # pong
if __name__ == '__main__':
asyncio.run(main())
Authorization in the service with automatic token saving and sending "auth ping":
import asyncio
from aseafile import SeafileHttpClient
async def main():
client = SeafileHttpClient(base_url='http://seafile.example.com')
await client.authorize(username='my@example.com', password='Test123456')
result = await client.auth_ping()
print(result.content) # pong
if __name__ == '__main__':
asyncio.run(main())
Contributing
free
Metadata
Release files for aseafile 0.1.6a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aseafile-0.1.6a0.tar.gz | 12.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aseafile-0.1.6a0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.3 kB
Release files / aseafile-0.1.6a0.tar.gz
| Download URL | aseafile-0.1.6a0.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72433726f68e80bbd29d4b45d676be007e13aac134c996fee5e6ead155750d57
|
|
BLAKE2b-256 checksum How to use checksums |
f3fea2188f275036f86b679d6ff374a5e62352ffe3866e1d403c9e33cd01d7de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Release files / aseafile-0.1.6a0-py3-none-any.whl
| Download URL | aseafile-0.1.6a0-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6a991dc73e02773a9d3b1e4ebd32c84a68a017e87ad7ef8d6c59b04b78c0362
|
|
BLAKE2b-256 checksum How to use checksums |
cfd5a3f56e1fb10ada625e77790868845b3f0baa2fc11004588b4d01b97bb32e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|