Skip to content

kr1/charun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

==========================================================================================================

CHARUN - A python bridge to CouchDB
http://github.com/kr1/charun

ABOUT

CHARUN is a server that listens on a UDP socket for incoming json-formatted data which is transformed in python objects, manipulated and sent to a couchdb instance. Think of it as a doorman.
Intended use cases are: logging app data which has to be filtered, aggregated or otherwise tagged before being stored.

It is written in python and uses uses the twisted framework. The basic modules are:

  1. charun

    holds the code that handles incoming data.

  2. CouchDBConnect

    couchdb related code for connection and storage

  3. charun_tac.py

    application configuration (twisted.application) that holds all connection informations, database names.

INSTALLATION

  1. dependencies

    you need to have python and the twisted framework installed. furthermore, you need a couchdb instance to write to.
    And if you want to run the tests you need the Mock module and the unittest2 module.

  2. How to run

    run charun as a daemon with:
    twistd -y charun_tac.py

    it will log to the tmp directory and will write its pid to a file called twistd.pid to the current directory.
    stop the application with:
    kill `cat twistd.pid`

    you can run the application in foreground with:
    twistd -noy charun_tac.py

  3. run the tests

    nosetests will discover the tests automatically, just run:
    nosetests -v

    if you want more control over which tests to run:
    you can run all tests by calling:
    python test_director.py
    you can run only unit tests:
    python test_director.py unit
    or only integration tests:
    python test_director.py integration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages