ikakao
Kakao i Open Builder SDK (Currently WIP)
Roadmap
Supported Components
- SimpleText
- SimpleImage
- ListCard
- BasicCard (Partial support)
- CommerceCard
- Carousel (Partial support)
- QuickReply (Partial support)
Usage Examples
Here are some examples demonstrating various types of skill responses.
Simple Text
import json
from ikakao.skill import Response
r = Response("Hello, Kakao i!")
print(json.dumps(r.to_dict(), indent=2))
Output:
{
"version": "2.0",
"template": {
"outputs": [
{
"simpleText": {
"text": "Hello, Kakao i!"
}
}
]
}
}
Multiple Text w/ Quick Reply
import json
from ikakao.skill import Response
r = Response("Hello", "Kakao", "i", quick_replies="Home")
print(json.dumps(r.to_dict(), indent=2))
Output:
{
"version": "2.0",
"template": {
"outputs": [
{
"simpleText": {
"text": "Hello"
}
},
{
"simpleText": {
"text": "Kakao"
}
},
{
"simpleText": {
"text": "i"
}
}
],
"quickReplies": [
{
"label": "Home",
"action": "message",
"messageText": "Home"
}
]
}
}
Carousel
import json
from ikakao.skill import Response, BasicCard, Carousel
carousel = Carousel(
BasicCard("Title #1", "Description"),
BasicCard("Title #2", "Description"),
BasicCard("Title #3", "Description"),
)
r = Response("Carousel Example", carousel, quick_replies=["Home", "Cancel"])
print(json.dumps(r.to_dict(), indent=2))
Output:
{
"version": "2.0",
"template": {
"outputs": [
{
"simpleText": {
"text": "Carousel Example"
}
},
{
"carousel": {
"type": "basicCard",
"items": [
{
"title": "Title #1",
"description": "Description"
},
{
"title": "Title #2",
"description": "Description"
},
{
"title": "Title #3",
"description": "Description"
}
]
}
}
],
"quickReplies": [
{
"label": "Home",
"action": "message",
"messageText": "Home"
},
{
"label": "Cancel",
"action": "message",
"messageText": "Cancel"
}
]
}
}
ListCard
import json
from ikakao.skill import Response, ListCard, ListItem
list_card = ListCard(
"Header",
"Item #1",
ListItem("Item #2", link="http://example.com"),
buttons=["Button #1", "Button #2"],
)
r = Response("ListCard Example", list_card, quick_replies=["Home", "Cancel"])
print(json.dumps(r.to_dict(), indent=2))
Output:
{
"version": "2.0",
"template": {
"outputs": [
{
"simpleText": {
"text": "ListCard Example"
}
},
{
"listCard": {
"header": {
"title": "Header"
},
"items": [
{
"title": "Item #1"
},
{
"title": "Item #2",
"link": {
"web": "http://example.com"
}
}
],
"buttons": [
{
"label": "Button #1",
"action": "message",
"messageText": "Button #1"
},
{
"label": "Button #2",
"action": "message",
"messageText": "Button #2"
}
]
}
}
],
"quickReplies": [
{
"label": "Home",
"action": "message",
"messageText": "Home"
},
{
"label": "Cancel",
"action": "message",
"messageText": "Cancel"
}
]
}
}
Metadata
Release files for ikakao 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ikakao-0.1.0.tar.gz | 5.5 kB | Without provenance | Details for ikakao-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ikakao-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ikakao-0.1.0-py3-none-any.whl |
Total release size: 12.3 kB
Release files / ikakao-0.1.0.tar.gz
| Download URL | ikakao-0.1.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d56aff5523dc221425b174900aa23cb9f15342f065b68aafa7f6eafaae5290d
|
|
BLAKE2b-256 checksum How to use checksums |
d434bfb1f2583cea20f5f985334c26192d825c50f0c1c13b7604224885f67f2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.9
|
Release files / ikakao-0.1.0-py3-none-any.whl
| Download URL | ikakao-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f498fa289296fe408ce45371936981bb26f95ff3c780cf132c637394df34cba
|
|
BLAKE2b-256 checksum How to use checksums |
cafdbaa82e9eb503b802332ecbc789e475ba3b45d8bdddcc31cb132d8f712023
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.9
|
Security for ikakao 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.