Skip to content

themostjomo/ColumnForge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

                                          
      _|    _|_|    _|      _|    _|_|    
      _|  _|    _|  _|_|  _|_|  _|    _|  
      _|  _|    _|  _|  _|  _|  _|    _|  
_|    _|  _|    _|  _|      _|  _|    _|  
  _|_|      _|_|    _|      _|    _|_|    
                                          

🔥 ColumnForge

Batch-split spreadsheet columns into clean .txt files — one folder, one command.

Python Pandas License Made by

Made by JOMO · @themostjomo


⚡ What it does

Point ColumnForge at a folder full of .xlsx files. For every spreadsheet inside, it instantly creates a matching output-<filename>/ folder containing one .txt file per column — named after the column header, one value per line.

No clicking through Excel. No manual copy-pasting. One command, batch-processed.

📂 spreadsheets/
├── bitcoin.xlsx
├── eth.xlsx
└── sol.xlsx

⬇️ run ColumnForge ⬇️

📂 spreadsheets/
├── bitcoin.xlsx
├── eth.xlsx
├── sol.xlsx
├── 📁 output-bitcoin/
│   ├── Date.txt
│   ├── Price.txt
│   └── Volume.txt
├── 📁 output-eth/
│   ├── Date.txt
│   ├── Price.txt
│   └── Volume.txt
└── 📁 output-sol/
    ├── Date.txt
    ├── Price.txt
    └── Volume.txt

🚀 Quick start

1. Clone it

git clone https://github.com/themostjomo/columnforge.git
cd columnforge

2. Install dependencies

pip install -r requirements.txt

💡 macOS / Homebrew users: if you hit an externally-managed-environment error, use a virtual environment instead:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

3. Run it on a folder of spreadsheets

python columnforge.py /path/to/your/spreadsheets

That's it. 🎉


🛠️ Usage

python columnforge.py <folder> [--sheet SHEET_NAME] [--version]
Argument Required Description
folder Folder containing one or more .xlsx files
--sheet Sheet name or index to read (default: first sheet)
--version Print the current ColumnForge version

Examples

# Process every spreadsheet in the current folder
python columnforge.py .

# Process a specific folder
python columnforge.py ~/Desktop/crypto-data

# Use a specific sheet across all files
python columnforge.py ~/Desktop/crypto-data --sheet "Sheet2"

✨ Features

  • 📦 Batch by default — drop in 1 or 100 spreadsheets, same command
  • 🗂️ Auto-organized output — each spreadsheet gets its own clean output folder
  • 🧹 Safe filenames — illegal characters in column headers get sanitized automatically
  • 🔁 Duplicate-proof — repeated column names get _1, _2, etc. instead of overwriting
  • 🛡️ Fault-tolerant — one bad file won't stop the whole batch
  • 🚫 Ignores Excel lock files — skips ~$file.xlsx temp files automatically

📋 Requirements


📄 License

Released under the MIT License.


🐍 Built with Python by JOMO

GitHub

About

ColumnForge — Forge order from spreadsheet chaos.ColumnForge — Forge order from spreadsheet chaos. Batch-extract every column from any number of .xlsx files into clean, ready-to-use .txt files — one command, zero clicking

Topics

Resources

License

Stars

17 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages