Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.25 KB

File metadata and controls

65 lines (43 loc) · 1.25 KB

PyTermbin

A simple command-line tool for uploading text and files to termbin.com. Returns a shareable URL after each upload.


Features

  • Paste raw text directly from stdin
  • Upload a local .txt file
  • Capture and upload an entire terminal session
  • Returns a termbin URL for every upload

Requirements

  • Python 3.6+
  • No third-party dependencies (uses stdlib only)
  • Linux / macOS recommended (script command required for terminal capture)

Installation

git clone https://github.com/yourusername/PyTermbin.git
cd PyTermbin
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Usage

python3 Pytermbin.py

Select from the menu:

1. Paste text         - Type or pipe text, press CTRL+D to submit
2. Paste txt file     - Provide a path to a local .txt file
3. Paste entire terminal - Records a terminal session and uploads it
4. Exit

A termbin URL is printed after each successful upload.


Notes

  • Terminal capture (option 3) uses the script command, available on most Unix systems
  • Uploads are sent to termbin.com on port 9999 over a raw TCP socket
  • No API key required

License

MIT License. See LICENSE for details.