Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Super simple framework for Kakaotalk auto-reply bot based on aiohttp

Project Description

Super simple framework for Kakaotalk auto-reply bot based on aiohttp

Example

From examples/simple_echo.py:

from kakaobot import KakaoBot

bot = KakaoBot()

@bot.on_message
async def handle_message(message, **args):
    if args['type'] == 'text':
        return 'Echoing: %s' % message
    else:
        return 'Cannot understand'

if __name__ == '__main__':
    bot.run(host='0.0.0.0', port=8080)

Nice, isn’t it?

Why not Flask or Django?

Because setting up full Flask/Django development environment is a bit of pain, especially for this kind of tiny application with no front-end view. It is well-known using default development server for Flask/Django is not the way you run your web application. But in aiohttp, it is. That’s why I chose aiohttp.

Release History

Release History

This version
History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python_kakaobot-0.0.2-py3-none-any.whl (5.8 kB) Copy SHA256 Checksum SHA256 py3 Wheel Dec 19, 2017
python-kakaobot-0.0.2.tar.gz (3.0 kB) Copy SHA256 Checksum SHA256 Source Dec 19, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting