diff --git a/CHANGES.txt b/CHANGES.txt new file mode 100644 index 00000000..ca13fd38 --- /dev/null +++ b/CHANGES.txt @@ -0,0 +1 @@ +v0.01, 9/11/2013 -- Initial Release diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..2985d188 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include *.txt +recursive-include docs *.txt diff --git a/README.md b/README.md index a26d9e76..7294b4b8 100644 --- a/README.md +++ b/README.md @@ -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")} + ) diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..e6bbff1b --- /dev/null +++ b/setup.py @@ -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" + ], +) \ No newline at end of file diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 00000000..e69de29b