Skip to main content

AI-powered re

Project description

aire

Tired of wrestling with regex every once in a while? aire is an AI-powered re module.

It exposes one primitive compile which is equivalent to re.compile but you describe what the regex should be in natural language so you don't have to remember and relearn the rules.

🚀 Quick Example

import aire

p = aire.compile("number indicating line item followed by a dot, space, and then the name of the section. Example is: 1. Introduction")

print(p.search("2. Related Materials"))
# <re.Match object; span=(0, 20), match='2. Related Materials'>

🛠️ Installation

It's recommended to use poetry for now:

poetry install 
poetry shell 

🤖 Which AI?

Currently it only works with OpenAI. Add your API_KEY as environment variable export OPENAI_API_KEY=... and aire will configure the client.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aire-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aire-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file aire-0.0.1.tar.gz.

File metadata

  • Download URL: aire-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0

File hashes

Hashes for aire-0.0.1.tar.gz
Algorithm Hash digest
SHA256 40bb3a20209a79b89e5ec0a5f3cf71836c2009eee080b96674767e634fed11a7
MD5 61df907648b7985613c9f381b7e8b801
BLAKE2b-256 e6a158044e47c63f7cfbe6deaed5912eae4fcd196646ffa03445f4a2701960a9

See more details on using hashes here.

File details

Details for the file aire-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: aire-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0

File hashes

Hashes for aire-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91028bc7d74743da3c1be00fbb9fbccab1dc27bb6327c9d95063d5bae3b13201
MD5 1ed86a966560f4f486136e7bd8738e39
BLAKE2b-256 d65e111b03880cb51f39b17c185fb98dc7007fdb5766c99ed61ed17bd69d2c7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page