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

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

entroly_core-0.19.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.19.0-cp312-cp312-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.12Windows x86-64

entroly_core-0.19.0-cp312-cp312-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

entroly_core-0.19.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.19.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.8 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.19.0-cp314-cp314-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for entroly_core-0.19.0-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9fc1d8ca036d89b0147ad2d66d99685cd39c1582228055c599f0e6fab41af084
MD5 2acdb44d67d7955bb2bb0ec077b19682
BLAKE2b-256 d95c7e101e4f08e00311a03f8c7eea763867426dc6825a16cad6271af514e5bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.19.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 96f4057fe2aa5258bead910b9dcec8642cab590935148c07cb82cf6f3f027c6c
MD5 edad6376e1a45aa284ca2e07f25184f7
BLAKE2b-256 86bfa3f309c991e2525e0a5861740ebd7da463a861ebe464c9876128f320e9b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.19.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 47ca75e96242b263e7defb3a875716f27c05c804fcaa1dc319884863e416d527
MD5 2077d35f9d77ac6211b1c53f14bfc0a3
BLAKE2b-256 3c2486fdaff16beffff486a39318a8678a017d4be33c343b835fb708c57172e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.19.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 19a7b2a971d760e89c4e2993e78136859ff4b8ab1ecc73c144dc12579fc53e96
MD5 602abc256d73c5539474fd0e756d1de0
BLAKE2b-256 41c6c59f9397e6a58a985b6727d79f0862a9118c854043c0372e8517af01b9fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.19.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c263f97e944491476aa3afda5b2fd8a2971b71b44ae4ee7152c6568071a3eb0d
MD5 afb753d939d0f2199e3568436f6c1260
BLAKE2b-256 4694767ff7ec7b9a4419a3b120abd771b05c9d256c6244e970982efd9e7cde74

See more details on using hashes here.

File details

Details for the file entroly_core-0.19.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.19.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 2c95077e49e51f2bcde9e90bbc2d4295dace95ceaa6ed193e0091c928f7033a0
MD5 468c2a62c4d1a6d11dfb2041889909c9
BLAKE2b-256 ebe5267026c9c5cde4cef6326f74c2a0fb2c5185440ba370b58bac94178f203e

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