Skip to main content

py.kyodo

PyPi Version Python Version Issues Pull requests

Basic library to talk with Kyodo servers. Based on HTTPX and websockets libraries.

Important notices

This lib is async only.

This lib is only demonstration and contain basic things. Please consider to take it as research object that can be improved. Thanks in advance.

PRs and issues are welcome.

Basic example

import logging
from asyncio import run
from datetime import datetime
from kyodo import Client, Socket
from kyodo.utils.objects import Message

async def process_message(client: Client, message: Message) -> None:
	# do smth with messages, idk
    
async def main():
    logging.basicConfig(
        level=logging.INFO,
        filename="logs/{}.log".format(datetime.now().strftime("%Y-%m-%d %H:%M:%S")),
        format="[%(asctime)s / %(levelname)s] %(name)s -> %(message)s",
    )
    logging.info("Configuration loaded...")
    client = Client()
    await client.login(email, password)
    logging.info("Client logged in...")
    socket = Socket(client, process_message)
    logging.info("Socket initialized, starting listening...")
    print("Starting now!")
    await socket.listen_forever()
    
try:
    run(main())
except KeyboardInterrupt:
    logging.info("KeyboardInterrupt received, exiting...")
    print("Exiting...")
    exit(0)

Discord server

Metadata

Release files for py.kyodo 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py.kyodo 1.0.1
File Size Uploaded
py_kyodo-1.0.1.tar.gz 9.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py.kyodo 1.0.1
File Interpreter ABI Platform
py_kyodo-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 20.8 kB

Release files / py_kyodo-1.0.1.tar.gz

Download URL py_kyodo-1.0.1.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cab09a72e4926e3600e85adbf99de5529438131ee3d9da2d467342d285a139a9
BLAKE2b-256 checksum
How to use checksums
3a06e2c17e49b5a5ebf652d54dce0ec30c4b4108d7fd00442cb68554877803b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / py_kyodo-1.0.1-py3-none-any.whl

Download URL py_kyodo-1.0.1-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f1029f5665676aafff6478e181a69a1d7bf9e6c1a6ea34d5df0c5fe3f74bee24
BLAKE2b-256 checksum
How to use checksums
a0d290680b34fe8f26b00d046ff35527526d085a671fd06e2b964388d5214ce7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page