Skip to main content

ReBulk

Latest Version MIT License Build Status Codecov semantic-release

ReBulk is a python library that performs advanced searches in strings that would be hard to implement using re or string methods only.

It provides Patterns, Match, Rule and a fluent API to build a custom and complex string matcher that stays readable and extendable.

Install

$ pip install rebulk

Usage

String, regular expression and function based patterns are declared on a Rebulk object, then matches returns every Match found in the input string.

>>> from rebulk import Rebulk
>>> bulk = Rebulk().string('brown').regex(r'qu\w+').functional(lambda s: (20, 25))
>>> bulk.matches("The quick brown fox jumps over the lazy dog")
[<brown:(10, 15)>, <quick:(4, 9)>, <jumps:(20, 25)>]

From there you can name and tag matches, validate and format their values, compose patterns into chains, and register rules that inspect and rewrite the match set. See the documentation for the full API and advanced patterns.

Documentation

Full documentation is available at toilal.github.io/rebulk. A preview of the in-development develop branch is published at toilal.github.io/rebulk/dev.

Support

This project is hosted on GitHub. Feel free to open an issue if you think you have found a bug or something is missing.

License

ReBulk is licensed under the MIT license.

Metadata

Release files for rebulk 6.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rebulk 6.0.2
File Size Uploaded Provenance Actions
rebulk-6.0.2.tar.gz 59.9 kB Without provenance Details for rebulk-6.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rebulk 6.0.2
File Interpreter ABI Platform Actions
rebulk-6.0.2-py3-none-any.whl Python 3 none any Details for rebulk-6.0.2-py3-none-any.whl

Total release size: 132.7 kB

Release files / rebulk-6.0.2.tar.gz

Download URL rebulk-6.0.2.tar.gz
Size 59.9 kB
Tags Source
SHA-256 checksum
How to use checksums
91d792483690aeb249bb56b3357598dd658f0f533066680db8c3e1b6f7dc8929
BLAKE2b-256 checksum
How to use checksums
957e284e071fbf6dbd3c760c898b2c19cd9e6cb78452cd83ae6bf6363d8ea908
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / rebulk-6.0.2-py3-none-any.whl

Download URL rebulk-6.0.2-py3-none-any.whl
Size 72.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d9b1968f66adb93241d4379e0bc648e3eb965761502938cb44c247aeb358802
BLAKE2b-256 checksum
How to use checksums
a0a0aa43baac1cb0dfafce8f9cfdc23f72e188babb16e64df5169618aa132206
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for rebulk 6.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

6.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page