Coder Social home page Coder Social logo

charun's Introduction

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.