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 | Provenance | Actions |
|---|---|---|---|---|
| aseafile-0.1.6a0.tar.gz | 12.4 kB | Without provenance | Details for aseafile-0.1.6a0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aseafile-0.1.6a0-py3-none-any.whl | Python 3 | none | any | Details for aseafile-0.1.6a0-py3-none-any.whl |
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
|
Security for aseafile 0.1.6a0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.