-
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.
Merge pull request #1 from rjurney/master
Convert pydruid project into a pypi package
- Loading branch information
Showing
13 changed files
with
74 additions
and
10 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,8 @@ | ||
v0.01, 9/11/2013 -- Initial Release | ||
v0.01.1, 9/30/2013 -- Fixing problems with build :( | ||
v0.01.2, 9/30/2013 -- Fixing problems with build :( | ||
v0.01.3, 9/30/2013 -- Fixing problems with build :( | ||
v0.1.4, 9/30/2013 -- Still working on getting around README.md errors | ||
v0.1.5, 10/2/2013 -- Still working on build problems | ||
v0.1.6, 10/2/2013 -- Still working on build problems | ||
v0.1.7, 10/2/2013 -- still working on build problems |
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,12 @@ | ||
# file GENERATED by distutils, do NOT edit | ||
CHANGES.txt | ||
README.txt | ||
setup.py | ||
pydruid | ||
pydruid/__init__.py | ||
pydruid/client.py | ||
pydruid/utils/__init__.py | ||
pydruid/utils/aggregators.py | ||
pydruid/utils/filters.py | ||
pydruid/utils/postaggregator.py | ||
pydruid/utils/query_utils.py |
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,4 @@ | ||
include *.txt | ||
include *.md | ||
recursive-include docs *.txt | ||
global-include pydruid *.py |
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,27 @@ | ||
=========== | ||
pyDruid | ||
=========== | ||
|
||
pyDruid provides a python interface to the Druid analytic store. Typical usage | ||
often looks like this:: | ||
|
||
#!/usr/bin/env python | ||
|
||
from pydruid.client 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")} | ||
) | ||
|
||
print counts | ||
[{'timestamp': '2013-09-30T23:31:00.000Z', 'result': {'count': 0.0}}, {'timestamp': '2013-09-30T23:32:00.000Z', 'result': {'count': 0.0}}, {'timestamp': '2013-09-30T23:33:00.000Z', 'result': {'count': 0.0}}, {'timestamp': '2013-09-30T23:34:00.000Z', 'result': {'count': 0.0}}] |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,19 @@ | ||
from setuptools import setup | ||
|
||
setup( | ||
name='pyDruid', | ||
version='0.1.7', | ||
author='Deep Ganguli', | ||
author_email='deep@metamarkets.com', | ||
packages=['pydruid', 'pydruid.utils'], | ||
url='http://pypi.python.org/pypi/pyDruid/', | ||
license='LICENSE', | ||
description='Druid analytical data-store Python library', | ||
long_description=open('README.txt').read(), | ||
install_requires=[ | ||
"pandas >= 0.12", | ||
"simplejson >= 3.3.0", | ||
"matplotlib >= 1.3.0", | ||
"numpy >= 1.7.1" | ||
], | ||
) |