Skip to main content
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.0a1

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

Source distribution (sdist)

Source distribution for padacioso 2.3.0a1
File Size Uploaded
padacioso-2.3.0a1.tar.gz 38.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for padacioso 2.3.0a1
File Interpreter ABI Platform
padacioso-2.3.0a1-py3-none-any.whl Python 3 none any Details

Total release size: 61.9 kB

Release files / padacioso-2.3.0a1.tar.gz

Download URL padacioso-2.3.0a1.tar.gz
Size 38.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6faf7d4167f85620eefb17e18429ca2caafb6a6aca4ffd1144fa45a0b41a70b1
BLAKE2b-256 checksum
How to use checksums
5a35081977a0233bef3c0c9ff973479272ae5957e013555e088f30c7b1582858
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.0a1-py3-none-any.whl

Download URL padacioso-2.3.0a1-py3-none-any.whl
Size 23.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52feb12e11bcac3bd4c6498a4ca8df27f84249a29d1cfa7af356f772801750b1
BLAKE2b-256 checksum
How to use checksums
df02db72d3017c81d3f6c34e1356e5c3aa11fd6afd6946d82b334515e65abe82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

2.3.0a1 This release

2 release files

1.0.0

2 release files

0.2.4

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

1 release file

0.1.1

1 release file

0.1.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