Skip to main content

Very simple kakaotalk LOCO/HTTP API protocol wrapper for python.

Project description

kakao.py

kakao.py is a very simple kakaotalk LOCO/HTTP API protocol wrapper for python.

Introduction

Loco protocol compatible python library

This is discord.py style rewritten version of KakaoBot.

DO NOT USE IN ABUSING. ABUSING CAN CAUSE PERMANENT SERVICE RESTRICTION.

Quick Start

import kakao

class Myclass(kakao.Client):
    async def on_ready(self):
        print("Logged on")
    async def on_message(self, chat):
        if chat.message == "ping":
            await chat.reply("pong!")
            
kakao.check_reg("LoginId", "LoginPw")
client = Myclass("LoginId", "LoginPw")
client.run()

Quick Start (Bot)

import kakao
from kakao.ext import commands
from kakao.ext.commands import Bot


@commands.command()
async def ping(ctx):
    await ctx.reply("pong")
    return


kakao.check_reg("LoginId", "LoginPw")
bot = Bot("/", LoginId="LoginId", LoginPw="LoginPw")
bot.add_command(ping)
bot.run()

Thanks to (Forked from)

ksaidev/KakaoBot (Commit 8df8cf3)

License

MIT Licence

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kakao.py-0.3.0-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file kakao.py-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: kakao.py-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for kakao.py-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a7a6a807c1361db5aef17330f50a29826e8280c2482752918f197128bb57d7d5
MD5 e34aff9ecc383c98d2316bdc383f8dad
BLAKE2b-256 6e808a5edf68cd60c6135ca355f8c2ee5af67d77b37970f0a4af23f7a5c47af8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page