surer
What it is and what it does
Surer is a fork providing fluent, chainable assertion syntax for Python tests modeled after RSpec Expectations and should.js. Instead of traditional `assert` statements, you write readable expressions like `(4).should.equal(2 + 2)` or `{'foo': 'bar'}.should.have.key('foo').which.should.equal('bar')`. It supports assertions on numbers, strings, dictionaries, and collections with a natural, English-like flow.
The package is maintained primarily to support recent Python versions (3.6, 3.7, 3.8, 3.9, 3.10, 3.11) but is no longer actively developed. It has no runtime dependencies, making installation lightweight. The last commit was 2023-01-08, and the repository shows minimal activity, so while it works for its stated purpose, you should expect no new features or rapid bug fixes.
Use it for:
- Writing unit tests with more readable, fluent assertions instead of traditional assert statements.
- Testing dictionary structures and verifying nested keys and values with chainable syntax.
- Building test suites where assertion readability and developer experience are priorities.
- Migrating test code from RSpec or should.js-based projects to Python while preserving assertion style.
- Prototyping or maintaining legacy test code that already uses the 'sure' library.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Surer provides fluent, RSpec-inspired assertion syntax for Python testing, allowing readable chained assertions like `(4).should.equal(2 + 2)` and dictionary/string introspection.
Yes, if you prefer fluent assertion syntax and are comfortable with an abandoned but stable package. Surer has no dependencies, works on Python 3.6–3.11, and carries no known vulnerabilities. However, expect no active maintenance—use it only if you accept that bugs or incompatibilities with future Python versions will not be fixed by the maintainers. For new projects, consider actively maintained alternatives.
Install
surer on PyPI
pip
pip install sureruv
uv add surerpoetry
poetry add surerInstalling surer
Before you install
Installation is frictionless with no runtime dependencies. However, the package is abandoned—last commit was 2023-01-08, with minimal community engagement (1 star). It receives maintenance only for Python version support, not active development.
License in practice
Licensed under Apache License 2.0 (permissive), so you can use, modify, and distribute it freely in commercial or private projects without restriction.
Quickstart
pip install surer
import surer
(4).should.equal(2 + 2)
{'foo': 'bar'}.should.have.key('foo')
Requires Python >=3.6; no system dependencies.
Verify before relying
- Whether the assertion API remains stable across all supported Python versions (3.6–3.11) in practice.
- Whether the fork diverges meaningfully from the original 'sure' library beyond Python version support.
- Active maintenance status and responsiveness to bug reports or pull requests.
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,314 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 201,327/month — #9,674 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: surer-0.0.3-py3-none-any.whl
Keywords: test, assertions, fluent
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
expectsExpects is an assertion library for TDD/BDD…
permissive · top 15,000 on PyPI
suresure provides fluent, chainable assertion…
copyleft · top 15,000 on PyPI
assertpyProvides a fluent assertion API for writing…
permissive · top 5,000 on PyPI
ensureensure provides literate assertion helpers for…
permissive · top 5,000 on PyPI
PyHamcrestPyHamcrest provides a framework for writing…
permissive · top 5,000 on PyPI
re-assertProvides a helper class for regex assertions…
permissive · top 15,000 on PyPI
robotframework-assertion-engineProvides a standardized assertion engine for…
permissive · top 15,000 on PyPI
delayed-assertCollects multiple assertion failures in a test…
unclear · top 15,000 on PyPI
pytest-assumeA pytest plugin that collects and reports…
permissive · top 15,000 on PyPI
fluent.syntaxParse, write, and transform Fluent localization…
permissive · top 15,000 on PyPI