Skip to main content

A Python client for the Changelog API

Project description

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 1.0
  • 0.6b becomes stable 1.0 version

Version 0.6b
  • Fixed Basic Authorization example in README

Version 0.5b
  • Added SSL support

Version 0.4b
Version 0.3b
  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ccp-1.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file ccp-1.0.tar.gz.

File metadata

  • Download URL: ccp-1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ccp-1.0.tar.gz
Algorithm Hash digest
SHA256 1173554da77cd01c8d91b57bb3e2ba097a2638b33db5e22f258c57945e2ea508
MD5 2c30c65c2ec728a8e2bc0d04aa8ee09e
BLAKE2b-256 49b2bfa9eef4e4c1830a5d6b5311494f953e027ff782a162b153f6a36484d709

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page