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

Uploaded CPython 3.10+Windows x86-64

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

File metadata

File hashes

Hashes for entroly_core-1.0.14-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8e0e2c4321051dc232e2eded0dfa22151f22fe5f76a59281e20e7f10c1afd887
MD5 c99711f5ed26edced254d8babbc4f28a
BLAKE2b-256 39536c6abcb4b09a5a61d642332ee02677137b3d2c02a2db812699332773484d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-1.0.14-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 31f9397daaa205a1687245927d7f1f838a20e64ebbe7b31e19c25d34837e23fc
MD5 dc2f971789f1db494a915a31140a9c92
BLAKE2b-256 6d5f80e20e3d2ac0afb35b5ba07e29e0f3dfd252ff487eab9434f210a444b880

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-1.0.14-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c3aa1bc2cca55b4ee23b5f92f7360b158d8891ccd716e6bb62828afefeb7a877
MD5 521a17386370808ad864802ace7c1dfa
BLAKE2b-256 37044bf7466c48b048163ef1f01170b829355082b719e7fb45ea8afb19a191dd

See more details on using hashes here.

File details

Details for the file entroly_core-1.0.14-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.14-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 85a9aa47b7c34d2bb891a34a07baa5389ff76fb7753e8376191fc7611ea964ae
MD5 000e14618a4e3e890079c16c7204eebd
BLAKE2b-256 bf6dc9002cc3d68ba26283c2d4f1fdf1b6c404672579d86849c645bb51fadef4

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