Skip to main content

A CLI tool to upload text to a hastebin server quickly and cleanly.

Project description

GitHub commit activity GitHub contributors GitHub last commit PyPI - License PyPI - Downloads


posthaste – Hastebin uploads, lightning fast

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.


✨ Features

  • 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 requests and my in-house argparse sub-in
  • Blazing fast and easy to use

📦 Quick Start

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

🔧 Example

$ 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/efgh5678

📄 License

This project is licensed under the GPL v3.0 License.
See the LICENSE file for full details.

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

posthaste_cli-0.1.1.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

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

posthaste_cli-0.1.1-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file posthaste_cli-0.1.1.tar.gz.

File metadata

  • Download URL: posthaste_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for posthaste_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1c3656f65334c7fd472e930e69f4ce5d3c24e09b564c2d6a1bfea05018d34b61
MD5 1febae1040ddbfce9989f1f7d277a82a
BLAKE2b-256 018319a141e3c161811f1dc63c5e2f9d87345b4ce03ce443278d3ac9530cc077

See more details on using hashes here.

Provenance

The following attestation bundles were made for posthaste_cli-0.1.1.tar.gz:

Publisher: python-publish.yml on ArchooD2/posthaste

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file posthaste_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: posthaste_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for posthaste_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d49fb0ea560c25c00ab9fd772ff8fcea7b769936ad9923ab5a34e22bfebb6903
MD5 a57094d86c0ee1c31425cdbdc0c04f6f
BLAKE2b-256 5dd857a99a0cd60b0314d08e6e2b50fc1757fa7964f35e4ab94364a4d6ba7f06

See more details on using hashes here.

Provenance

The following attestation bundles were made for posthaste_cli-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on ArchooD2/posthaste

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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