Pre-release
This release is a pre-release and may not be stable for production use.
Padacioso
A lightweight, dead-simple intent parser
Built on top of simplematch, inspired by Padaos
Example
from padacioso import IntentContainer
container = IntentContainer()
## samples
container.add_intent('hello', ['hello', 'hi', 'how are you', "what's up"])
## "optionally" syntax
container.add_intent('hello world', ["hello [world]"])
## "one_of" syntax
container.add_intent('greeting', ["(hi|hey|hello)"])
## entity extraction
container.add_intent('buy', [
'buy {item}', 'purchase {item}', 'get {item}', 'get {item} for me'
])
container.add_intent('search', [
'search for {query} on {engine}', 'using {engine} (search|look) for {query}',
'find {query} (with|using) {engine}'
])
container.add_entity('engine', ['abc', 'xyz'])
container.calc_intent('find cats using xyz')
# {'conf': 1.0, 'name': 'search', 'entities': {'query': 'cats', 'engine': 'xyz'}}
## wildcards syntax
container.add_intent('say', ["say *"])
container.calc_intent('say something, whatever')
# {'conf': 0.85, 'entities': {}, 'name': 'test'}
## typed entities syntax
container.add_intent('pick_number', ['* number {number:int}'])
container.calc_intent('i want number 3')
# {'conf': 0.85, 'entities': {'number': 3}, 'name': 'pick_number'})
Release files for padacioso 2.3.5a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| padacioso-2.3.5a1.tar.gz | 44.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| padacioso-2.3.5a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 69.3 kB
Release files / padacioso-2.3.5a1.tar.gz
| Download URL | padacioso-2.3.5a1.tar.gz |
|---|---|
| Size | 44.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f9a5efea96a0539343df9f1113f579ad472fa03f5cb7a5ee95e98c209b6a8d4
|
|
BLAKE2b-256 checksum How to use checksums |
171c4e2c94d5634063b667c6936ea9233a904a356df278838a99f8c6d7436db6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / padacioso-2.3.5a1-py3-none-any.whl
| Download URL | padacioso-2.3.5a1-py3-none-any.whl |
|---|---|
| Size | 25.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ec3915508b75b072443a60e613e0f4c825dc29be90b3985a8d1153831f41b32
|
|
BLAKE2b-256 checksum How to use checksums |
c3deef98e6e00afa6e5c3b064b401f9f45b827f437ed3cec0de7fdae3023f847
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|