Skip to main content

A Python framework for managing chatbots

Project description

BotPie

A Python framework for managing chatbots - 0.0.1 (alpha)

Install and Run

git clone https://github.com/gwilkes/botpie.git
cd botpie/
python setup.py install

Features

Argument Parsing

BotPie handles command parsing by using the Python argparse module to do most of the work.

Basic Script

import botpie
import random

message = botpie.utils.argvstr()
bot = botpie.Bot("ImportantBot")

@bot.command("tracer")
def tracer():
    greets = ["hiya!", "heya!", "hi!", "hoiya!"]
    return random.choice(greets)

result = bot.inspectstr(message)

if result:
    print(result)

The above example was tested by running python examples/basic.py tracer

Work In Progress

This is a lightweight initial release which does not include several of the desired features yet. Here are some of the plans for future releases:

  • Asynchronous support
  • Optional storage solution for Bot data

Other todos:

  • Fix docstrings
  • Include a better example for above (show off decorators, use discord connection, etc)

Requirements

Python 3.7+ (this may change down the road to support older versions)

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

botpie-0.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

botpie-0.0.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file botpie-0.0.1.tar.gz.

File metadata

  • Download URL: botpie-0.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for botpie-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fbb9e5bb66fe116d3b7f93b90d2f778a52af330fc355f388cec2e72725ca9a57
MD5 d619ce460933097c47d47b91f71521ce
BLAKE2b-256 1c5baa5f90e5385e1b9357d9ac9f48046985be8ef829fc607a5597829ca84fcb

See more details on using hashes here.

File details

Details for the file botpie-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: botpie-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for botpie-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 29911d79a4fea38583cc20fcbcc8999ca4310f0bb7e8e34d6878def6ce3afe93
MD5 8c0141c28414e56c621fbe246ebb3286
BLAKE2b-256 016b9b159f907c4fd1289417c5f014529258064f819da180d38ee7b2646b3e4e

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