✨ aiodeluge ✨
An asyncio deluge client talk to deluge
Usage
import asyncio
from aiodeluge import Client
async def main():
async with Client(timeout=10) as client:
print(
await client.send_request(
"daemon.login", "synodriver", "123456", client_version="2.1.1"
)
)
print(await client.send_request("core.get_auth_levels_mappings"))
print(await client.send_request("core.get_external_ip"))
print(await client.send_request("core.get_config"))
if __name__ == "__main__":
asyncio.run(main())
Public api
import ssl as ssl_
from typing import Callable, Dict, Optional, Union
class Client:
host: str
port: int
username: str
password: str
event_handlers: dict
ssl: ssl_.SSLContext
timeout: Union[int, float]
def __init__(
self,
host: str = "127.0.0.1",
port: Optional[int] = 58846,
username: Optional[str] = "",
password: Optional[str] = "",
event_handlers: Optional[Dict[str, Callable]] = None,
ssl: Optional[ssl_.SSLContext] = None,
timeout: Optional[Union[int, float]] = None,
): ...
async def connect(self): ...
async def disconnect(self): ...
async def send_request(self, method: str, *args, **kwargs): ...
async def __aenter__(self): ...
async def __aexit__(self, exc_type, exc_val, exc_tb): ...
def __eq__(self, other: "Client"): ...
Metadata
Release files for aiodeluge 0.1.0
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 |
|---|---|---|---|---|
| aiodeluge-0.1.0.tar.gz | 8.3 kB | Without provenance | Details for aiodeluge-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiodeluge-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aiodeluge-0.1.0-py3-none-any.whl |
Total release size: 16.9 kB
Release files / aiodeluge-0.1.0.tar.gz
| Download URL | aiodeluge-0.1.0.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f391979f7af848a9fbea9a9a244d0a9f80c63d9118fedf46ac053d98218f391
|
|
BLAKE2b-256 checksum How to use checksums |
c73c27630edeabc067598f8109fd85251f584a94d733aac51f163476421f3469
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Release files / aiodeluge-0.1.0-py3-none-any.whl
| Download URL | aiodeluge-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f29ff126e5b85c35a59e14fe9903272f6fca6e3b1e6263f6c250f8889291cfa8
|
|
BLAKE2b-256 checksum How to use checksums |
b8b97124a2b12432ca246d9e77204dad5026eeacf10a0127c26b04c30a8fd9ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Security for aiodeluge 0.1.0
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.