Skip to main content

Rust core for Entroly — information-theoretic context optimization (knapsack, entropy, dedup, SAST, query analysis)

Project description

entroly-core

Rust core for Entroly — information-theoretic context optimization for AI coding agents.

Provides high-performance PyO3 bindings for:

  • Knapsack optimizer — 0/1 DP context selection within token budget
  • Shannon entropy scorer — boilerplate detection, information density
  • SimHash deduplication — near-duplicate fragment detection
  • Query analysis — TF-IDF vagueness scoring, heuristic refinement
  • SAST scanner — 30+ security rules (XSS, SQL injection, secrets, unsafe memory)
  • LSH index — approximate nearest-neighbor semantic recall
  • PRISM RL optimizer — online feedback-driven fragment weight learning

Install

pip install entroly-core

Prebuilt wheels for Linux, macOS, Windows (Python 3.10–3.13).

Usage

Usually used via the higher-level entroly package:

pip install entroly
entroly  # starts the MCP server

Or directly:

from entroly_core import ContextFragment, py_knapsack_optimize, py_shannon_entropy

License

Apache-2.0

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

entroly_core-0.19.1-cp314-cp314-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

entroly_core-0.19.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

entroly_core-0.19.1-cp312-cp312-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.12Windows x86-64

entroly_core-0.19.1-cp312-cp312-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

entroly_core-0.19.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

entroly_core-0.19.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.8 MB view details)

Uploaded CPython 3.12macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file entroly_core-0.19.1-cp314-cp314-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for entroly_core-0.19.1-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7af9e51f9bb905920cfae294a9e318bbd3735ee29da14aafa9863e0ba74fd2b9
MD5 04d0f574d0dcb2e9f3e73cd48a89cd6b
BLAKE2b-256 ebaf73bc5dd0e8dee45ec3d05c1af549ed76a862520e3da790be91eb695d30e7

See more details on using hashes here.

File details

Details for the file entroly_core-0.19.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for entroly_core-0.19.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d62e351904e2ff8e45742c8bdcd5d76eeb10fa3caf10035afdbb8fce0cc821de
MD5 b1df12fd9350827f652c078b11825d38
BLAKE2b-256 f26c35c3b74bd6dd70b022e4387f655493738e258c7cfc19f1e2c8d5dcf6dd8a

See more details on using hashes here.

File details

Details for the file entroly_core-0.19.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for entroly_core-0.19.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4ef606728cb896ac465136bcddf53274aa1a6b46ab598f05a9e9bc11974bbca3
MD5 583fd953588196c9c5b1d7ef7b561380
BLAKE2b-256 3a74ab6fa619e1d464ba52d4387d9c78241dec3a7ca13d7a72cea1dbd8f8f1ca

See more details on using hashes here.

File details

Details for the file entroly_core-0.19.1-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for entroly_core-0.19.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e38e0bf944305a34c729411ddb8a3b9742360263790ce1523e6a1e32ade70751
MD5 2d54af2b7db3f20073d6f4fe445917fc
BLAKE2b-256 3280063ed598248f2740917ce0aa5965b8e10f826c7a2c2eb4a800ad82c341c9

See more details on using hashes here.

File details

Details for the file entroly_core-0.19.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for entroly_core-0.19.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 572d261e2b233915043576c0ba2eac4866ca689ee5b905950c83bdf215d9cb28
MD5 dc82aabdb85669a105e07ac7af933a9f
BLAKE2b-256 8ddfc1a14d69b31b98e5ed8cb5f932be753611b9f469ef0c299ad6724428bcab

See more details on using hashes here.

File details

Details for the file entroly_core-0.19.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for entroly_core-0.19.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 43286e6a24eefc0cdfb5f09539dddfccd5454dca4fa21ed6dcdca76c117dac0d
MD5 440eb1d27c7acf061017f45a7f85812e
BLAKE2b-256 5ad302e20652ddf17e9e2164b8b6e11a5eea486bc59dd36eef68fbf987e7d5d4

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