Skip to content
Open Shakespeare platform. Repository for managing and code and service for and related websites.
Python JavaScript
Find file
Failed to load latest commit information.
bin [shakespeare/cli][s]: move cli code from bin into shakespeare.cli and…
contrib experiments with the nltk and the xml shakespeare files
docs [all][m]: upgrade to pylons 0.9.7 (ticket:56).
shakespeare.egg-info [all][m]: upgrade to pylons 0.9.7 (ticket:56).
shakespeare Use latest Annotator, v1.2.3
.gitignore [gitignore][xs]: rename hgignore.
AUTHORS.txt [misc][xs]: update AUTHORS.txt with Iain and Jonathan.
CHANGELOG.txt [doc][s]: update CHANGELOG.txt to be very roughly up to date.
COPYING.txt [docs][s]: update basic docstring/README with information about shake… [all][m]: upgrade to pylons 0.9.7 (ticket:56).
README.latex [shksprdata,pdf][l]: new latex/pdf version of shakespeare with extens…
README.rst Fix up requirements and clarify README
TODO.txt Moved all todos into trac. From now on this document will simply be a…
development.ini.tmpl [xl]: massive overhaul to integrate into Pylons 0.9.6. All tests pass…
pip-requirements.txt Fix up requirements and clarify README
setup.cfg [all][m]: upgrade to pylons 0.9.7 (ticket:56). One more broken requirement on Annotator [misc][s]: script to sync generated moby html and pdf in local cache …
who.ini [login][m]: pull in user info (username, email, fullname) via sreg on…



The Open Shakespeare package provides a full open set of shakespeare's works (often in multiple versions) along with ancillary material, a variety of tools, a python API and a web interface that provides access to many (but not all) of these facilities from the comfort of your web browser (see

All material is open source/open knowledge so that anyone can use, redistribute and reuse these materials freely. For exact details of the license under which this package is made available please see COPYING.txt.

Open Shakespeare has been developed under the aegis of the Open Knowledge Foundation (

Contact the Project

Please mail or join the open-humanities mailing list:

Copyright and License

Copyright 2005-2011 Open Knowledge Foundation. All material licensed under the MIT license:

Installation and Setup

The main part of Shakespeare is a python web application written using the Pylons framework. In addition there are various scripts that can be used independently (most of these still require python).

0. Prerequisites

  • Python (>= 2.5)

1. Install the code

1.1: (EITHER) Install using (preferred)

Install shakespeare using easy_install (or pip):

easy_install shakespeare
# or
pip install shakespeare

NB: If you don't have easy_install you can get from here:


1.2 (OR) Get the code straight from the repository

  1. Check out the mercurial repo:

    git clone
  2. Do:

    python develop

Getting Started

As a user:

1. Basic setup

To access most of the main features of Open Shakespeare you need a database. For this an other bits and bobs of configuration you will need a configuration file.

You can make a config file as follows:

paster make-config shakespeare {your-config.ini}

You should also symlink who.ini into same directory as your config file.

Tweak the config file as appropriate and then setup the application:

paster setup-app config.ini

[TODO: this should be part of setup-app]


$ shakespeare-admin db init

2. Web Interface

The graphical user interface is a web interface.

You can start a web server to provide a easy-to-use web interface to the shakespeare material and facilities by doing:

$ paster serve {your-config.ini}

NB: {your-config.ini} should be replaced with the name of the config file you created earlier.

3. Commands and Command Line Interface

Main command line interface is via shakespeare-admin. Check it out by doing:

shakespeare-admin help

In addition to shakespeare-admin commands there are also some paster commands. To see what is available:

paster -h

4. Extras

  1. To load the data packages, make sure you have downloaded and installed the relevant data package (e.g. shksprdata or miltondata) and then do:

    shakespeare-admin --config {your-ini-file} db init_shksprdata
  2. Search index. To run the search index you will need xapian and the python xapian bindings installed. (On Debian/Ubuntu this is xapian and python-xapian). Then take a look at:

    shakespeare-admin search

3. Word of the day. Enable this in your config file and then run word_of_the_day command to pull the data.

As a developer:

0. Setup

Follow the basic steps above but with an ini file named: development.ini

NB: you'll probably want to change log levels to debug.

1. Check out the administrative commands

$ bin/shakespeare-admin help.

2. Run the tests using either py.test of nosetests

If you haven't installed and configured Xapian, do:

$ nosetests shakespeare --exclude stats --exclude search

Otherwise you can run the full test suite:

$ nosetests shakespeare
Something went wrong with that request. Please try again.