Skip to main content
https://github.com/jlmadurga/permabots/raw/master/docs/images/logos/permabots.png

CI:

https://travis-ci.org/jlmadurga/permabots.svg?branch=master https://coveralls.io/repos/github/jlmadurga/permabots/badge.svg?branch=master Requirements Status

PyPI:

https://img.shields.io/pypi/v/permabots.svg

Docs:

Documentation Status

Build chat bots and connect then to your app APIs.

With Permabots you can build chat bots and with the same configuration use it for several instant messaging providers. Permabots was born to be a microservice to connect messaging providers to your apps using REST APIs.

https://github.com/jlmadurga/permabots/raw/master/docs/images/demo.gif

Documentation

The full documentation is at https://permabots.readthedocs.org.

Features

  • Telegram, Kik and Facebook Messenger bots

  • Message handling definition with regex, as django urls.

  • HTTP methods: GET/POST/PUT/DELETE/PATCH

  • Text responses and keyboards with Jinja2 templates

  • Chat State handling

  • Asynchronous processing of messages

  • Media messages not supported

Quickstart

Install permabots:

pip install permabots

Add permabots to your INSTALLED_APPS, and run:

$ python manage.py migrate permabots

Instant messaging providers uses webhooks to send messages to your bots. Add permabots processing urls to your urlpatterns:

url(r'^processing/', include('permabots.urls_processing', namespace="permabots"))

Webhooks are generated with django.contrib.sites. You need it installed and SITE_ID configured. If you want to generate webhook manually you can do it:

MICROBOT_WEBHOOK_DOMAIN = 'https://yourdomain.herokuapp.com'

It is usefull when you don’t have https in your public domain but you have it in your autogenerated domain. i.e. heroku.

Bots are associated to Django Users. You need at least one user, for example admin user.

Then you can create all permabots data, Bots, Conversation Handlers, Notitication Hooks,… via Django admin or with REST API (recommended).

Remember there is an online implementation in www.permabots.com to use it for free.

Demo

You can check and deploy a Permabots demo https://github.com/jlmadurga/permabots-demo

https://www.herokucdn.com/deploy/button.svg

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements/test.txt
(myenv) $ make test
(myenv) $ make test-all

History

0.1.0 (2016-05-16)

  • First release on PyPI.

Release files for permabots 2.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for permabots 2.2.3
File Size Uploaded
permabots-2.2.3.tar.gz 45.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for permabots 2.2.3
File Interpreter ABI Platform
permabots-2.2.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 117.2 kB

Release files / permabots-2.2.3.tar.gz

Download URL permabots-2.2.3.tar.gz
Size 45.7 kB
Tags Source
SHA-256 checksum
How to use checksums
38991796c8c794dcf7888404f1e9ca68891c75f302f4327a21a86b7271efc802
BLAKE2b-256 checksum
How to use checksums
3a41eb3bdf16451b621a27930893d3955cfa347e330f992fa5a3b8b1086ecbdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / permabots-2.2.3-py2.py3-none-any.whl

Download URL permabots-2.2.3-py2.py3-none-any.whl
Size 71.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4e6676a249fbddf7017ca974c409185a3fafd1b12058294e3b844e6b170482d8
BLAKE2b-256 checksum
How to use checksums
ad385381143a83abee5dfc051618055314231c53cd06ae6c0899217bd6108d0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.2.3 This release

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.4

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page