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'})

Metadata

Release files for padacioso 2.5.3a1

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.5.3a1
File Size Uploaded Provenance Actions
padacioso-2.5.3a1.tar.gz 65.8 kB Without provenance Details for padacioso-2.5.3a1.tar.gz

Built distribution (wheel)

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

Total release size: 98.0 kB

Release files / padacioso-2.5.3a1.tar.gz

Download URL padacioso-2.5.3a1.tar.gz
Size 65.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5cb5e72d216a10a0d813db27b5b109e39283ccb0ed5bceea2c2e7ba61ea81ece
BLAKE2b-256 checksum
How to use checksums
a438ed71f1a7acddfc76e71f22cfa992e4bc2090475cc0b5d0985b376a53cf25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / padacioso-2.5.3a1-py3-none-any.whl

Download URL padacioso-2.5.3a1-py3-none-any.whl
Size 32.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ade9b4381847a66f63b8fccf9998b5b93083d1743d2fe3504f71b9c6da35616
BLAKE2b-256 checksum
How to use checksums
e10fea3d6058e9d1cd230a7ba5cd3435b0114ece826828fe0bab9a0e07709ae7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for padacioso 2.5.3a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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