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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc5a01ec271d0d155c7bf7f51f1ab0af7ef730798c9092b47cf4398eed89fb77
|
|
| MD5 |
dedbed9270424c0a5070c851168265ec
|
|
| BLAKE2b-256 |
0deace8337f941fb8ce3c5a259f7d5f90a191d3ea617027593239e6159db5ea6
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15da81c032f3b6f1966f21940c72dea5cababb6c12009091bbfb175a7898ab60
|
|
| MD5 |
bac132b5d91e41377b37786090d3c773
|
|
| BLAKE2b-256 |
4ad3f672aa504843c839609470257c670dff48a2ceef64a944a2c5d4e65fde4b
|