Install & Compatibility
Where this runs
tested against v3.0.1 · 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 · 25MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.1s · import 0.000s · 26MB
23MB installed
● package 23MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
format_feature
✓ from reformat_gherkin import format_feature
✗ from reformat_gherkin import format_feature
Format a Gherkin feature string. Also available as CLI: `reformat-gherkin --help`
from reformat_gherkin import format_feature
feature_text = """Feature: Example
Scenario: Test
Given a step
"""
formatted = format_feature(feature_text)
print(formatted)
# Or using stdin: echo '...' | reformat-gherkin
reformat-gherkin --version
Upgrade
Version history
3.0.1latest on PyPI · released Oct 4, 2022
Audit
Dependencies
gherkin-officialrequiredcore parsing library; major version updates can change formatting behavior
clickrequiredCLI interface
PyYAMLrequiredconfiguration reading
attrsrequireddata classes; breaking changes in v22+ required fixes
cattrsrequiredserialization; known for breaking changes that affect reformat-gherkin