Skip to main content

CLI client for Haste server (hastebin.com) written in Python.

Project description

version

A simple client for Haste server written in Python.

Installation

Use pip or easy_install:

pip install haste-client

Gentoo users can use haste-client ebuild from CVUT Overlay.

Haste client needs Python 2.6+ or 3.x (it was tested on 2.7, 3.3 and 3.4) and following modules:

Usage

Text can be passed to haste via stdin or a file. TTY is also supported.

haste FILE
cat FILE | haste

URL of the created entry is then printed to STDOUT.

Configuration

Haste client reads configuration variables from ~/.hastec and /etc/hastec.conf (in this order, first wins). When no such file or the particular variable exists, then default values are used:

server_url = http://hastebin.com
timeout = 3

License

This project is licensed under MIT license.

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

haste-client-1.0.3.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file haste-client-1.0.3.tar.gz.

File metadata

File hashes

Hashes for haste-client-1.0.3.tar.gz
Algorithm Hash digest
SHA256 c7ae62c3f71da9b54285f9a99b01438f590c347601544bd6a0fb9996f1f09c15
MD5 bab50fd3020d04ac958e400f4f00edf6
BLAKE2b-256 5590db57c4a0d1629f29a48ea1b1dc916b44c6d6ca6dafb1e5a4190fda2904b7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page