Registry / data / rebulk

rebulk

JSON →
library3.2.0pypypi✓ verified 87d ago

Rebulk is a Python library for defining simple search patterns in bulk and performing advanced matching on any string. It provides a clean API for building complex matchers with regular expressions, functional patterns, and chain filtering. Current version is 3.3.0, released in December 2023, with irregular release cadence.

pip install rebulk
INSTALL
IMPORT
SIG · REBULK
R
rebulk
datapythonv3.2.0
Install
1.7s avg
Import
53ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.2.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.054s · 18.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.052s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Rebulk
from rebulk import Rebulk

Create a Rebulk matcher, add string and regex patterns, and match against input.

from rebulk import Rebulk, Match rebulk = Rebulk() rebulk.string('hello') rebulk.regex(r'world') matches = rebulk.matches('hello world') for m in matches: print(m.value, m.span)
Debug
Known issues
breakingRegex support is disabled by default since v3.0.0. To enable regex matching, set REBULK_REGEX_ENABLED=1 environment variable before importing rebulk.
fix
Set environment variable: import os; os.environ['REBULK_REGEX_ENABLED'] = '1'
affects: >=3.0.0
breakingPython 2.7 and 3.4 support dropped in v3.0.0; Python 3.5 dropped in v3.1.0; Python 3.6 dropped in v3.2.0.
fix
Use Python 3.7 or later (Python 3.12 supported in v3.3.0).
affects: >=3.0.0
gotchaPatterns are evaluated in order, and later patterns can override earlier ones if they match same position. Use `exclude` or `priority` to control behavior.
fix
Understand pattern evaluation order: first added pattern wins in case of conflict unless priority is set.
affects: all
deprecatedThe REGEX_DISABLED environment variable was replaced by REBULK_REGEX_ENABLED in v3.0.0. Old variable is ignored.
fix
Use REBULK_REGEX_ENABLED instead of REGEX_DISABLED.
affects: >=3.0.0
Errors
Common errors & fixes
AttributeError: module 'rebulk' has no attribute 'Match'
Imported Match from rebulk module incorrectly (e.g., import rebulk; rebulk.Match).
fix
Use: from rebulk import Match
Regex pattern '...' not matching even though regex module is installed.
Regex is disabled by default in Rebulk versions >=3.0.0.
fix
Set os.environ['REBULK_REGEX_ENABLED'] = '1' before importing rebulk.
rebulk.exceptions.PatternError: Unsupported pattern type
Using an unsupported pattern type (e.g., tuple without proper indicator).
fix
Use string, compiled regex, or callable for patterns.
Upgrade
Version history
3.2.0latest on PyPI · released Feb 18, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
OpenAI (training)
1
Resources
rebulk — pip install rebulk · libregistry