Skip to main content

Stable non-cryptographic and cryptographic hashing functions for Polars

Project description

Hellooo :)

This plugin is a work in progress. The main goal of this plugin is to provide a stable hashing functionality across different polars versions.

Main drive behind this plugin is, to generate surrogate table keys that can be determinstic across multiple polars versions.

Examples

Cryptographic Hashers

import polars
import polars_hash as plh

df = pl.DataFrame({
    "foo":["hello_world"]
})

result = df.select(plh.col('foo').chash.sha256())

print(result)

┌──────────────────────────────────────────────────────────────────┐
 foo                                                              
 ---                                                              
 str                                                              
╞══════════════════════════════════════════════════════════════════╡
 35072c1ae546350e0bfa7ab11d49dc6f129e72ccd57ec7eb671225bbd197c8f1 
└──────────────────────────────────────────────────────────────────┘

Non-cryptographic Hashers

df = pl.DataFrame({
    "foo":["hello_world"]
})

result = df.select(plh.col('foo').nchash.wyhash())
print(result)
┌──────────────────────┐
 foo                  
 ---                  
 str                  
╞══════════════════════╡
 16737367591072095403 
└──────────────────────┘

Create hash from multiple columns

df = pl.DataFrame({
    "foo":["hello_world"],
    "bar": ["today"]
})

result = df.select(plh.concat_str('foo','bar').chash.sha256())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polars_hash-0.1.2.tar.gz (14.7 kB view hashes)

Uploaded Source

Built Distributions

polars_hash-0.1.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.6 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

polars_hash-0.1.2-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl (6.9 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ s390x

polars_hash-0.1.2-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (9.5 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ppc64le

polars_hash-0.1.2-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (6.7 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686

polars_hash-0.1.2-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (6.0 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARMv7l

polars_hash-0.1.2-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.0 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

polars_hash-0.1.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.6 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

polars_hash-0.1.2-pp39-pypy39_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl (6.9 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ s390x

polars_hash-0.1.2-pp39-pypy39_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (9.5 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ppc64le

polars_hash-0.1.2-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (6.7 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686

polars_hash-0.1.2-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (6.0 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARMv7l

polars_hash-0.1.2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.0 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

polars_hash-0.1.2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.6 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

polars_hash-0.1.2-pp38-pypy38_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl (6.9 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ s390x

polars_hash-0.1.2-pp38-pypy38_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (9.5 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ppc64le

polars_hash-0.1.2-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (6.7 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686

polars_hash-0.1.2-pp38-pypy38_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (6.0 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARMv7l

polars_hash-0.1.2-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.0 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

polars_hash-0.1.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl (6.9 MB view hashes)

Uploaded CPython 3.13 manylinux: glibc 2.17+ s390x

polars_hash-0.1.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (9.5 MB view hashes)

Uploaded CPython 3.13 manylinux: glibc 2.17+ ppc64le

polars_hash-0.1.2-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (6.0 MB view hashes)

Uploaded CPython 3.13 manylinux: glibc 2.17+ ARMv7l

polars_hash-0.1.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.0 MB view hashes)

Uploaded CPython 3.13 manylinux: glibc 2.17+ ARM64

polars_hash-0.1.2-cp312-none-win_amd64.whl (2.7 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

polars_hash-0.1.2-cp312-none-win32.whl (2.3 MB view hashes)

Uploaded CPython 3.12 Windows x86

polars_hash-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.6 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

polars_hash-0.1.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl (6.9 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ s390x

polars_hash-0.1.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (9.5 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ppc64le

polars_hash-0.1.2-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl (6.7 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686

polars_hash-0.1.2-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (6.0 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARMv7l

polars_hash-0.1.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.0 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

polars_hash-0.1.2-cp312-cp312-macosx_11_0_arm64.whl (2.7 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

polars_hash-0.1.2-cp312-cp312-macosx_10_7_x86_64.whl (3.0 MB view hashes)

Uploaded CPython 3.12 macOS 10.7+ x86-64

polars_hash-0.1.2-cp311-none-win_amd64.whl (2.7 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

polars_hash-0.1.2-cp311-none-win32.whl (2.3 MB view hashes)

Uploaded CPython 3.11 Windows x86

polars_hash-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.6 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

polars_hash-0.1.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl (6.9 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ s390x

polars_hash-0.1.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (9.5 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ppc64le

polars_hash-0.1.2-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (6.7 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

polars_hash-0.1.2-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (6.0 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARMv7l

polars_hash-0.1.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.0 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

polars_hash-0.1.2-cp311-cp311-macosx_11_0_arm64.whl (2.7 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

polars_hash-0.1.2-cp311-cp311-macosx_10_7_x86_64.whl (3.0 MB view hashes)

Uploaded CPython 3.11 macOS 10.7+ x86-64

polars_hash-0.1.2-cp310-none-win_amd64.whl (2.7 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

polars_hash-0.1.2-cp310-none-win32.whl (2.3 MB view hashes)

Uploaded CPython 3.10 Windows x86

polars_hash-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.6 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

polars_hash-0.1.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl (6.9 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ s390x

polars_hash-0.1.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (9.5 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ppc64le

polars_hash-0.1.2-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (6.7 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

polars_hash-0.1.2-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (6.0 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARMv7l

polars_hash-0.1.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.0 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

polars_hash-0.1.2-cp310-cp310-macosx_11_0_arm64.whl (2.7 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

polars_hash-0.1.2-cp310-cp310-macosx_10_7_x86_64.whl (3.0 MB view hashes)

Uploaded CPython 3.10 macOS 10.7+ x86-64

polars_hash-0.1.2-cp39-none-win_amd64.whl (2.7 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

polars_hash-0.1.2-cp39-none-win32.whl (2.3 MB view hashes)

Uploaded CPython 3.9 Windows x86

polars_hash-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.6 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

polars_hash-0.1.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl (6.9 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ s390x

polars_hash-0.1.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (9.5 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ppc64le

polars_hash-0.1.2-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (6.7 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686

polars_hash-0.1.2-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (6.0 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARMv7l

polars_hash-0.1.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.0 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

polars_hash-0.1.2-cp38-none-win_amd64.whl (2.7 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

polars_hash-0.1.2-cp38-none-win32.whl (2.3 MB view hashes)

Uploaded CPython 3.8 Windows x86

polars_hash-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.6 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

polars_hash-0.1.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl (6.9 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ s390x

polars_hash-0.1.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (9.5 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ppc64le

polars_hash-0.1.2-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl (6.7 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686

polars_hash-0.1.2-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (6.0 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARMv7l

polars_hash-0.1.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.0 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page