Metadata-Version: 1.1
Name: xxhash
Version: 0.1.0
Summary: Python binding for xxHash
Home-page: https://github.com/ifduyue/python-xxhash
Author: Yue Du
Author-email: ifduyue@gmail.com
License: UNKNOWN
Description: python-xxhash
        =============
        
        .. image:: https://travis-ci.org/ifduyue/python-xxhash.svg?branch=master
            :target: https://travis-ci.org/ifduyue/python-xxhash
            :alt: Build Status
        
        .. image:: https://pypip.in/version/xxhash/badge.svg
            :target: https://warehouse.python.org/project/xxhash/
            :alt: Latest Version
        
        .. image:: https://pypip.in/download/xxhash/badge.svg
            :target: https://warehouse.python.org/project/xxhash/
            :alt: Downloads
        
        .. image:: https://pypip.in/py_versions/xxhash/badge.svg
            :target: https://warehouse.python.org/project/xxhash/
            :alt: Supported Python versions
        
        .. image:: https://pypip.in/license/xxhash/badge.svg
            :target: https://warehouse.python.org/project/xxhash/
            :alt: License
        
        xxhash is a Python binding for the `xxHash library <http://code.google.com/p/xxhash/>`_ by Yann Collet.
        
        Installation
        ------------
        ::
        
            $ pip install xxhash
        
        Synopsis
        --------
        
        ::
        
            >>> import xxhash
            >>> xxhash.VERSION
            '0.0.1'
            >>> xxhash.XXHASH_VERSION
            'r35'
            >>>
            >>> xxhash.xxh32('a')
            1426945110
            >>> xxhash.xxh32('a') == xxhash.xxh32('a', 0) == xxhash.xxh32('a', seed=0)
            True
            >>>
            >>> xxhash.xxh64('a')
            15154266338359012955L
            >>> xxhash.xxh64('a') == xxhash.xxh64('a', 0) == xxhash.xxh64('a', seed=0)
            True
            >>>
            >>>
            >>> x = xxhash.XXH32(seed=20140805)
            >>> x.update('a')
            >>> x.digest()
            3923507256
            >>> x.update('b')
            >>> x.update('c')
            >>> x.digest()
            4042190321
            >>>
            >>> x = xxhash.XXH64(seed=20140805)
            >>> x.digest()
            2833816799783501320L
            >>> x.update('a')
            >>> x.update('b')
            >>> x.update('c')
            >>> x.digest()
            3288515524728323397L
        
        Copyright and License
        ---------------------
        
        Copyright (c) 2014 Yue Du - https://github.com/ifduyue
        
        Licensed under `BSD 2-Clause License <http://opensource.org/licenses/BSD-2-Clause>`_
        
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: BSD License
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: C
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Software Development :: Libraries :: Python Modules
