Skip to main content
# hipchat_notif

hipchat_notif is [HipChat](https://www.hipchat.com) client library for sending notification using API v1.

## VER. 0.2.3

Added the ability to change the message format.(Thanks to https://bitbucket.org/cou_z)
message_format: Determines how the message is treated by our server and rendered inside HipChat applications.
html - Message is rendered as HTML and receives no special treatment. Must be valid HTML and entities
must be escaped (e.g.: & instead of &). May contain basic tags: a, b, i, strong, em, br, img,
pre, code, lists, tables. Special HipChat features such as @mentions, emoticons, and image previews
are NOT supported when using this format.
text - Message is treated just like a message sent by a user. Can include @mentions, emoticons, pastes,
and auto-detected URLs (Twitter, YouTube, images, etc)
## Python version

2.7
3.4

## Dependencies

- requests>=2.3

## Sample Code

```python
from hipchat_notif import *

TOKEN = "AUTH_TOKEN" # Get token from https://hipchat.com/admin/api
ROOM_ID = 10000
NOTIFICATION_NAME = "NOTIFICATOR"

# Create a new instance.

notif = HipchatNotificator(TOKEN)
notif.notification_name = NOTIFICATION_NAME
notif.room = ROOM_ID

# Send Alert notification
notif.alert("Alert", message_format = "text")

# Send Ok message
notif.ok("Not Alert", message_format = "html")

# Send message
notif.message("Message")

# Send Notification
notif.notif("Notification")
```

### Correspondence table

|Method | Notify | Color
:----: | :----: | :----:
alert() | True | red
ok() | False | green
message() | False | yellow
notif() | True | gray

Release files for hipchat_notif 0.2.3

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

Source distributions (sdists)

Source distribution for hipchat_notif 0.2.3
File Size Uploaded
hipchat_notif-0.2.3.zip 8.9 kB Details
hipchat_notif-0.2.3.tar.gz 4.4 kB Details

Release files / hipchat_notif-0.2.3.zip

Download URL hipchat_notif-0.2.3.zip
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f04e765206520f79ad9f82e7ea6331f13eb0931c718c63ed31c0d909239d089d
BLAKE2b-256 checksum
How to use checksums
7e744a082488c9a2b94a61aec1863343f2da79fd05494b84969cac1e8fbc6bf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / hipchat_notif-0.2.3.tar.gz

Download URL hipchat_notif-0.2.3.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
eabd6954e91ace90ba85faad6bbc56928e14e032fb317b86404ca200a110608c
BLAKE2b-256 checksum
How to use checksums
5d8283dc05633ab9bb1cebc6c136cf248a95c39a1053d22a71b2af47235ac2e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

0.2.1

2 release files

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