Install & Compatibility
Where this runs
tested against v1.1.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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 20.5MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.2s · import 0.000s · 21MB
19MB installed
● package 19MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Matches
✓ from re_assert import Matches
✗ from re_assert import ReAssert
Pattern
✓ from re_assert import Pattern
regex
✓ from re_assert import regex
Basic usage: create a ReAssert object with a regex pattern, then compare with a string. If match fails, it prints where and why.
from re_assert import ReAssert
# Pattern with group names
pattern = r"(?P<name>\w+) (?P<age>\d+)"
matcher = ReAssert(pattern)
# This assertion will fail with a detailed message
# matcher == 'John 30 extra'
# Uncomment to see error: matcher == 'John 30' (this matches)
Upgrade
Version history
1.1.0latest on PyPI · released Feb 25, 2020
Audit
Dependencies
No dependency data recorded yet.