Skip to content
This repository was archived by the owner on Oct 29, 2021. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

AppDash: Python

Setup

To install appdash for python you'll first need to install Google's protobuf, the Twisted networking library, and a RFC3339 support library through the standard easy_install and pip python package manager commands:

# (Ubuntu/Linux) Install easy_install and pip:
sudo apt-get install python-setuptools python-pip

# Install Google's protobuf:
easy_install protobuf

# Install Twisted networking:
easy_install twisted

# Install strict-rfc3339
pip install strict-rfc3339

Depending on where Python is installed and/or what permissions the directory has, you may need to run the above easy_install and pip commands as root.

Testing

If all is well with your setup, you should be able to change directory to here and run the example:

# Run appdash server in separate terminal:
appdash serve

# Run the example script:
cd $GOPATH/src/sourcegraph.com/sourcegraph/appdash/python
./example.py

Integration

TODO(slimsag): integrate nicely with common Python HTTP frameworks. TODO(slimsag): provide way to easily install python' appdash module.