CLI tool for splitting and merging table files (safe export / import merge / melt columns).
Project description
splitnstitch
A powerful CLI tool for splitting and merging table files. Perfect for creating safe-to-share datasets, managing sensitive data, and reorganizing table structures.
Features
✨ Split Tables - Separate sensitive columns from public data
🔄 Stitch Tables - Merge split files back together seamlessly
📊 Melt Columns - Reshape wide data into long format
🛡️ Safe Export - Create redacted versions of datasets
🧩 Detail Joins - Enrich datasets with additional information
📁 Multiple Formats - Works with CSV and Excel files
💬 Interactive CLI - User-friendly command-line interface with guided workflows
🪟 Windows Support - Can be used on Windows machines as well as Linux
Installation
pip install splitnstitch
Or install from source:
git clone https://github.com/espehon/splitnstitch.git
cd splitnstitch
pip install -e .
Quick Start
Launch the interactive CLI:
sns
Or run with Python:
python -m splitnstitch
The tool will guide you through a series of prompts to:
- Choose your operation (split, stitch, melt)
- Select your data file (CSV or Excel)
- Configure your preferences
- Generate your output file(s)
Use Cases
🔐 Privacy Protection
Split sensitive customer data into separate files to share only non-sensitive columns with partners while keeping PII secure.
📦 Data Organization
Reorganize wide datasets into long format for easier analysis and database import.
🔀 Selective Sharing
Share safe columns publicly while maintaining a master file with complete data internally.
🧬 Data Enrichment
Stitch together detail data from multiple sources to create a comprehensive dataset.
Requirements
- Python 3.8+
- pandas
- questionary
- halo
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Created by espehon
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file splitnstitch-0.2.1.tar.gz.
File metadata
- Download URL: splitnstitch-0.2.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bc5a638607eb7961031e8b3c4d848043ddc417543493dff8da215a9994ab0ab
|
|
| MD5 |
8676657ad92f28ffd39f21b4e0242675
|
|
| BLAKE2b-256 |
6d8dd1d254d7df1e47625080d7a8c8d2dd1ce6156348588fcbd77d5dd8580128
|
File details
Details for the file splitnstitch-0.2.1-py3-none-any.whl.
File metadata
- Download URL: splitnstitch-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2973c38f99cb08750bf05c68fc8e13af342f554d4a2a502a3e4c5a7336b5efa9
|
|
| MD5 |
cbe34c8be4226495632554d929cfd7ba
|
|
| BLAKE2b-256 |
3f7ded06930babf31925b521a7d8527d1b2226d5c9b3b27236c9189cbd285e3b
|