File: README.rst

package info (click to toggle)
python-fnvhash 0.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 128 kB
  • sloc: python: 1,526; makefile: 4
file content (29 lines) | stat: -rw-r--r-- 627 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Pure Python FNV hash implementation
===================================

.. image:: https://travis-ci.org/znerol/py-fnvhash.svg?branch=master
    :target: https://travis-ci.org/znerol/py-fnvhash


Pure Python implementation of the FNV_ hash family with 100% test coverage.
Take a look at pyhash_ for use cases where performance is more important than
portability.

.. _FNV: http://isthe.com/chongo/tech/comp/fnv/
.. _pyhash: https://pypi.python.org/pypi/pyhash


Usage
-----

::

    >>> from fnvhash import fnv1a_32
    >>> hex(fnv1a_32(b'foo'))
    '0xa9f37ed7'


License
-------

The software is subject to the MIT license.