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

Uploaded CPython 3.10+Windows x86-64

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

File metadata

File hashes

Hashes for entroly_core-1.0.13-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4777d9e7e94eb7eb1abb07c813800ed6eb359a7b8123f5c43b4381ac746746a4
MD5 46bdf75a070148f012272524d59d728e
BLAKE2b-256 46a33d290fe05dce1e7b3a2a7f6a0113f8422984b29d4c1727299bcbbd1cf754

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-1.0.13-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e0c446b8ecb007da44292faeec48c51f42a4e47e626391c240baf69eaa547f44
MD5 c7ac0279663bfb1cd0c51155eff6fa23
BLAKE2b-256 692712f041d40d713766cfcb0bf50f6468aa752ef686eda012df47af69d0bad1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-1.0.13-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 61415df43e82bbc0a134e1fb73bff940d323a8d78becdce3008e65e227f55389
MD5 524bb24c474742d5176e05c7f5ced310
BLAKE2b-256 260d623d58e6c4b8d778313f95f86570918a8b725810ed6e103d4c3eb341ccba

See more details on using hashes here.

File details

Details for the file entroly_core-1.0.13-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.13-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 c15274119bbf81d11bdb365c1220fafebc2a30b940e977a6c5f081479cc5a294
MD5 e5b789d0718c28bfb040ffab6fa93a59
BLAKE2b-256 280302bf5fd13ea9dc6bdf50ad0d5142eb7c233e7f159576db2bfbade5b23bc3

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