MiniMindsLab CSV Cell Trim
minimindslab-csv-cell-trim is a small, pure-Python utility for trimming leading and trailing whitespace from every string cell in CSV-like row data.
It is designed for pre-cleaning small CSV exports before joins, comparisons, deduplication, or spreadsheet loading.
Features
- Trims whitespace on all string cells.
- Preserves non-string values unchanged.
- Preserves row and column structure exactly.
- Returns a new data structure (does not mutate input).
- Standard library only.
Installation
pip install minimindslab-csv-cell-trim
Usage
from minimindslab_csv_cell_trim import trim_csv_cells
rows = [
[" alpha ", " beta", ""],
[" 42 ", 42, None],
]
cleaned = trim_csv_cells(rows)
# cleaned:
# [
# ["alpha", "beta", ""],
# ["42", 42, None],
# ]
API
trim_csv_cells(rows)
- rows: sequence of row sequences (e.g., list of lists / tuples)
- returns:
list[list[object]]
Raises:
TypeErrorifrowsis not a sequence of rows or any row is not a sequence.TypeErrorif any row is astr/bytesobject.
License
MIT
Metadata
Release files for minimindslab-csv-cell-trim 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 | Provenance | |
|---|---|---|---|---|
| minimindslab_csv_cell_trim-0.1.0.tar.gz | 3.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| minimindslab_csv_cell_trim-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / minimindslab_csv_cell_trim-0.1.0.tar.gz
| Download URL | minimindslab_csv_cell_trim-0.1.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6eb5ac3129597bbb2f77d030fa6ae77369e6f4bdb65533943ee951d19126979
|
|
BLAKE2b-256 checksum How to use checksums |
9bef67d9a701fd13a73dc402bd61c32b3fcbec5b47cad2ee5f3f582ffe658464
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
n8n
|
Release files / minimindslab_csv_cell_trim-0.1.0-py3-none-any.whl
| Download URL | minimindslab_csv_cell_trim-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7bcaefbb6adff4e4b4a74a7e530d47b714a2638a2e1d2f5d78871fafed3e14fa
|
|
BLAKE2b-256 checksum How to use checksums |
ba5aa9e7027919427a46d3afc2a469924163d8a0a66d59f2928cd8246029ec8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
n8n
|
Security for minimindslab-csv-cell-trim 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.