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

Uploaded CPython 3.14tmanylinux: glibc 2.34+ ARM64

flpc_v2-0.3.1-cp314-cp314t-macosx_11_0_arm64.whl (869.8 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for flpc_v2-0.3.1-cp314-cp314t-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 197ecde043022d387b74fbf93e7de2cb5690a899efc9e01bcab73eb2f423f519
MD5 5e3f4d33bb41684b024e076bc6428122
BLAKE2b-256 d3f51b61c297c7b041f882e60bd2b24025bd66179645d3637eec516e3df2737d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for flpc_v2-0.3.1-cp314-cp314t-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 53a8a3505f7033aa7054b8817250daf0017cd1f670f7f302d82f0ccba5e1c56b
MD5 bfad9e64526401a9e45c1e280c09d6aa
BLAKE2b-256 40b91af1fb5ab5539932b2107a9c36a2f9f2e8d5137e80e0f5de169c3fea5dd5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for flpc_v2-0.3.1-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b111d7ef92d05ca8079873fe8493c1b65ac6d357a2a7a5ac7c93bddf24cf6b36
MD5 0b93ed43bd1175354488c6cf6cb66ebd
BLAKE2b-256 cd7e691b8bb31c1d9e53cc754c59b2e4e974fb483f794c53438c80559e97bca0

See more details on using hashes here.

Provenance

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