Ask Your Question

Revision history [back]

Since requests and its dependencies are pure Python, I've been able to just use pip install (no Jython stuff) and then specify the Python package path in the Jython script:

import sys
# Set to wherever the requests package lives on your machine
sys.path.append('/Library/Python/2.7/site-packages')
import requests

I wrote a blog entry on using Jython to send data to Splunk back before we had the Splunk destination - there are step-by-step instructions there.