Skip to main content

Simple library for creating bots

Project description

python-droit

Droit is a simple library for creating bots - view on GitHub

At a glance

TEXT!my:TEXT!name:TEXT!is:INP*name!->TEXT!Hi :VAR!inp.name

A bot using the above Droit Database Script will create the following output:

My name is John -> Hi John
My name is Ellie -> Hi Ellie

Droit Database Script comes with many possible condition-blocks like "TEXT" (a word has to be included in the text), "INP" (reads a word or several words) and "SIMT*80" (a sentence similar to up to in this case 80 percent has to be given). They make it easy to create complex question-to-answer rules. You can extend python-droit by easily writing your own condition-blocks (= plugins).

Features

  • Advanced definition of question-to-answer rules using Droit Database Script
  • Multiple users supported
  • Integrated history functionallity to understand references to previous inputs
  • Extendable: create your own sub-rules ("plugins")

Learn

Installation

Easy installation using pip:

pip install droit

Alternatively you can clone this repository and install it to get the most recent version of droit:

git clone https://github.com/jarinox/python-droit
cd python-droit
pip install .

License

This library is published under the terms of the GNU LESSER GENERAL PUBLIC LICENSE. Please see LICENSE for more information.
Copyright 2019-2021 Jakob Stolze

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

droit-1.1.2.tar.gz (28.4 kB view details)

Uploaded Source

Built Distribution

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

droit-1.1.2-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

File details

Details for the file droit-1.1.2.tar.gz.

File metadata

  • Download URL: droit-1.1.2.tar.gz
  • Upload date:
  • Size: 28.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.7

File hashes

Hashes for droit-1.1.2.tar.gz
Algorithm Hash digest
SHA256 dc5a01ec271d0d155c7bf7f51f1ab0af7ef730798c9092b47cf4398eed89fb77
MD5 dedbed9270424c0a5070c851168265ec
BLAKE2b-256 0deace8337f941fb8ce3c5a259f7d5f90a191d3ea617027593239e6159db5ea6

See more details on using hashes here.

File details

Details for the file droit-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: droit-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 28.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.7

File hashes

Hashes for droit-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 15da81c032f3b6f1966f21940c72dea5cababb6c12009091bbfb175a7898ab60
MD5 bac132b5d91e41377b37786090d3c773
BLAKE2b-256 4ad3f672aa504843c839609470257c670dff48a2ceef64a944a2c5d4e65fde4b

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