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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file entroly_core-0.3.2-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: entroly_core-0.3.2-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 598.0 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
561f2066a752a220018fdc2500aba84cf1279c7c6390decc913506d111f4cd89
|
|
| MD5 |
a59b4e35b6796e4c4d38bdb7f40d1390
|
|
| BLAKE2b-256 |
71ba4765800c4c18e7756eb1e99f6410ec0d6ab526b52b24badc989ef579e0f0
|
File details
Details for the file entroly_core-0.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: entroly_core-0.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 791.3 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f5488b95a9e96e8c86135658aada310b7f86cff27e1448c808d741aaf81cea3
|
|
| MD5 |
669f19e9b8672efa4ccb33f35df8b8ef
|
|
| BLAKE2b-256 |
f8e9ae74098b21ba0151d09de73b7f837d801d8d03b2d42ce1c30ae2d342edcf
|