rebulk
Rebulk - Define simple search patterns in bulk to perform advanced matching on any string.
Decision gist · record as of 2026-08-14
Yes. ReBulk is actively maintained, has no dependencies, supports current Python versions, carries an MIT license, and solves a real problem—making complex string matching readable and maintainable. Install it if you're building a text parser or pattern extractor where regex alone becomes hard to follow or maintain.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with no runtime dependencies.
- Actively maintained with a recent release; supports current Python versions (3.10 through 3.14).
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects.
last release 2026-07-03 (42 days) · last repo commit 2026-08-09 · 60 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 151,390 downloads/mo, #10,935 on PyPI
Alternatives
Verify before relying
from rebulk import Rebulk
bulk = Rebulk().string('brown').regex(r'qu\w+').functional(lambda s: (20, 25))
matches = bulk.matches("The quick brown fox jumps over the lazy dog")
print(matches) # [<brown:(10, 15)>, <quick:(4, 9)>, <jumps:(20, 25)>]- Whether the optional regex module integration (REBULK_REGEX_ENABLED=1) provides material performance or feature benefits over the standard library re module
- Real-world performance characteristics when matching against very large strings or with deeply nested chain patterns
What it is and what it does
ReBulk is a Python library that simplifies complex string searching by providing a readable, chainable API for defining patterns. Instead of writing intricate regex or string manipulation code, you declare patterns using string(), regex(), functional(), and chain() methods on a Rebulk object, then call matches() to find all occurrences. When multiple patterns match at the same position, ReBulk keeps only the longest match, eliminating the need to manually resolve conflicts.
The library is built for tasks where the standard re module or string methods become unwieldy—parsing structured text formats, extracting metadata from filenames, or validating complex patterns. It supports validators and formatters to filter or transform matches, pre- and post-processors to modify match objects, and chain patterns for ordered composition of multiple pattern types. With no external runtime dependencies and support for modern Python versions, it integrates cleanly into existing projects.
Use it for
- Parse structured filenames or paths to extract metadata like episode numbers, versions, or quality indicators
- Build a custom text parser for domain-specific formats (e.g., log entries, configuration files) without writing complex regex
- Validate and extract multiple overlapping patterns from a single string, automatically choosing the longest match
- Chain multiple pattern types together to match sequences (e.g., 'episode number followed by optional version followed by zero or more extra identifiers')
- Apply custom validation logic to matched patterns using validator functions before accepting them as results
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
ReBulk is actively maintained, has no dependencies, supports current Python versions, carries an MIT license, and solves a real problem—making complex string matching readable and maintainable. Install it if you're building a text parser or pattern extractor where regex alone becomes hard to follow or maintain.
Install
rebulk on PyPI
Before you install
Low friction install with no runtime dependencies. Actively maintained with a recent release; supports current Python versions (3.10 through 3.14).
License in practice
MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects.
Quickstart
from rebulk import Rebulk
bulk = Rebulk().string('brown').regex(r'qu\w+').functional(lambda s: (20, 25))
matches = bulk.matches("The quick brown fox jumps over the lazy dog")
print(matches) # [<brown:(10, 15)>, <quick:(4, 9)>, <jumps:(20, 25)>]
Verify before relying
- Whether the optional regex module integration (REBULK_REGEX_ENABLED=1) provides material performance or feature benefits over the standard library re module
- Real-world performance characteristics when matching against very large strings or with deeply nested chain patterns
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 42 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 151,390 / month, #10,935 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python Modules |
Evidence: rebulk-6.0.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “advanced string pattern matching”
- rebulkReBulk provides a fluent API for building complex string pattern…
- onigurumacffiProvides Python bindings to the Oniguruma regex engine via CFFI,…
- regexA drop-in replacement for Python's standard `re` module that adds…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also hyperscan · retrie · multiregex · regex · interegular · ahocorasick-rs · flpc · pygrok · exrex · onigurumacffi