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

MIT

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.3.2-cp312-cp312-win_amd64.whl (598.0 kB view details)

Uploaded CPython 3.12Windows x86-64

entroly_core-0.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (791.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

Details for the file entroly_core-0.3.2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for entroly_core-0.3.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 561f2066a752a220018fdc2500aba84cf1279c7c6390decc913506d111f4cd89
MD5 a59b4e35b6796e4c4d38bdb7f40d1390
BLAKE2b-256 71ba4765800c4c18e7756eb1e99f6410ec0d6ab526b52b24badc989ef579e0f0

See more details on using hashes here.

File details

Details for the file entroly_core-0.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for entroly_core-0.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9f5488b95a9e96e8c86135658aada310b7f86cff27e1448c808d741aaf81cea3
MD5 669f19e9b8672efa4ccb33f35df8b8ef
BLAKE2b-256 f8e9ae74098b21ba0151d09de73b7f837d801d8d03b2d42ce1c30ae2d342edcf

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