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.17.0-cp314-cp314-manylinux_2_28_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

entroly_core-0.17.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

entroly_core-0.17.0-cp312-cp312-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

entroly_core-0.17.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

entroly_core-0.17.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.7 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.17.0-cp314-cp314-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for entroly_core-0.17.0-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 31c1934aa2ecb6007e41a8c666e41a286ee4a76e730fe22807de573d0f27d467
MD5 00afd73436b18e52348cc19924869499
BLAKE2b-256 ed0fff913039fb60c08dfa948ebbd996bd184814603ce36a4388ab4bbe243007

See more details on using hashes here.

File details

Details for the file entroly_core-0.17.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for entroly_core-0.17.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ce363236aa61920359c0df2c1a808456bdb53bab4d65c37b910fa720d317a473
MD5 f4182c58bb2a1dc5f6e000da2a559235
BLAKE2b-256 4fcbe6fd7ebd448d53dc10149e0cb4db600a76ab7404ef40f8f3a451f9df9302

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.17.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4e98386ff48f7f86bab87de702080fbe578e58820304d3dc9531955db3dcd9d8
MD5 110cf3764d6728e91821a64775f42364
BLAKE2b-256 019739a024eba5e939dd22d448488c98d608aaefe43350f7087f8d1ce4ec4fe7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.17.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8dd73d9334fb3bb1e6aa5782498a9fd7da68f56126b7430871e4e398a2256da6
MD5 d1d0458596ea37609e48cf982c1138f4
BLAKE2b-256 248b49e5e24e0ffda2318cb8129067167e01b34ed075f23031c16d82f84b6410

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.17.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 64c7bb203bac29ed765ecb5d24df716fcbb51614b3826aecbb69fa9427a38fc9
MD5 4446d43bd0485c48cfe8aa0b7cfcc823
BLAKE2b-256 cdab5ff6db6363c5d4948b7ad4eca4f203fb70d254fec215627f3cbf4164c639

See more details on using hashes here.

File details

Details for the file entroly_core-0.17.0-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.17.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 0e0bf8e80dff9d8e4428c22d665fa787f002433f10ee70e634e009620e739c99
MD5 45b044175cb69ff3b59fde215b003255
BLAKE2b-256 bd4c2f18f9567d135386f4cbe75046411d1e07755aa8494ae0da425c199e22a2

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