Skip to main content

MiniMindsLab Blank Line Collapse

minimindslab-blank-line-collapse is a small pure-Python utility library for normalizing text by collapsing repeated blank lines.

It reduces any run of empty or whitespace-only lines to a single blank line while preserving non-empty line content.

Installation

pip install minimindslab-blank-line-collapse

Usage

from minimindslab_blank_line_collapse import collapse_blank_lines

text = "A\n\n\n   \nB\n"
print(collapse_blank_lines(text))
# "A\n\nB\n"

API

  • collapse_blank_lines(text: str) -> str

Properties

  • Pure Python
  • Standard library only
  • Offline-safe (no network behavior)

Metadata

Release files for minimindslab-blank-line-collapse 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minimindslab-blank-line-collapse 0.1.0
File Size Uploaded Provenance
minimindslab_blank_line_collapse-0.1.0.tar.gz 3.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for minimindslab-blank-line-collapse 0.1.0
File Interpreter ABI Platform
minimindslab_blank_line_collapse-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.5 kB

Release files / minimindslab_blank_line_collapse-0.1.0.tar.gz

Download URL minimindslab_blank_line_collapse-0.1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
165e33381557cab91119d9707fbeee1ab660b00dddd5182809099e4e3f5f2488
BLAKE2b-256 checksum
How to use checksums
f259c40b83eb883997bf68c8fa3303d1b6c34c5bf58e8b8c8955297a496f36d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via n8n

Release files / minimindslab_blank_line_collapse-0.1.0-py3-none-any.whl

Download URL minimindslab_blank_line_collapse-0.1.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e76c076d7c6be240a1d2c79e1dfa532d2f19a11b70813e85d7904a6237523eda
BLAKE2b-256 checksum
How to use checksums
bc4a5f6fbf7cd8d6763aabb596040abe82bf52be55af44aee205f45ed810dd6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via n8n

Security for minimindslab-blank-line-collapse 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page