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.4-cp314-cp314t-manylinux_2_34_x86_64.whl (744.6 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.34+ x86-64

flpc_v2-0.3.4-cp314-cp314t-manylinux_2_34_aarch64.whl (697.3 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.34+ ARM64

flpc_v2-0.3.4-cp314-cp314t-macosx_11_0_arm64.whl (635.5 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for flpc_v2-0.3.4-cp314-cp314t-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5e07222c52b58d1c521b70397f7eac65ae21a984a08c308ce0d22ad0784bbd42
MD5 1c43e038b858d80dc3bef51a603828f5
BLAKE2b-256 9fce0ca9f83ebebc1c855e6c8b69c63e9ffa78f654b0b8d1d33c1587c5976fa6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for flpc_v2-0.3.4-cp314-cp314t-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 1d60ae38acf53df49979632f762abcb45db12a17bc9ed1c48b782029f117851f
MD5 3395644bac4df8aefdf4cda122a1425f
BLAKE2b-256 84edffdbb050874b13d25e13efd4e79a05ec6b900f1221e866078ef6ef44e9e0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for flpc_v2-0.3.4-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 532033739655335758b2dfd46b2a8c75b84ac861fef62e00cdeca9573f3c8029
MD5 b373dda1e083adfd8f22c50ecf22c641
BLAKE2b-256 4bc8a5e08a5ac627174ce87fd21ec499ef5b647422292c4df2596d9ed54cd47f

See more details on using hashes here.

Provenance

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