Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

A Flask extension to help interact with BearyChat

Project Description

Flask-BearyChat is a Flask Extension to help you work with BearyChat.

Installation

$ pip install flask-bearychat

Usage

from flask import Flask
from flask.ext.bearychat import BearyChat

app = Flask(__name__)
app.config['BEARYCHAT_TOKEN'] = 'token-from-bearychat-robot'
app.config['BEARYCHAT_CALLBACK'] = '/hook'
bearychat = BearyChat(app)

@bearychat.command('hello')
def list(**kwargs):
    username = kwargs.get('username')
    text = 'Hello, %s' % username
    return bearychat.response(text=text)

if __name__ == '__main__':
    app.run()

Release history Release notifications

This version
History Node

0.2.0

History Node

0.1.1

History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
Flask-BearyChat-0.2.0.macosx-10.9-x86_64.exe (66.6 kB) Copy SHA256 hash SHA256 Windows Installer any Jan 28, 2016
Flask-BearyChat-0.2.0.tar.gz (3.1 kB) Copy SHA256 hash SHA256 Source None Jan 28, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page