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

Uploaded CPython 3.12Windows x86-64

entroly_core-0.3.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (791.7 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

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

File metadata

File hashes

Hashes for entroly_core-0.3.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8db34fef676e607df9e8d8e64853da6b8072c4ce321dd53df13082f67f73b96e
MD5 6579d571cf381de0126758f433d33f4f
BLAKE2b-256 388af31fcbba44cd8a8da17d31d628bd78fc4a95f14bda28f29281c6710fca8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.3.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dddef6a6573ea803ca4cde3107bd486830d47b2cc01dcccacd33812d55f9c82d
MD5 a2783a5ceb36b17d8a44957def34c8a7
BLAKE2b-256 47f39c3732b680577fb53a4f8432ee5f01661be006ee084d2d041f71c87cd648

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