Skip to content

jirutka/haste-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Haste client

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages