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

Install from PyPI:

pip install aire

For local development, it's recommended to use poetry:

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.2.tar.gz (3.2 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.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aire-0.0.2.tar.gz
  • Upload date:
  • Size: 3.2 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.2.tar.gz
Algorithm Hash digest
SHA256 85a1a1d3896733770d15a47c62eb948f310f6ace9a19ee9de395962d5fe95cf0
MD5 85036985135bcbc6d70a5599c0aee641
BLAKE2b-256 2a045062eee0d5072a51a70909b804b336dd778a3f5037a288045d6b1e8c2f0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aire-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f3e13da4b88b5f3d83b8ccfe0dcafb36b14767f304105504e4ec5fdf52a24b0f
MD5 e7d9ef4280f2fc8d569c7e5933170307
BLAKE2b-256 7a034ebbb30478771fae2d33532dda4fdced073b6ea78849f7fcb2cead5230c7

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