Skip to content

Commit

Permalink
Making this into a python project
Browse files Browse the repository at this point in the history
  • Loading branch information
rjurney committed Sep 13, 2013
1 parent 35cd39e commit b43b95d
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v0.01, 9/11/2013 -- Initial Release
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include *.txt
recursive-include docs *.txt
26 changes: 22 additions & 4 deletions README.md
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")}
)
18 changes: 18 additions & 0 deletions setup.py
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 added test/__init__.py
Empty file.

0 comments on commit b43b95d

Please sign in to comment.