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.4.2a1
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.4.2a1.tar.gz | 52.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| padacioso-2.4.2a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 81.3 kB
Release files / padacioso-2.4.2a1.tar.gz
| Download URL | padacioso-2.4.2a1.tar.gz |
|---|---|
| Size | 52.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7732b0ba121543c3f8178bf152c8cdbc08796665eca426d67b22f9eceaaea9ea
|
|
BLAKE2b-256 checksum How to use checksums |
1a7c28b25aa13a9ab027dd1d30fdef4e8f28aac46f6a115316f56c906ed92378
|
| 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.4.2a1-py3-none-any.whl
| Download URL | padacioso-2.4.2a1-py3-none-any.whl |
|---|---|
| Size | 28.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d37ecabf1bf46416abec55270f23a959605dc902ed56140644bd582064e6fa32
|
|
BLAKE2b-256 checksum How to use checksums |
a00b370c0445be6ac58556faa73bc3d3dd3db63046ba3e7e1131aada5c7087b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|