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 — information-theoretic context optimization 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 — 30+ security rules (XSS, SQL injection, secrets, unsafe memory)
  • LSH index — approximate nearest-neighbor semantic recall
  • PRISM RL optimizer — online feedback-driven fragment weight learning

Install

pip install entroly-core

Prebuilt wheels for Linux, macOS, Windows (Python 3.10–3.13).

Usage

Usually used via the higher-level entroly package:

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

Uploaded CPython 3.10+Windows x86-64

entroly_core-0.19.5-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.5-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.5-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (4.1 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.5-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for entroly_core-0.19.5-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 90a57213a1c03838c3bbe37047fbf62f82cc7cf7deb9e965d3481d163a9e2693
MD5 b3ffefd41ca8b5de0c76b2f68b4c16a7
BLAKE2b-256 ae83b4ed323cebfd0432b60404d7efa83e4d83a544b90f169d83269c251f1a48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.19.5-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1ae738081536527a82dedb31171d9780de7da3b652fd2b7fe4364022bbe8238b
MD5 08c6af0ea4634d975d411a3cb431d4a4
BLAKE2b-256 862c2a505efeda908d70173bff98443a41baaf06b407af3cd198820cafe697ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.19.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e94201e037d59bfd6b6d42725c95a749a5d94eaacf7f48ad8c5f293d893446e0
MD5 1e9c53e6258e680b1c6a4e6de87395fb
BLAKE2b-256 9b4e81578918ea856d245ff6267d0692d44acede9e67bab4fe4dacfcc7a3685f

See more details on using hashes here.

File details

Details for the file entroly_core-0.19.5-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.5-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 e867f86894b178802a0272abc59987de63044347ff8f2c0494e5b7bce76eff72
MD5 c841c7bad22249d6d6dd9c698c626eb4
BLAKE2b-256 ae1d3738b1d9192292a3f678058a2d4120653058eb944fce928cbe53f2ef7374

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