Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!


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]. 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

mkdir test_cheroke_api
cd test_cheroke_api/
pip install -E ve -e hg+
pip install -E ve -r ve/src/cherokee-admin-api/requirements.pip

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

nosetests -w tests/
Ran 7 tests in 0.660s

How to us it

cherokee-admin-api comes with examples, configure cherokee to serve a wsgi application using uwsgi.

pip install -E ve -r ve/src/cherokee-admin-api/examples/requirements.pip
. ve/bin/activate
cd ve/src/cherokee-admin-api/examples/
sudo cherokee -C wsgi-cherokee-gene.conf

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

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.