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.7"

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

Uploaded CPython 3.10+Windows x86-64

entroly_core-0.19.7-cp310-abi3-manylinux_2_28_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

entroly_core-0.19.7-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-0.19.7-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-0.19.7-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for entroly_core-0.19.7-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 acfe425e0595c5a94411b14e3ddcef27c8a3c2b529223608a713c8123a84297a
MD5 ca8ce33a605bb44f873d5d2db677b101
BLAKE2b-256 508a99f499274521c6acda80cbb06d2a77cc40364b811568a7176e8b7e5cb024

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.19.7-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 69027a081f49b2150891b4b56bef11fa07a0ce16dbc4bbf465970e55d726982b
MD5 8bc759232fd46143481565ea1778dae0
BLAKE2b-256 1569c1a75886aa38aa15e37b292a7721d340fda097a42b14482a02a7cd93ea9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.19.7-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8e73cd14d15f36083e27b421bd2ef371eb7f9d5437e22a6852ee8362f8c29995
MD5 44f496db04b8dd5dcc9ef8aa0d8a5827
BLAKE2b-256 1c935f44168c18dae01d83b0c9765ada2d09fade79d8921a8e186053944666f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.19.7-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 1a471d620b8b2ca8a42430bdfe7b94ad2100ff730635671abdd4fc7daeb0f97a
MD5 78b0824d8e0e75f007aec171cb0e22ad
BLAKE2b-256 67c34dbc03b9495a3822dd0cc718c4d0c52a4108f51f4c6f255a7b09aaa83bfa

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