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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Flask-BearyChat-0.2.0.tar.gz.
File metadata
- Download URL: Flask-BearyChat-0.2.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c8f4b52de01cda1671703d3234578ffa4a51c00d3d057d729e9ffc1e4b1cf5d
|
|
| MD5 |
bfe9fcd57a0aedb455503207946dcf48
|
|
| BLAKE2b-256 |
b184bd189e774b61a920afe148b5c0a4b05bcaf0bfffd65083c01780e3257125
|
File details
Details for the file Flask-BearyChat-0.2.0.macosx-10.9-x86_64.exe.
File metadata
- Download URL: Flask-BearyChat-0.2.0.macosx-10.9-x86_64.exe
- Upload date:
- Size: 66.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b0c699ece22f925b9c6ee9cf1c365a2360761440f0825a23505544e894693ef
|
|
| MD5 |
4ccac9f8e6779ffd32ebe4e10651eb04
|
|
| BLAKE2b-256 |
7bbaa5e420ec24a914bdfa9c5d681d96f057d96e3b01400401d6544dd02f5408
|