Based on ylmcc/AutoHasteBin
posthaste is a super-lightweight Python CLI tool for quickly uploading text or files to any Hastebin-compatible server — straight from your terminal.
Perfect for sharing code snippets, logs, notes, and more — without needing to open a browser. Pipe it, upload it, share it — done.
- Upload directly from stdin or from one or more files
- Save tokens to your environment for later use
- Choose your own Hastebin server
- No dependencies beyond
requestsand my in-houseargparsesub-in - Blazing fast and easy to use
-
then upload text:
echo "hello world" | posthaste- or upload a file:
posthaste mylogfile.txt- or upload multiple files:
posthaste file1.txt file2.txt- save your API token (only needed if the server requires it):
posthaste --token YOUR_TOKEN_HERE$ echo "my example code" | posthaste
Uploading to: https://hastebin.com/documents
https://hastebin.com/share/abcd1234$ posthaste error_log.txt
Uploading file: error_log.txt
https://hastebin.com/share/efgh5678This project is licensed under the GPL v3.0 License.
See the LICENSE file for full details.