-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v0.01, 9/11/2013 -- Initial Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include *.txt | ||
recursive-include docs *.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,24 @@ | ||
pydruid | ||
======= | ||
=========== | ||
pyDruid | ||
=========== | ||
|
||
A Python connector for Druid | ||
pyDruid provides a python interface to the Druid analytic store. Typical usage | ||
often looks like this:: | ||
|
||
This is a side project that needs some love! | ||
#!/usr/bin/env python | ||
|
||
from pyDruid import * | ||
|
||
# Druid Config | ||
endpoint = 'druid/v2/?pretty' | ||
demo_bard_url = 'http://localhost:8083' | ||
dataSource = 'wikipedia' | ||
intervals = ["2013-01-01/p1y"] | ||
|
||
query = pyDruid(demo_bard_url, endpoint) | ||
|
||
counts = query.timeseries(dataSource = dataSource, | ||
granularity = "minute", | ||
intervals = intervals, | ||
aggregations = {"count" : doubleSum("edits")} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from distutils.core import setup | ||
|
||
setup( | ||
name='pyDruid', | ||
version='0.01', | ||
author='Deep Ganguli', | ||
author_email='deep@metamarkets.com', | ||
packages=['pydruid'], | ||
url='http://pypi.python.org/pypi/pyDruid/', | ||
license='LICENSE', | ||
description='Druid analytical data-store Python library', | ||
long_description=open('README.md').read(), | ||
install_requires=[ | ||
"pandas >= 0.12", | ||
"simplejson" >= "3.3.0", | ||
"matplotlib" >= "1.3.0" | ||
], | ||
) |
Empty file.