Skip to main content

# HipCat

Pipe things to HipChat from the command-line!

Inspired by [Slackcat](https://github.com/rlister/slackcat)!

## Installation

You will need a working installation of [Python](https://www.python.org/) (you already have this if you’re on Linux or OSX) and [PIP](https://pip.pypa.io/en/stable/installing/).

`bash pip install hipcat `

Go to [https://fanduel.hipchat.com/account/api](https://fanduel.hipchat.com/account/api) and create a new token. It only needs the ‘Send Notification’ scope, but this may change in future.

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

`ini [hipcat] access_token = <put-your-token here> `

## Using hipcat

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

`bash # 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:

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

## Contributing to hipcat

You want to contribute?? Love you!

There’s some stuff you should know:

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

  • Please treat me and any 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 tox and py.test. If you want to add tests, let’s talk about it first.

## To Do

  • Add –quote option for pre-pending the message with /quote

  • Add a –code option for pre-pending the message with /code

  • Errrrrr… 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.5.tar.gz (3.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.5-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hipcat-0.0.5.tar.gz
Algorithm Hash digest
SHA256 bd418bc66ca2b3daa17832cc1cb6c67d9354d7332a6fbb8584c0ab4e6b8f7150
MD5 a86851e9156a67d19ec90356403a5108
BLAKE2b-256 c9d99df7fa3aaa8b8951687d8b3358cd6f1625936963872a90a6c06615207c4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hipcat-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c288d32c69a99fdbaabb90fc402da6bde632eaea8633e9b3d4590e7bb0d95d04
MD5 eb8fd847459588e2cb2c283e2d02e214
BLAKE2b-256 424a6167de7da30d07c275e6462699e99237b53db87fbc9587f1147ead351bfa

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