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, the information-theoretic context optimization engine 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 - security rules for common vulnerability classes
  • LSH index - approximate nearest-neighbor semantic recall
  • PRISM RL optimizer - online feedback-driven fragment weight learning

Install

python -m pip install --upgrade pip
python -m pip install --no-cache-dir -U "entroly-core>=0.19.13"

Prebuilt abi3 wheels are published for Linux, macOS, and Windows. One wheel per platform covers Python 3.10+ including Python 3.14. If pip tries to compile an old source distribution such as 0.2.0, upgrade pip and retry with --no-cache-dir; the intended path is the prebuilt wheel, not a local PyO3 build.

Usage

Usually used via the higher-level entroly package:

python -m 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-1.0.6-cp310-abi3-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.10+Windows x86-64

entroly_core-1.0.6-cp310-abi3-manylinux_2_28_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

entroly_core-1.0.6-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

entroly_core-1.0.6-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (4.2 MB view details)

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

File details

Details for the file entroly_core-1.0.6-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for entroly_core-1.0.6-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a315f14fb25ab287942872c422763924ed45493c4699e7f06df63684fb021af9
MD5 184e02c079fb3d4ae5767746e469d8b2
BLAKE2b-256 7353acfa55c379d3ed607d09828460778dc797aa500462c5765395725f93b588

See more details on using hashes here.

File details

Details for the file entroly_core-1.0.6-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for entroly_core-1.0.6-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d70efa83a0d69d134fadb9172457597828f9f148e5b336e1688aea460997c349
MD5 33c04f7ec69114fcc6c5213760d1bcdf
BLAKE2b-256 b26905bb724459bac4075dba0f3946ec89df066722c4ef16ea64849e9ffc338b

See more details on using hashes here.

File details

Details for the file entroly_core-1.0.6-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for entroly_core-1.0.6-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 50e81594dd28d2f9bf96160f354e06045fcaacd22b6fc74cb087ac2690bfecbc
MD5 27a0fae1ef50c5830c27211f4ef32597
BLAKE2b-256 45203b5478ed7137b516cb35e4a921f53f4f43c9cd4c43b063cebfc68aefd5c1

See more details on using hashes here.

File details

Details for the file entroly_core-1.0.6-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for entroly_core-1.0.6-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 b9cb2f44122312126588234b5d8986a3cb78e92cbaa455fb96fbecb2cf7cfa8e
MD5 2da8a0e8c3a7eba72a5acc674e800f45
BLAKE2b-256 664720d39646f0238d48a9864421d308207e0082e6bc1fd40571ba842f2151e5

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