Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hwonyo/flask-clova
python module for Clova Extension Kit
https://github.com/hwonyo/flask-clova
cek cek-sdk clova clova-extension-kit extension flask flask-cek flask-clova python-cek python-clova
Last synced: 23 days ago
JSON representation
python module for Clova Extension Kit
- Host: GitHub
- URL: https://github.com/hwonyo/flask-clova
- Owner: hwonyo
- License: mit
- Created: 2018-05-10T11:25:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:11:07.000Z (almost 2 years ago)
- Last Synced: 2024-10-01T16:56:01.198Z (about 1 month ago)
- Topics: cek, cek-sdk, clova, clova-extension-kit, extension, flask, flask-cek, flask-clova, python-cek, python-clova
- Language: Python
- Homepage:
- Size: 49.8 KB
- Stars: 5
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# flask_clova
[![PyPI](https://img.shields.io/pypi/v/flask_clova.svg?v=1&maxAge=3601)](https://pypi.python.org/pypi/flask_clova)
[![PyPI](https://img.shields.io/pypi/l/flask_clova.svg?v=1&maxAge=2592000?)](https://pypi.python.org/pypi/flask_clova)SDK of CEK (Clova Extension Kit) for Python
> All the structure and ideas were copied after seeing [flask-ask](https://github.com/johnwheeler/flask-ask)# About flask_clova
## Table of Contents
* [Install](#install)
* [Basics](#basics)
* [Test](#test)
* [WorkToDo](#worktodo)## Install
```
# setup requires will automatically installed in version >= 0.0.4
# pip install PyYAML
# pip install Flaskpip install flask_clova
```## Basics
```python
from flask import Flask
from flask_clova import Clova, statement, question, sayapp = Flask(__name__)
# must set CLOVA_VERIFY_REQUESTS False
# while testing wihtout application_id
# app.config['CLOVA_VERIFY_REQUESTS'] = Falseclova = Clova(app, '/user_defined')
@clova.launch
def launch():
return question(say.Korean('시작했습니다'))@clova.intent('HelloIntent')
def play_game():
speech = "안녕하세요"
return statement(say.Korean(speech)).add_speech(say.English("Hello"))if __name__ == "__main__":
app.config['CLOVA_VERIFY_REQUESTS'] = False
app.run(port='5000', debug=True)
```## Test
```
>> pip install -r requirements-dev.txt
>> python -m unittest discover test/
```## WorkToDO
### Response
* not in progress
- card
- directives#### statement
* support shouldEndSession true
- [x] SimpleSpeech
- [x] SpeechList
- [ ] SpeechSet#### question
* support shouldEndSession false
- [x] SimpleSpeech
- [x] SpeechList
- [ ] SpeechSet#### repromt
* support repromt message
- [x] SimpleSpeech
- [ ] SpeechList
- [ ] SpeechSet### Request
#### Verify
* verify application id
- [x] verify#### LaunchRequest
* when extension launched
- [x] handler#### SessionEndedRequest
* when extension terminated
- [x] handler#### IntentRequest
* request with user intent
- [x] handler#### Glboal Request Attr
* Globalize variables in request
- [x] request
- [x] session
- [x] version
- [x] context