serp-strings
Textwrap-style string helpers written in the Serpentine subset: the same
source compiles to native code with serp and imports under CPython.
API
wrap(text, width) -> list[str]/fill(text, width) -> str— greedy whitespace-collapsing word wrap; words longer thanwidthare hard-broken.indent(text, prefix)— prefix every non-blank line.dedent(text)— remove the common leading whitespace of non-blank lines.ljust / rjust / center (s, width, fill=" ")— padding helpers (centerputs the extra pad character on the right).expandtabs(s, tabsize=8)— column-aware tab expansion.repeat_char(ch, n)— building block, exported for convenience.
Install
serp add serp-strings # native projects
pip install serp-strings # CPython
Metadata
Release files for serp-strings 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| serp_strings-0.1.0.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| serp_strings-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.2 kB
Release files / serp_strings-0.1.0.tar.gz
| Download URL | serp_strings-0.1.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6209d4469f15d511e47680eb0b7d2a95951baf6458368e50ed5e3c7536228f1
|
|
BLAKE2b-256 checksum How to use checksums |
d9cacb2e7e33164a51ea5a204f8e6af662f117562cee85904840775dcf2038cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 29, 2026.
Transparency logRelease files / serp_strings-0.1.0-py3-none-any.whl
| Download URL | serp_strings-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10c6cdcad2bbe81e3b00abfafa193bcf5ceaec9bbb95f8511ff147a4f2cc905b
|
|
BLAKE2b-256 checksum How to use checksums |
d3d8c6776f185ce36f4c3b4f56f559d1f3fa884a850b59fe164494901616243d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 29, 2026.
Transparency log