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.3-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.3-cp314-cp314t-manylinux_2_34_aarch64.whl (993.5 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.34+ ARM64

flpc_v2-0.3.3-cp314-cp314t-macosx_11_0_arm64.whl (871.2 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for flpc_v2-0.3.3-cp314-cp314t-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b26d5175c41daa756a62c4324339bff399dddb6c3410a0c2847205e9cf22ac24
MD5 7e44801351a62268da2ae81808702591
BLAKE2b-256 89d8a1529289f1e5e1a9e9144773b32432129cc1b490609ffbb6a5ae356bd656

See more details on using hashes here.

Provenance

The following attestation bundles were made for flpc_v2-0.3.3-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.3-cp314-cp314t-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for flpc_v2-0.3.3-cp314-cp314t-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 4def11dc78b13e116d28b7b37ba36cac7d6bee1c9af7a83bde66a55c937b075f
MD5 227e654c39d68457ac322a33ce893db0
BLAKE2b-256 28a18a88b6c4a71e6e47533a50c606c1f388c1829759690bc5440d5b051034db

See more details on using hashes here.

Provenance

The following attestation bundles were made for flpc_v2-0.3.3-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.3-cp314-cp314t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for flpc_v2-0.3.3-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71e9e45edebcbd8b39734e5847845fdcf6e208475b29ce4fc4642a58b0fb3ec3
MD5 dd04c53ac5b33ae5c1586d5464e97e53
BLAKE2b-256 b166a0b51da0efbebb10f0e6878097a9220a1304276958a764a35996d89d99e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for flpc_v2-0.3.3-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