Skip to main content

hipchav

A minimal Python HipChat client with command-line interface.

Setup

Install hipchav from source, or using pip:

pip install hipchav

Then you’ll need to configure it with your HipChat API key:

export HIPCHAT_V1_TOKEN=thisismyhextokentheygaveme

or for the v2 API:

export HIPCHAT_V2_TOKEN=thisismyhextokentheygaveme

Usage

HipChav currenly only supports two functions, listing rooms and sending messages.

Listing rooms

$ hipchav.py rooms
Developers
Whole company
Bots only

Sending messages

Messages are quite straight-forward to send:

$ hipchav.py message 'Whole company' 'Freshly baked cookies in the kitchen'

You can also change their color and send notifications to people in the room:

$ hipchav.py message --color=red --notify 'Developers' 'Um, the build is broken'

With the v1 API, you can also choose who the message appears from:

$ hipchav.py message --from=Glados 'Whole company' 'Dispensing deadly neurotoxin'

Check its usage information for full options:

$ hipchav.py --help

Changelog

v0.1.3

  • Install as both a script and a module

v0.1.2

  • Support HTML messages using the --format flag

v0.1.1

  • Also support v1 API, autodetect based on environment variables present

  • For v1 API, support the from field with the --from option.

  • You’ll need to update HIPCHAT_AUTH_TOKEN to either HIPCHAT_V1_TOKEN or HIPCHAT_V2_TOKEN

v0.1.0

  • Initial release, supports listing rooms and messaging with color and notifications

Metadata

Release files for hipchav 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hipchav 0.1.3
File Size Uploaded Provenance
hipchav-0.1.3.tar.gz 3.5 kB Without provenance Details

Release files / hipchav-0.1.3.tar.gz

Download URL hipchav-0.1.3.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7f905d06031d3ea73394e0249dd06cd3d9846aaafd803515ebfa6ccc4991a34d
BLAKE2b-256 checksum
How to use checksums
d293aad0b09a541f101e938beb18ef1eaf72aa925e0f1dc546d0888e4c7a5797
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for hipchav 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page