This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description


IndigoRESTWrapper is intended to provide more complete access to the information in the Indigo database.

This is a (completely unauthorized) wrapper for Indigo (, using Django ( and Django-rest-framework (

It can do two things:
  • wrap (some of) the current REST calls, in case you’d like different authentication (the authentication provided by django REST is detailed here:
  • provide a few new acccessors, such as retrieving a device by its ‘id’ and also providing a view of the history of a device.

Technically it works by either just calling the current Indigo REST api, or for information which isn’t available there, scanning the database file(s).

Currently available APIs:
  • http://localhost:8000/devices/ - returns a list of all the details about all the devices. It’s more detailed than Indigo’s devices.json, but it’s cached and so some values will certainly be out of date. However, you can use device_history to get this information.
  • http://localhost:8000/device/1838057829/ - Complete information about the device with the matching device id. This is also cached and so some values will certainly be out of date. You can use device_history to get this information though.
  • http://localhost:8000/device_history/1838057829/ - The history of the device. The exact format will depend on the type, but it will typically be a ts
There are also some which wrap the current Indigo API. The big problem here is simply that currently IndigoRESTWrapper can’t interact with Indigo if Indigo is protected with authentication. This should be possible to fix relatively quickly, but one option is to block any access to indigo’s port via your router’s firewall, and then it doesn’t matter so much that Indigo is unprotected.


Before you start

If you don’t know Django at all, you might want to follow the Django tutorial first:

You should make sure you have an up-to-date version of pip:

[sudo] pip install -U pip

Install virtualenv and virtualenvwrapper (if you haven’t already):

[sudo] pip install virtualenv
[sudo] pip install virtualenvwrapper

BTW on default OSX pip installs to : /Library/Frameworks/Python.framework/Versions/2.7/bin/

More details are here: but a short version might be:

cd $HOME
mkdir .virtualenvs
nano .bash_login

and to .bash_login you could add the following:

export PROJECT_HOME=$HOME/Documents
export PIP_PATH=/Library/Frameworks/Python.framework/Versions/2.7
export WORKON_HOME=$HOME/.virtualenvs
export PATH=$PATH:$PIP_PATH/bin
source $PIP_PATH/bin/

The we need to set up the virtualenv:

mkvirtualenv indigorestserver
workon indigorestserver

Installing Django and django-indigorestwrapper

First make a work directory:

cd Documents
mkdir IndigoRestWrapper
cd IndigoRestWrapper

To install it you need to first install some dependencies:

pip install django
pip install djangorestframework

To check this package out now do:

pip install django-indigorestwrapper

Create a new project:

django-admin startproject mysite

Edit mysite/

Add the following to INSTALLED_APPS:


DATABASES should look like:

  'default': {
      'ENGINE': 'django.db.backends.sqlite3',
      'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  'indigo_db': {
      'ENGINE': 'django.db.backends.sqlite3',
      'NAME': os.path.join(BASE_DIR, '/Library/Application Support/Perceptive Automation/Indigo 6/Logs/indigo_history.sqlite'),

(actually you’re free to use whichever DB you prefer for default, but I’m keeping it sqlite3 for the benefit of this tutrorial)

At the end add:

  # Use Django's standard `django.contrib.auth` permissions,
  # or allow read-only access for unauthenticated users.

You might need to update the location for indigo_db in the DATABASES section (though what is above is the default) and INDIGO_URL at the end, to tell it where to find the indigo server.

Then, in the project directory, do:

./ migrate
./ makemigrations

And finally, to try to grab the device data from indigo, do:

./ updateindigodb

(Currently this requires indigo to be unprotected - you could always disable it to run this command, then re-enable it when done - though of course any forwarding of indigo commands will not work once the server is password protected again)

Now you should be able to get a server up and running using:

./ runserver

(This is just for debugging - you should really set something up with e.g. Apache)

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-indigorestwrapper-0.6.tar.gz (11.9 kB) Copy SHA256 Checksum SHA256 Source May 2, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting