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

Uploaded CPython 3.10+Windows x86-64

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

File metadata

File hashes

Hashes for entroly_core-1.0.11-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 fdf3df765cfceb764fbeb87b94098894f41009374b3fb564db10ffb1be28cdd0
MD5 4862edd7bff557e765b1700ff79b9b07
BLAKE2b-256 656a995244b6a378d220e7ce5d4914ba23cbc322a01b0e97245a555157c3b332

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-1.0.11-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 430230df99339f536f3e0e130da0daf8804b6e05fa6ef85b36bd4c007a0aa5cd
MD5 7d7e5a7446cb146d2aa784a6fde4a02e
BLAKE2b-256 dadbed58bd271d63dbda9f65b124d9ef71a6f7a379b0c9797c2bd080a7550157

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-1.0.11-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 236b06267980ddc683abd557fb46208921524311f03a10ec04a46a764173cb0e
MD5 31e83f44e6d2f479b22ec4fc059472b3
BLAKE2b-256 627a80cbcddb96d15514f13bc493957ec286ac7069dacc0019fd8ae3c85a4e9e

See more details on using hashes here.

File details

Details for the file entroly_core-1.0.11-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.11-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 3c0994d1cce8ceedeabe5e99849713eb8e47ceb0ceefc74f4c9a5d74a7bf158a
MD5 a459bf7e2d81dfea9ff8a42972fdba6f
BLAKE2b-256 938768bc0c5d27b8e9bab365f7ebd430166ba198d3d84b22e2536e33eb93856f

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