Package for HipChat's v2 API
A Python package for HipChat’s v2 JSON REST API. It’s based on v2’s navigability and self-declaration.
There are two basic types in HypChat: Linker and RestObject. They are not meant to be instantiated directly but instead created as references from other objects.
A subclass of dict, contains additional functionality for links and actions.
Many of the v2 types define additional types, eg Rooms have methods for messaging, setting the topic, getting the history, and inviting users to the room. These are implemented as methods of subclasses. The complete listing is in the Type List.
First, create a HypChat object with the token
hc = HypChat("mytoken")
There are several root links:
rooms = hc.rooms() users = hc.users() emots = hc.emoticons() caps = hc.capabilities()
In addition, the HypChat object has methods for creating objects and directly referencing the basic types.
If you call python -m hypchat, a interactive prompt (using IPython if available) will appear. The environment will contain hipchat, an instance of the HypChat object. The token is pulled from ~/.hypchat, /etc/hypchat, or the environment variable HIPCHAT_TOKEN.
- Proper Datetime and Timezone (dateutils) support
- API Links
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|hypchat-0.1.linux-x86_64.tar.gz (20.6 kB) Copy SHA256 hash SHA256||Dumb Binary||any||Dec 12, 2013|
|hypchat-0.1.tar.gz (9.8 kB) Copy SHA256 hash SHA256||Source||None||Dec 12, 2013|