11# python-hll
22
3- [ ![ image] ( https://img.shields.io/pypi/v/python_hll .svg )] ( https://pypi.python.org/pypi/python_hll )
3+ [ ![ image] ( https://img.shields.io/pypi/v/python_hll2 .svg )] ( https://pypi.python.org/pypi/python_hll2 )
44
55[ ![ Documentation Status] ( https://readthedocs.org/projects/python-hll/badge/?version=latest )] ( https://python-hll.readthedocs.io/en/latest/?badge=latest )
66
7- [ ![ image] ( https://img.shields.io/badge/github-python--hll -yellow )] ( https://github.com/AdRoll /python-hll )
7+ [ ![ image] ( https://img.shields.io/badge/github-python--hll2 -yellow )] ( https://github.com/jschaeff /python-hll2 )
88
99A Python implementation of
1010[ HyperLogLog] ( http://algo.inria.fr/flajolet/Publications/FlFuGaMe07.pdf )
@@ -25,7 +25,7 @@ to run while in Python `test_hll_serialization` takes 1.5 hours to run
2525- Runs on: Python 2.7 and 3
2626- Free software: MIT license
2727- Documentation: < https://python-hll.readthedocs.io >
28- - GitHub: < https://github.com/AdRoll /python-hll >
28+ - GitHub: < https://github.com/jschaeff /python-hll2 >
2929
3030## Overview
3131
@@ -36,7 +36,7 @@ overview of what HLLs are and how they work.
3636
3737Hashing and adding a value to a new HLL:
3838
39- from python_hll .hll import HLL
39+ from python_hll2 .hll import HLL
4040 import mmh3
4141 value_to_hash = 'foo'
4242 hashed_value = mmh3.hash(value_to_hash)
@@ -63,7 +63,7 @@ v1.0.0](https://github.com/aggregateknowledge/hll-storage-spec/blob/v1.0.0/STORA
6363(for example, retrieved from a [ PostgreSQL
6464database] ( https://github.com/aggregateknowledge/postgresql-hll ) ):
6565
66- from python_hll .util import NumberUtil
66+ from python_hll2 .util import NumberUtil
6767 input = '\\x128D7FFFFFFFFFF6A5C420'
6868 hex_string = input[2:]
6969 hll = HLL.from_bytes(NumberUtil.from_hex(hex_string, 0, len(hex_string)))
@@ -77,7 +77,7 @@ database](https://github.com/aggregateknowledge/postgresql-hll)):
7777 output = "\\x" + NumberUtil.to_hex(bytes, 0, len(bytes))
7878
7979Also see the [ API
80- documentation] ( https://python-hll.readthedocs.io/en/latest/docs/python_hll .html ) .
80+ documentation] ( https://python-hll.readthedocs.io/en/latest/docs/python_hll2 .html ) .
8181
8282## Development
8383
0 commit comments