Documentation · PyPI · Changelog · Roadmap · Releases
stepline is a pytest companion library for structured, readable tests:
steps that show what a test does, typed assertions that say what went wrong, and test documentation that lives right next to the code.
Features
| Feature | |
|---|---|
| 👣 | Steps: structure tests into named steps, as a context manager or decorator |
| 🎯 | Typed assertions: fluent assert_that(...) with clear failure messages |
| 🏷️ | Test metadata: decorators for descriptions and issue links, plus a spec export |
| 📜 | Console output: modern, rich-based logging of steps and results |
| ⏱️ | Performance: measure and check how long steps and tests take |
| 🧩 | pytest plugin: works out of the box with your existing pytest setup |
| 💻 | Command-line tool: inspect your setup and export test documentation from the terminal |
Installation
stepline requires Python 3.15 or newer. It is a test tool, so add it as a development dependency:
# with uv
uv add --dev pytest-stepline
# with pip
pip install pytest-stepline
The package is called pytest-stepline on PyPI.
In your code, on the command line and in pytest, it is simply stepline.
Quick check
After installation, pytest picks up the plugin automatically:
$ pytest
=========================== test session starts ===========================
platform linux -- Python 3.15.2, pytest-9.2.0, pluggy-1.7.0
├─ stepline 0.0.1 · Python 3.15.2 · pytest 9.2.0
...
The command-line tool shows the installed version and your environment:
stepline --version
To switch the plugin off for a single run, use pytest -p no:stepline.
Contributing
stepline is currently a personal project in early development and does not accept contributions yet. This may change once the foundation is in place. The contributing guide describes the development setup.
License
stepline is released under the MIT License.
Metadata
Release files for pytest-stepline 0.0.2
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 |
|---|---|---|---|---|
| pytest_stepline-0.0.2.tar.gz | 8.5 kB | With provenance | Details for pytest_stepline-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_stepline-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for pytest_stepline-0.0.2-py3-none-any.whl |
Total release size: 20.8 kB
Release files / pytest_stepline-0.0.2.tar.gz
| Download URL | pytest_stepline-0.0.2.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8194a9087e7d607fd2412d78d4ab9cc15b13d5d362a09ba32cbd1f8b13ce6626
|
|
BLAKE2b-256 checksum How to use checksums |
1c03d73d0f183c39a8a2f2536f034ab3a3a5c5d7be604ea9b314377352b817cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / pytest_stepline-0.0.2-py3-none-any.whl
| Download URL | pytest_stepline-0.0.2-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b3ba7a5f1ad156e7ed462a66c00becb3fe601e08b4d0f9ec50e92815b5034435
|
|
BLAKE2b-256 checksum How to use checksums |
d3ac0af6cda654e907da6baf33a7851cb53dc5b5351bdd820f97adf500d22f4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for pytest-stepline 0.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pytest_stepline-0.0.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA 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.