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.8.1-cp312-cp312-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.12Windows x86-64

entroly_core-0.8.1-cp312-cp312-manylinux_2_28_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

entroly_core-0.8.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

entroly_core-0.8.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.6 MB view details)

Uploaded CPython 3.12macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for entroly_core-0.8.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 37fe5c61eb97870c9ad519c54afe4b360c5fe60544aa1915285b69cc406d197d
MD5 e2515736e31eb9a32c9c934473d67d92
BLAKE2b-256 5f433ad7cb902d42fb48512314d9cc43ec92c6f7e1810004e4e192927d79ebc7

See more details on using hashes here.

File details

Details for the file entroly_core-0.8.1-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for entroly_core-0.8.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5e3c8f626aaf60a7eb85bd55183c0b7e20cbc3b90cea1761dcaae6dc72dd1252
MD5 b1a83d1a4a525b07ae1509a6c53eec36
BLAKE2b-256 dc51d470901caba20b8db78e6ee7d6e6076eb929d29b7a010b4d1ca7f1796164

See more details on using hashes here.

File details

Details for the file entroly_core-0.8.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for entroly_core-0.8.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 10a1468181f42697928a7417a41e77c42103851de4309ac2cbd8c2a28f4f08e4
MD5 e5e8fac040207a4b059e5f09afc5114c
BLAKE2b-256 cbfe5b019313bfafe15d6b5f600178e56df710297fb6638b5567da085c1b63d9

See more details on using hashes here.

File details

Details for the file entroly_core-0.8.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for entroly_core-0.8.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 120bc57d2dc0660a8528094681588c8ef545a2b5d7e7c65ddb58c294ab935b1d
MD5 2dde0c179f94b9db3d1ac82d9303236f
BLAKE2b-256 8760f2be65aaf0749e0f11167ea88c1c9d48aecc524b03074895b22b638dd05c

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