Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

License

NotificationsYou must be signed in to change notification settings

itsmeadarsh2008/flpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flpc logo

flpc: Lightning-Fast Python Regex

StarPyPI - ImplementationGitHub IssuesPyPI - DownloadsGitHub LicenseGitHub 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-fastRust regex crate, bringing enhanced speed to your regular expression operations. It's designed to be a drop-in replacement for Python's nativere 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 there module's API, with a few small exceptions:

  • Usefmatch() instead ofmatch() (to avoid conflicts with Python's keyword)
  • When usinggroup() 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 usegroup(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 ourcontribution guidelines to get started.

📄 License

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp