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.2.0.tar.gz (9.5 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.2.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: splitnstitch-0.2.0.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

Hashes for splitnstitch-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a8dbcdf88a98d18fb5f4cd26628b7e31e66e8d1a73adbd47f89f0224a297f6f2
MD5 105b4bac6476b8f1e5b962bddcdab362
BLAKE2b-256 c04dbcb273ab6b9c90bad348255c712e212979eab925edd51386e8032560f841

See more details on using hashes here.

File details

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

File metadata

  • Download URL: splitnstitch-0.2.0-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

Hashes for splitnstitch-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c6d02675f36999b07e5bf9ab2864f3df3f1abe7aca0aff8213d1401f541d576
MD5 8dc024f40f176e24f12174a4e2db6c01
BLAKE2b-256 4621d79c0e13b779eb7135b124e731c4f18002c0c808d15492920d3fbe506d7a

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