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

MIT

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.6.2-cp312-cp312-win_amd64.whl (849.1 kB view details)

Uploaded CPython 3.12Windows x86-64

entroly_core-0.6.2-cp312-cp312-manylinux_2_28_aarch64.whl (996.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

entroly_core-0.6.2-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (1.9 MB view details)

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

entroly_core-0.6.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

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

File metadata

File hashes

Hashes for entroly_core-0.6.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4379302a2c8503a5b1dbbcc318890cec2f41adcc4d3c7cf59644b8773a779a0c
MD5 390e5fde1317d9852253999f440dea03
BLAKE2b-256 8e8b972c5595a8d5b2e7940e3bfa0922efc385341c4326c908917537be107f04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.6.2-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1e48a19b4cd05269aa1fd8a38d19411c7a802889a2f490e941b9ff1440da9503
MD5 484be5c4c018d4e2d91921bb67349be2
BLAKE2b-256 0994c3eeeed148ecc143e80045254e6600f23cb38d63ae11a67ec7912deb9f8f

See more details on using hashes here.

File details

Details for the file entroly_core-0.6.2-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.6.2-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 40b844e314963c4007b48227c42aefa72404f0678ac5ed06d05bbd3e612e2440
MD5 12a529616e82d803d1e49fd5812c67c3
BLAKE2b-256 99cbf65353c2fa97e88c509dc7f15d281b8d84b2a87de771570ee3341e6eaa44

See more details on using hashes here.

File details

Details for the file entroly_core-0.6.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for entroly_core-0.6.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 348e559e45acef7c9c63d7271a92f7c0da6d110fe30407cb727f5b7fd99d13f3
MD5 0c3fba502989875436866ab2d1d2c81e
BLAKE2b-256 32d1f9f279a917a90cbeb9ef930f4d9f1af367dbff5e22ac6fe9dec820b8977f

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