An asyncio client talk to deluged
Project description
✨ 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"): ...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiodeluge-0.1.0.tar.gz
(8.3 kB
view details)
Built Distribution
File details
Details for the file aiodeluge-0.1.0.tar.gz
.
File metadata
- Download URL: aiodeluge-0.1.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f391979f7af848a9fbea9a9a244d0a9f80c63d9118fedf46ac053d98218f391 |
|
MD5 | b6b20de8dc1a043b3e943b7234c6a6b2 |
|
BLAKE2b-256 | c73c27630edeabc067598f8109fd85251f584a94d733aac51f163476421f3469 |
File details
Details for the file aiodeluge-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: aiodeluge-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f29ff126e5b85c35a59e14fe9903272f6fca6e3b1e6263f6c250f8889291cfa8 |
|
MD5 | 787d6ad3f40dc13353cfbd38f74c803b |
|
BLAKE2b-256 | b8b97124a2b12432ca246d9e77204dad5026eeacf10a0127c26b04c30a8fd9ce |