UNKNOWN
Project description
Utilities for accessing and using hive with python.
Installing
You can install hive_utils through pip or easy-install:
pip install hive_utils
Or you can download the latest development version, which may contain new features.
Using hive_utils
hive_utils allows you to access hive with an API that is similar to MySQL-python:
query = """
SELECT country, count(1) AS cnt
FROM User
GROUP BY country
"""
hive_client = hive_utils.HiveClient(
server=config['HOST'],
port=config['PORT'],
db=config['NAME'],
)
for row in hive_client.execute(query):
print '%s: %s' % (row['country'], row['cnt'])
License
hive_utils is copyright 2013 Eventbrite and Contributors, and is made available under BSD-style license; see LICENSE for details.
News
0.0.1
Relase date: September 5th, 2013
Creation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hive_utils-0.0.1.tar.gz
(3.5 kB
view details)
File details
Details for the file hive_utils-0.0.1.tar.gz.
File metadata
- Download URL: hive_utils-0.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
985e77bed8d90b674007fc4e7b99d68c9a1749c59f9288f4cf3c05c05044d85d
|
|
| MD5 |
83cc79c26c3011b87d8cc77cd5e81586
|
|
| BLAKE2b-256 |
d599ce4bc1c70acf1981850b4abffe5aa50135fdc4ad3c1c1a3375141ef732f5
|