Skip to main content

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()

Project details


Download files

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

Source Distribution

Flask-BearyChat-0.2.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

Flask-BearyChat-0.2.0.macosx-10.9-x86_64.exe (66.6 kB view details)

Uploaded Source

File details

Details for the file Flask-BearyChat-0.2.0.tar.gz.

File metadata

File hashes

Hashes for Flask-BearyChat-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4c8f4b52de01cda1671703d3234578ffa4a51c00d3d057d729e9ffc1e4b1cf5d
MD5 bfe9fcd57a0aedb455503207946dcf48
BLAKE2b-256 b184bd189e774b61a920afe148b5c0a4b05bcaf0bfffd65083c01780e3257125

See more details on using hashes here.

File details

Details for the file Flask-BearyChat-0.2.0.macosx-10.9-x86_64.exe.

File metadata

File hashes

Hashes for Flask-BearyChat-0.2.0.macosx-10.9-x86_64.exe
Algorithm Hash digest
SHA256 5b0c699ece22f925b9c6ee9cf1c365a2360761440f0825a23505544e894693ef
MD5 4ccac9f8e6779ffd32ebe4e10651eb04
BLAKE2b-256 7bbaa5e420ec24a914bdfa9c5d681d96f057d96e3b01400401d6544dd02f5408

See more details on using hashes here.

Supported by

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