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.2.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

entropython-1.2.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (232.7 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ x86-64

entropython-1.2.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (224.1 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ ARM64

entropython-1.2.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (232.4 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

entropython-1.2.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (224.3 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64

entropython-1.2.0-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (232.9 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

entropython-1.2.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (223.8 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARM64

entropython-1.2.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (232.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

entropython-1.2.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (224.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

entropython-1.2.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (232.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

entropython-1.2.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (224.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

entropython-1.2.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (235.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

entropython-1.2.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (226.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

entropython-1.2.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (235.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

entropython-1.2.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (226.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

File details

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

File metadata

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

File hashes

Hashes for entropython-1.2.0.tar.gz
Algorithm Hash digest
SHA256 812de7a980c768a7d6f7c9b01112c5170bb93df25cd9b1dde8795421224eaa11
MD5 bfb7ca9dfcbdb3fb563a097bf781f53c
BLAKE2b-256 2db93b7a23ff638d4cd3b239a5300bd2490696819c3e90483f80f3f55f7f6fb7

See more details on using hashes here.

File details

Details for the file entropython-1.2.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for entropython-1.2.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 b3a97362adf186f2d6278d5bfc21fbf5f0d93a15be852f53a10797c1e790b130
MD5 7ad072d4f13874017359943e5a6d5d10
BLAKE2b-256 acb78d5ab9a1b39464dad192cca901988fe688c9d9f66c644e7f09f08ebefcfb

See more details on using hashes here.

File details

Details for the file entropython-1.2.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for entropython-1.2.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 5a24721fd89bf456b42405ad7a215522f55a1f108c560aa005458497ad3f78ef
MD5 bd07df1a68ab75c45f1d70bb62941005
BLAKE2b-256 2fb3b34145f04db7af575075ab2bc192b11df22f32795f5d1dd41b66c0b18438

See more details on using hashes here.

File details

Details for the file entropython-1.2.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for entropython-1.2.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 4806355cd37d7ea1cae8c5be0af3609bbeb2445f88a9a3fcb7a2d262a3aa3152
MD5 eec3e13b752609078c69e3f6e7cc29ce
BLAKE2b-256 cbfd6f99ba018c4290cedfe0013f2c777cf93fce20e8d6c6489e096e95897d75

See more details on using hashes here.

File details

Details for the file entropython-1.2.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for entropython-1.2.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 eb8a2de458bbf3cd05e9005794eb5b994274067d872d28a99c159a10d51e7703
MD5 baa0e051fd01eb8b16a79735d1f59776
BLAKE2b-256 6fff5a2f57c7d64c756d1f09c3e57d2f30d7f9884a471401d80fd0ff3bd0f1cb

See more details on using hashes here.

File details

Details for the file entropython-1.2.0-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for entropython-1.2.0-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 a7fa4123c6b83c13269d9c1a84120f8f68d0edc8df309e39865cb126b75fe65d
MD5 009e3be70d48665cd7c989ae276da9dc
BLAKE2b-256 695055294d0ed5b4865cf612a23bba09f9893b73ac1cf4964305d85aa3a3dec1

See more details on using hashes here.

File details

Details for the file entropython-1.2.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for entropython-1.2.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 0e9676d1eb28637e654b368dbdbcbc8b9c0ef7de93f0d61713def8cdcced8b4a
MD5 6498cc2fcb680dc5b0a5668c99e2352d
BLAKE2b-256 bd7a0d6152d50c241821187f229c5e1b3be39f7bb6408ec0b506a71ea9729a01

See more details on using hashes here.

File details

Details for the file entropython-1.2.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for entropython-1.2.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 b544a9227533a59cbeb3cda9e31a8e90d67037d59720e48109c005d5bb8d743b
MD5 e2f2decd07852ee18c36fe25e21c5288
BLAKE2b-256 a88a9065d3675e72a0ffb26bcc084a5033969470b4decc154e98d2efc4020403

See more details on using hashes here.

File details

Details for the file entropython-1.2.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for entropython-1.2.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 e7f58028b1575556fba3533586959dd7c948ce7f250e7c94dab9902065ed7d65
MD5 77f9338d8e6f4b822dc100c89fefb007
BLAKE2b-256 34f0edfd227db16a7162ee152131cf10afe1079ddb85fd2612529473bf393768

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entropython-1.2.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 e6f781def7a9d0031d19ecf9aeed5a87dad4cef8c618205f3e46a611aa798987
MD5 b4c8797c2d691974c887f040d0d8eb76
BLAKE2b-256 9de672975ed5ba871d31594d16d54f12d3320a4614aff91c946dc517e5dd4915

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entropython-1.2.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 3daa71882dabbcb97ea600b79d95aa91fa316abe66d22d745d19e6e13a02ad61
MD5 78a449e14a69d9f4049875fa55b9dd49
BLAKE2b-256 5a2453170f15eaba49f18c4a12fd5911d270757017f5eff48770777f224e6afd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entropython-1.2.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 450ac6603ce65c8c03b78c998f566e41e8270db636a5f0b359709fab7f436ce1
MD5 a7df805a801f601062f9a69eb7fd2c16
BLAKE2b-256 0cc9edb40560852bdd5542713441ba882515742afdd3a4b512e95ce0bfa1025e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entropython-1.2.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 f92e0d62d386b82fab086083a225f5b392660737f66e93c922e22fb3bed4aa20
MD5 c86ff4a4511bb023079ec2874c73ee1b
BLAKE2b-256 a3376f7225ae535ad4f3a229c56c970089e48db827872c203c3d163c55c0275b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entropython-1.2.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 770df9f79bbf393cb235ef5d5f1ab1cbf5488292771c065cf30ab9a6d8f5ae10
MD5 76bcae23ef9ae64cfb4d596ace2f882a
BLAKE2b-256 190092e753f14b8fa842511abaf2ed663e028d052539647393a7828dc2952438

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entropython-1.2.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 5063f15ab8b7651136d948fd5f768004f92e54af67c6d728baded7e07aa908ae
MD5 52733454f61328ab70c6fb1cdab97c11
BLAKE2b-256 4945876fe60b4909048912ac89fd035eb5074bc153829a514c88b1d3bab089c4

See more details on using hashes here.

Supported by

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