Erech 🗿
“The Dead awaken; for the hour is come for the oathbreakers: at the Stone of Erech they shall stand again and hear there a horn in the hills ringing.”
— Malbeth the Seer
Erech is a declarative, expressive assertion library for Python, inspired by the style of Chai.js and forged in the spirit of Middle-earth.
Named after the Stone of Erech, the ancient Númenórean relic upon which oaths were sworn and long-awaited reckoning was called, this library is built for readability and expressiveness, helping you write tests that read like plain English — with the flowing elegance of Elvish. No more tests written in plain python, with repetetive cryptic dictionary references in the tongue of Mordor (which we will not utter here). Just as Isildur once bound oathbreakers at the Stone of Erech with a curse that echoed through the ages, your tests are bound to declare their intent — and to stand accountable.
Features
- ✅ Chainable, readable assertions like
should,have,that,match, and more. - 🔁 Multiple assertions on a single object, in a single
expect().should[...]expression. - 🧙 Structured and semantic – makes your tests easier to understand and reason about.
- 📏 Built-in matchers for common types like
uuid,email, etc.
Example
from erech import expect, have
from uuid import uuid4
expect({
"gameId": str(uuid4()),
"userId": str(uuid4()),
"c": 3
}).should[
have("gameId").that.matches.uuid,
have("userId").that.matches.uuid,
]
Metadata
Release files for erech 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| erech-0.0.10.tar.gz | 16.6 kB | Without provenance | Details for erech-0.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| erech-0.0.10-py3-none-any.whl | Python 3 | none | any | Details for erech-0.0.10-py3-none-any.whl |
Total release size: 22.3 kB
Release files / erech-0.0.10.tar.gz
| Download URL | erech-0.0.10.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9c61b4446e8b83c66fb7cf25033c38d5abc97d53b3866e08a4be89800eaabc1
|
|
BLAKE2b-256 checksum How to use checksums |
79aad783e6ceb9efbb871e96647442b6de2e9f3371d9ab2d63d2ea513b87b831
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.11
|
Release files / erech-0.0.10-py3-none-any.whl
| Download URL | erech-0.0.10-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3c5fbe87c81c16f3cc1c2d29597e8132df4bec14e360a69ebb3187e25e498b5
|
|
BLAKE2b-256 checksum How to use checksums |
4f00a29a26cda13f1f1d9607c2e3cd44dbf69bb0201264c19befa97f36124a0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.11
|
Security for erech 0.0.10
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.