Skip to main content

A Python module for efficient calculation of Shannon byte entropy based on Rust

Project description

entropython

A Python module for efficient calculation of Shannon byte entropy based on Rust.

Installation

To install the version from pypi.org run

pip install entropython

To install the latest version directly from GitHub run

pip git+https://github.com/fkie-cad/entropython

(you need to have rust installed) or check out the repository and run

pip install .

Usage

from entropython import shannon_entropy, metric_entropy

byte_str = (
    b'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod ' 
    b'tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.'
)
print(shannon_entropy(byte_str))
print(metric_entropy(byte_str))

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

entropython-1.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distributions

entropython-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (217.2 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

entropython-1.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (224.8 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

entropython-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (217.5 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

entropython-1.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (225.2 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

entropython-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (217.8 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

entropython-1.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (225.4 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

entropython-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (218.0 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

entropython-1.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (225.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

entropython-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (217.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

entropython-1.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (225.2 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

File details

Details for the file entropython-1.1.0.tar.gz.

File metadata

  • Download URL: entropython-1.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for entropython-1.1.0.tar.gz
Algorithm Hash digest
SHA256 2a9486e4cc4577e871cc17097644d69cc35b68becb5d054163f6aaaf8b82aec5
MD5 56a96b5028d8ef87cc635635cb158ea1
BLAKE2b-256 1cd59d4a53cef2e5189d98ca11aa3402ae68a64f645c00f737830d363569f68c

See more details on using hashes here.

File details

Details for the file entropython-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for entropython-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d1d2d5c1b98a2e765e8ea19ae51c302ad19efed2e580b7cacacdc9260818958b
MD5 f190975b6dc120e3bc38091963ee958f
BLAKE2b-256 01e4deebe73d22f8e2b3c69de662a8a483e1340ebe68ed553eb3a009e09994c4

See more details on using hashes here.

File details

Details for the file entropython-1.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for entropython-1.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 778ff97c94ead9d75ac19527020a66a6de74a13820174ef12c9f34dd317ff689
MD5 ec74e7d38b5642736edfe662e8a52b39
BLAKE2b-256 aabb7dc9220c4a734b6f4620827caea09ab166a7665b2906be3a4d7636f73b7a

See more details on using hashes here.

File details

Details for the file entropython-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for entropython-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4b27a7dc67ab276b69cf72ec18d19dc5c7050f2aedd344c7b64e2d8ef94b4c58
MD5 c66ab8d01468ff520bfdefb4e86129d1
BLAKE2b-256 b6893e63e264533aa0fb01072b53591cce7d9729b5d5c6b910021641ce9c921a

See more details on using hashes here.

File details

Details for the file entropython-1.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for entropython-1.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 80ff583d525508bd8dfff53764808779245ec7fe5cce0177d3a287b29f33480f
MD5 9e175554e7a188b378afe35d976b873a
BLAKE2b-256 e16a32dbe254081efed4ea0d2abbd31bb243e759f2ac06fa062dc62c0d256439

See more details on using hashes here.

File details

Details for the file entropython-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for entropython-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 339277f63b40e2e2907ef831eec5543ebaa8d3143cee648c1a5286e43f7c2025
MD5 6bacaaea483b4f56820b06a0212d575a
BLAKE2b-256 b77393ce8f1ad461b05865f2049314d51375bb3026b94bd3f578c6b5c87c35f5

See more details on using hashes here.

File details

Details for the file entropython-1.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for entropython-1.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 91f5dce4c2130f408ebf96a08654679148f4faaa7d84ad68a3532c531a03ff97
MD5 75d4416996a2640e94cad37013a22d82
BLAKE2b-256 a3891ff4274d4542dabd511a7bd04fac4432ae911366bb26586b7224471cb6d5

See more details on using hashes here.

File details

Details for the file entropython-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for entropython-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c8074ea542281e8f8fb89cc9a9112339d794840c489e7982939998e9fcd2d4f0
MD5 183075792f3faa65c0886d5a873c477d
BLAKE2b-256 e862dd7da6af5974457f527eaa532a95b8950110b8a9a3e195b9e99c7e317097

See more details on using hashes here.

File details

Details for the file entropython-1.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for entropython-1.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1be4afa544302fe351b55201f1a28141e1a28935b8f38702f8eac34c604d8a89
MD5 559c96cf7e78a52c7c200a4c01ec2407
BLAKE2b-256 38e95b61e04f9addc01a81ea3ff0ca4b49819dac26a04da31c7f6fc020de9804

See more details on using hashes here.

File details

Details for the file entropython-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for entropython-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 650b3f4be377331daaab9cd9e75a894b61d642f2f68038ae4a50e6cec3d37287
MD5 dcd6d3e972c2ce2883e105db502af1e0
BLAKE2b-256 60dd5b57d6a4b4333cb60f68b754b01d5cf3a753d7c569e41d9f05a9420f22d8

See more details on using hashes here.

File details

Details for the file entropython-1.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for entropython-1.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fedba291bdb715bd60d2cf721940e937061447d2922d48dab8eb9f06ff354f32
MD5 1c29ea91af10a87f9e9d311bc66fda54
BLAKE2b-256 e3291a1197b487d0a1196c501344bf5b8846166fc9704288df838e2f87101420

See more details on using hashes here.

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