Skip to main content

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:

  1. Choose your operation (split, stitch, melt)
  2. Select your data file (CSV or Excel)
  3. Configure your preferences
  4. 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

splitnstitch-0.3.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

splitnstitch-0.3.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file splitnstitch-0.3.0.tar.gz.

File metadata

  • Download URL: splitnstitch-0.3.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for splitnstitch-0.3.0.tar.gz
Algorithm Hash digest
SHA256 446dd51ededb923f703f9009a583a72011522737ce646ccb2ca9e900e6615dd9
MD5 1c7039318ee2e2c4ed645d7a80464d9e
BLAKE2b-256 d1a83037200f05713a72651729793ac919b1b38d5b253ccb84eee9ac84be024b

See more details on using hashes here.

File details

Details for the file splitnstitch-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: splitnstitch-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for splitnstitch-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4950d4f535127fb17664e4537b7469421555f71c32034aa2a66312a5aaa2a649
MD5 6bcde29a08168377e13b024c08c52344
BLAKE2b-256 a431cc6914de530bbf12ac5c0eb962067aa04e04ed20b8ccf01d0b0091d6ed67

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page