skip to navigation
skip to content

Not Logged In

ccp 0.4b

A Python client for the Changelog API

Latest Version: 1.1

Send an event to a Changelog server.

Installation

To install ccp, simply:

$ pip install ccp

Supported severities

  1. INFO
  2. NOTIFICATION
  3. WARNING
  4. ERROR
  5. CRITICAL

Example

It is pretty easy to use:

from ccp.client import Client

client = Client("localhost", "80")
client.send("This is a simple message", "INFO", "category")

You can pass a in a dict to specify additional HTTP headers, for example to do authentication:

client.send("Message", "INFO", "category", {"Authorization", "Basic base64encoded"})

Logging

Logging happens into the logger called changelog_client by default. You can override it by setting the logger property of a client instance to a Logger object.

Version 0.5b
  • Added SSL support
Version 0.4b
Version 0.3b
  • Initial release
 
File Type Py Version Uploaded on Size
ccp-0.4b.tar.gz (md5) Source 2014-07-01 3KB
  • Downloads (All Versions):
  • 19 downloads in the last day
  • 151 downloads in the last week
  • 1487 downloads in the last month