Skip to content

Update the explorer example to Python 3 #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 20 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Here's what you need to get going with the Splunk SDK for Python.

#### Python

The Splunk SDK for Python requires Python 2.7+.
The Splunk SDK for Python requires Python 2.7+, including Python 3.

#### Splunk

Expand Down Expand Up @@ -282,15 +282,25 @@ If you would like to contribute to the SDK, go here for more information:

### Support

Beginning September 2018, the Splunk SDKs for C#, Java, JavaScript, and Python will no longer be supported through Splunk Support.

You can still request assistance using the following options:

* Post questions to [Splunk Answers](http://splunk-base.splunk.com/answers/). Be sure to use tags to identify the SDK or tool you are having an issue with.

* File an issue on [GitHub](https://github.com/splunk/).

* Send feedback to _devinfo@splunk.com_.
1. You will be granted support if you or your company are already covered
under an existing maintenance/support agreement.
Send an email to support@splunk.com and include "Splunk SDK for Python"
in the subject line.
2. If you are not covered under an existing maintenance/support agreement, you
can find help through the broader community at:
<ul>
<li><a href='http://splunk-base.splunk.com/answers/'>Splunk Answers</a> (use
the <b>sdk</b>, <b>java</b>, <b>python</b>, and <b>javascript</b> tags to
identify your questions)</li>
<li><a href='http://groups.google.com/group/splunkdev'>Splunkdev Google
Group</a></li>
</ul>
3. Splunk will NOT provide support for SDKs if the core library (the
code in the <b>/splunklib</b> directory) has been modified. If you modify an
SDK and want support, you can find help through the broader community and
Splunk answers (see above). We would also like to know why you modified the
core library&mdash;please send feedback to devinfo@splunk.com.
4. File any issues on [GitHub](https://github.com/splunk/splunk-sdk-python/issues).

### Contact Us

Expand Down
2 changes: 1 addition & 1 deletion examples/explorer/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def main(argv):
args.append(('owner', opts.kwargs['owner']))

# Encode these arguments
args = urllib.urlencode(args)
args = urllib.parse.urlencode(args)

# Launch the browser
webbrowser.open("file://%s" % os.path.join(os.getcwd(), "explorer.html?%s" % args))
Expand Down
4 changes: 2 additions & 2 deletions examples/explorer/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
from __future__ import print_function
import splunklib.six.moves.SimpleHTTPServer
import splunklib.six.moves.socketserver
import urllib2
import urllib
import sys
import StringIO
from io import StringIO
from splunklib import six

PORT = 8080
Expand Down