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.7.0-cp312-cp312-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.12Windows x86-64

entroly_core-0.7.0-cp312-cp312-manylinux_2_28_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

entroly_core-0.7.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

entroly_core-0.7.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.6 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.7.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for entroly_core-0.7.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cb9a2001e958118f78e47f2aea6c48c57cec5ce30129dd6193824e5477ef63f8
MD5 2b1d13bd127e0b05f8fb3d28befc9c7a
BLAKE2b-256 568e19798c12c9150008619e043a7c53ad362e1e8faffab26f523f4bae45931e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.7.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6148c7fd2279a5023c974013a4b517c01a4377ac527d8ff8f5dfda9b17ad7abd
MD5 d2c37ed1b701bd0f8df9dd1df7e30a19
BLAKE2b-256 9cbfa126d2cd0a48792f902eb16a53b3ae8abb9554a811d95cdf2901492b19d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.7.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a7c91926968524afc72736066a604a08bffe5cd2c3b9c52662de33f52969401f
MD5 584b8c1c402363b0022568c31a1b23aa
BLAKE2b-256 eeb1c508cd9696f12974ef94f184fbd070061532619dca15f6e010021b664151

See more details on using hashes here.

File details

Details for the file entroly_core-0.7.0-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.7.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 e9055bbe314504c2945680c98846e6ba3c4a98f57975188740cbad312150b4bd
MD5 a627cfae243e39a68a9e3817068f591f
BLAKE2b-256 419ff9373b4543f61738273365098d2304d01daa33ed504a73897a16c5ad7c4c

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