📜 ⬆️ ⬇️

CityHash for Python

Just yesterday, Google laid out CityHash library with a set of hash functions for strings.
I wanted to try using CityHash in my Python projects, and since I’ve started Cython now, I quickly decided to make a wrapper for CityHash in Cython. And did. Suddenly someone come in handy, take:

github.com/Amper/cityhash

For installation: sudo sh ./install.sh
Need python> = 2.5, cython> = 14.x, gcc. Honestly, I did so quickly at work, so I checked it only on Ubuntu)
')
PS And I was so divided that I remembered that recently Google was also spreading Snappy . I also wanted to wrap it for Python, I went to the site, but it turns out that this has already been done not only for Python, but also for Haskell , Java , Node.js , Perl and Ruby .

Source: https://habr.com/ru/post/117395/


All Articles