Catalog PyPI
PACKAGE EXPLORERView in registry

aiodeluge

PyPI

An asyncio client talk to deluged

asynciodeluge
Versions collected1
Direct dependencies2From release 0.1.0
Last observed21 Oct, 11:48 UTC

README

Version 0.1.0 documentation

✨ aiodeluge ✨

An asyncio deluge client talk to deluge

pypi python implementation wheel license action

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"): ...

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.014 Mar 20232

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
synodriver/aiodeluge

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:48 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:68896df76698ab2f5df900bc7888c05e12909f44ea6bb6a6df6fc4c4fa9e176c