Skip to main content

Next-gen conversation design tooling, makes it speedy and easy to send messages

Project description

🐍 Speedybot-python

For the impatient, just go here: quickstart.md

╔═╗ ╔═╗ ╔═╗ ╔═╗ ╔╦╗ ╦ ╦ ╔╗  ╔═╗ ╔╦╗ 
╚═╗ ╠═╝ ║╣  ║╣   ║║ ╚╦╝ ╠╩╗ ║ ║  ║  
╚═╝ ╩   ╚═╝ ╚═╝ ═╩╝  ╩  ╚═╝ ╚═╝  ╩

What is SpeedyBot?

SpeedyBot is a library makes it simple to build bots that are useful. It's user-friendly and lightweight conversation design tooling that anybody can use.

SpeedyBot makes it effortless to build powerful and user-valuable conversation agents.

Keep your eyes here for updates: https://speedybot.js.org

SpeedyCards

SpeedyBot abstracts over a lot of API details for you, but perhaps its most immediately useful feature is that it makes creating visually complex + rich Adpative Cards speedy and easy.

It's all the power of adaptive cards with none of the hassle or wrangling-- and you even get type'ing assistance

speedycard

Getting Started

pip install speedybot

Quickstart

from speedybot import SpeedyBot

## Setup/import your bot
## Get a bot token here: https://developer.webex.com/my-apps/new/bot
bot = SpeedyBot("__REPLACE__ME__")

## Send Messages
messsage = bot.send_to("valgaze@cisco.com", "here is **my message**")

## Reply to Messages
roomId = messsage['roomId']
messageId = messsage['id']

bot.reply(roomId, messageId, 'This is a reply')

## Cards + fun

## Unleash the power of cards!
# More info at our Buttons & Cards guide: https://developer.webex.com/docs/buttons-and-cards

card = bot.card() \
    .add_title('Earnest Shackleton Expedition') \
    .add_subtitle('Survival in the Antarctic Wilderness') \
    .add_text("As we embarked on the Earnest Shackleton Expedition, our success hinged on the equipment we carried. "
              "Our inventory was meticulously chosen to ensure our survival in the harsh Antarctic wilderness and guide us through "
              "uncharted territories. Here's what we packed:",
              horizontalAlignment="Center", color="Accent") \
    .add_table([
        ['Equipment', 'Quantity'],
        ['Maps', '2'],
        ['Compasses', '2'],
        ['Torches', '4'],
        ['Provisions', '10 months'],
        ['Rope', '50 meters'],
        ['First Aid Kit', '1'],
    ]) \
    .add_text("With these supplies, we were well-prepared to face the challenges that lay ahead") \
    .addLink('https://en.wikipedia.org/wiki/Ernest_Shackleton', 'Explore Earnest Shackleton Expedition') \

# Embed a card within the card
sub_card = bot.card() \
        .add_subtitle('The Harsh Antarctic Wilderness') \
        .add_text("The Earnest Shackleton Expedition took us to the unforgiving Antarctic wilderness, filled with extreme cold, isolation, and constant danger. "
                  "Our survival equipment was our lifeline in these remote landscapes, ensuring our safety and "
                  "enabling us to explore the unknown with confidence")

card.add_subcard(sub_card)
bot.send_to('valgaze@cisco.com', card)

Tests

python3 -m unittest tests/test.py

Publishing

poetry build
poetry publish

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

speedybot-0.5.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

speedybot-0.5.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file speedybot-0.5.2.tar.gz.

File metadata

  • Download URL: speedybot-0.5.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.9.13 Darwin/21.2.0

File hashes

Hashes for speedybot-0.5.2.tar.gz
Algorithm Hash digest
SHA256 fc8a7268cb6ed0971cfcefe815f7b58c10cd9f855dfd841e7715e0a2880b820e
MD5 a84236985bac8b31e5f2363dd185d0ad
BLAKE2b-256 450916d29aefdce409de3f36b7fc55e74ccd2178903c0238a90abf334ae6b80a

See more details on using hashes here.

File details

Details for the file speedybot-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: speedybot-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.9.13 Darwin/21.2.0

File hashes

Hashes for speedybot-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 77ea9295dfcf730940b75a66d01cb64165c40752b0aebcd546c595bb3b31f997
MD5 0ac0abaa2ff462ae88a2e2994f7aa43b
BLAKE2b-256 a5916d7bf8690f6243de85b5fce742dff3e36033640c218dc86ad34ebfc08786

See more details on using hashes here.

Supported by

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