Source

cherokee-admin-api /

Filename Size Date modified Message
cherokee_admin_api
tests
749 B
1.6 KB
13 B
385 B

cherokee admin api

Project scope

The Goal of this project is to provide an easy way to programmatically, in python, create and manipulate a cherokee.conf. Cherokee-admin give us a wonderful UI to interactively setup and configure a cherokee web server but it does not cover the use case where you need to automate repetitive tasks. I have decided to explore what it would take to create such package. Since cherokee-admin is written in python I have extracted the parser that is used to read and write cherokee.conf and added some functions to create:

  • vserver
  • source
  • rule

Where to get it ?

You can access the code on my bitbucket account [here http://bitbucket.org/yml/cherokee-admin-api]. It is not yet ready for production but I think it can give you an idea of what you could do with this kind of tool.

How to install it

#!shell
pip install -E cherokee-admin-api-demo -e hg+http://bitbucket.org/yml/cherokee-admin-api#egg=cherokee_admin_api
pip install -E cherokee-admin-api-demo nose #only required to easily run the test suite.
cd cherokee-admin-api-demo/; . bin/activate
cd src/cherokee-admin-api/

In order to check that everything is working fine on your end you can run the test suite.

#!shell
nosetests -w tests/
.......
----------------------------------------------------------------------
Ran 7 tests in 0.660s
OK

This will confirm that you are all set and can now start to work with cherokee-admin-api.