hipchatpy
hipchatpy is HipChat client library for specific logging.
Install
pip install hipchatpy
Dependencies
requests
Sample Code
import hipchatpy
AUTH_TOKEN = 'hogehoge'
ROOM_ID = 10000
# Create a new instance.
logging = hipchatpy.HipChatLogger(AUTH_TOKEN, ROOM_ID)
# LogLevel: INFO
logging.info(message='INFO Message')
# LogLevel: WARN
logging.warn(message='WARN Message')
# LogLevel: ERROR
logging.error(message='ERROR Message')
Correspondence table
Method |
LogLevel |
Notify |
Color |
|---|---|---|---|
info() |
INFO (1) |
False |
green |
warn() |
WARNING (2) |
True |
yellow |
error() |
ERROR (3) |
True |
red |
Command line
export HIPCHAT_TOKEN=your_api_token
# LogLevel: INFO
hipchatpy -r 10000 -m 'INFO Message' -l 1
# LogLevel: WARN
hipchatpy -r 10000 -m 'WARN Message' -l 2
# LogLevel: ERROR
hipchatpy -r 10000 -m 'ERROR Message' -l 3
Metadata
Release files for hipchatpy 0.1.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hipchatpy-0.1.17.tar.gz | 3.2 kB | Without provenance | Details for hipchatpy-0.1.17.tar.gz |
Release files / hipchatpy-0.1.17.tar.gz
| Download URL | hipchatpy-0.1.17.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b9bc2235d87aa5cc7bf6b7d706d7d5aed6cc2ca159f1eb0ba11cf9a0bb421c2
|
|
BLAKE2b-256 checksum How to use checksums |
0e50d266278d2af8f9cda87a092fe00a4fa7eedb8a29686bc097e47ae6a12873
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for hipchatpy 0.1.17
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.