Skip to main content

Pipe things to HipChat from the command-line!

Inspired by Slackcat!

Installation

You will need a working installation of Python 3 (you probably already have this if you’re on Linux or OSX) and PIP.

pip3 install hipcat

Go to https://www.hipchat.com/account/api and create a new token. It only needs the ‘Send Message’ scope, but this may change in future.

Create a file at ~/.hipcat.ini that looks a bit like this:

[hipchat]
access_token = <put-your-token here>

Using hipcat

You can get help by running hipcat --help, but the basics look like this:

# Pipe output from one command to HipChat:
echo 'This is my message' | hipcat 'Room Name'

If you don’t want to pass the message via a pipe, you can instead provide it as a parameter:

# Run a long running command and then notify on HipChat
my-long-task && hipcat 'Notifications' -m "The long-running task is done"

If the text you are sending to HipChat is formatted, use the -q flag to prefix with /quote, and if it should be syntax-highlighted code, use the -c flag to prefix with /code.

Contributing to hipcat

You want to contribute? Love you!

There’s some stuff you should know:

  • Please don’t backport it to Python 2. Yes, I know it’s easy. We should all be writing Python 3 now.

  • Please treat other contributors and commenters with respect.

  • Please ensure that any changes follow PEP-8.

  • When I add tests (there aren’t any yet!) I plan to use py.test. If you want to help by addind tests, let’s talk about it first.

To Do

  • Add a flag to send the output to HipChat line-by-line rather than at the end.

  • Allow message posting to individuals as well as rooms.

  • Allow uploading content as a file rather than inline text.

  • Err… post a GitHub issue if you want to see a new feature, and we’ll talk!

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hipcat-0.0.10.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

hipcat-0.0.10-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file hipcat-0.0.10.tar.gz.

File metadata

  • Download URL: hipcat-0.0.10.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hipcat-0.0.10.tar.gz
Algorithm Hash digest
SHA256 edce6542dc4b35d17dd1df014298deaaed356b5703fdb54573b97b00913d8e57
MD5 cf26a4344f058165ec0cc6a18712fafe
BLAKE2b-256 521ab6ad9aee59f142e4ec3ace379f19441e9c26e53306fcac76ac30b33a8c5e

See more details on using hashes here.

File details

Details for the file hipcat-0.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for hipcat-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 050e32724e2190b21014baeacf968c333718817a6d5948730eca6c88ccab782f
MD5 a3576a39e356e8d1f5903729dae3bdb0
BLAKE2b-256 22d7648abd941ca4652e01c14cb729229f8004401f61fb7d7c79552fef4de7da

See more details on using hashes here.

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