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

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

Uploaded CPython 3.10+Windows x86-64

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

File metadata

File hashes

Hashes for entroly_core-0.19.12-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 46a0af44b4359c11e2667d7029aee9518882cd4c5013002f3081799038b3906e
MD5 1099d6c6e01e1fad83ab71ed007eabe5
BLAKE2b-256 dc8d9e9914a827f7aebb12af92dc5153aac929adf86c15ff35ea29ce6f33169c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.19.12-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 289a77301cd17cb3d7e15db15ad8eabeedd5d3cf031ab75cd23f9bb13c1baff6
MD5 bd2c324d8e7b0db0ddf6df8c46f2a2b2
BLAKE2b-256 a6380f1c7d746a5d524af10fc514aad187faf812948515d5bb73e0195420d18b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.19.12-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5dfe8425465e0ea229b87e7cfb5d4b6c609bb5fd1f0f7523e9b9718700a1ab5d
MD5 6221a136dcab0464c413f051591c8321
BLAKE2b-256 6ade5030c602ea6f270364689d864ee39934b237fb03f726f5fa47aac237eb3f

See more details on using hashes here.

File details

Details for the file entroly_core-0.19.12-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.12-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 b2e10891c35bb4f8454516d55a55fbc4449b55d50b03ee62eb3575f956db1f1c
MD5 67b3ed40572ea3b4649192093abb9f86
BLAKE2b-256 d3c92300ed95c92b5f7eeff800be369c544db783e518b0eceb0de2b210c1f390

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