Skip to main content

A Lightning Fast ⚡ Rust-based regex crate wrapper for Python3 to get faster performance. 👾

Project description

flpc logo

flpc: Lightning-Fast Python Regex

Star PyPI - Implementation GitHub Issues PyPI - Downloads GitHub License GitHub last commit

🚀 Supercharge your Python regex with Rust-powered performance!

🌟 Why flpc?

Being in experimental stage. The code structure and dependencies may change. If your project is using this. You will have to manually configure the migrations to latest versions.

flpc is a powerful Python library that wraps the blazing-fast Rust regex crate, bringing enhanced speed to your regular expression operations. It's designed to be a drop-in replacement for Python's native re module, with some minor syntax differences.

🚀 Quick Start

  1. Install flpc:

    pip install flpc
    
  2. Use it in your code as shown in the API

🔧 API

flpc mirrors the re module's API, with a few small exceptions:

  • Use fmatch() instead of match() (to avoid conflicts with Python's keyword)
  • When using group() on a match object, always provide an index (e.g., group(0) for the entire match)

Common functions include:

  • compile()
  • search()
  • findall()
  • finditer()
  • split()
  • sub()
  • subn()

💡 Pro Tips

  • Pre-compile your patterns for faster execution
  • Use raw strings (r'') for cleaner regex patterns
  • Always check if a match is found before accessing groups
  • Remember to use group(0) to get the entire match

🤝 Contributing

We welcome contributions! Whether it's bug reports, feature requests, or code contributions, please feel free to reach out. Check our contribution guidelines to get started.

📄 License

flpc is open-source software licensed under the MIT license.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

flpc_v2-0.3.2-cp314-cp314t-manylinux_2_34_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.34+ x86-64

flpc_v2-0.3.2-cp314-cp314t-manylinux_2_34_aarch64.whl (993.4 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.34+ ARM64

flpc_v2-0.3.2-cp314-cp314t-macosx_11_0_arm64.whl (871.0 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

File details

Details for the file flpc_v2-0.3.2-cp314-cp314t-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for flpc_v2-0.3.2-cp314-cp314t-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 66ab96ac26975c0aa3df7d45f0ddd70e3ec6d180eb1c6186bbcdb53e05455cca
MD5 c6dd209ba596f58830c4a54381a75054
BLAKE2b-256 0ccc22f333f2f876c2225c5fb283546dfdfa94f3f230364a82f59f612b608a7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for flpc_v2-0.3.2-cp314-cp314t-manylinux_2_34_x86_64.whl:

Publisher: publish.yaml on RGarrido03/flpc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flpc_v2-0.3.2-cp314-cp314t-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for flpc_v2-0.3.2-cp314-cp314t-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 efa0144e75b1948ee054db3c5ea88c294ca3c256b10023acbbdd786831f9f220
MD5 e75dce780df0c547269595062a6a80e3
BLAKE2b-256 3e77ab5a665af43263638bafb417f5615a8473d70f66e05b51c3342b39f4834f

See more details on using hashes here.

Provenance

The following attestation bundles were made for flpc_v2-0.3.2-cp314-cp314t-manylinux_2_34_aarch64.whl:

Publisher: publish.yaml on RGarrido03/flpc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flpc_v2-0.3.2-cp314-cp314t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for flpc_v2-0.3.2-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88f824f8d17ce6ffe3acf6591ff774a2eb420c3b4423be3771fdaa82b11e448d
MD5 ad6028f000d33a339414fc2dbb249204
BLAKE2b-256 144e8839e075984ad612ae0dfaa80f9331155643d1c725d98fa9585d710ff441

See more details on using hashes here.

Provenance

The following attestation bundles were made for flpc_v2-0.3.2-cp314-cp314t-macosx_11_0_arm64.whl:

Publisher: publish.yaml on RGarrido03/flpc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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