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

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

entroly_core-0.18.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.18.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.18.0-cp314-cp314-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for entroly_core-0.18.0-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b7bf983ec649d1c393f58cc0c88dd898c0dde0d4b1e75698d1b5cad14458c386
MD5 3a8545348f4128b6c818c52f6bd7116f
BLAKE2b-256 a4b4ffce442890a8988d1ad5f0f3ca7fdf5ab3896ffad9e4a912c6f56f901d89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.18.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f034cc81809bab7a8433ea21feb093bc2a9aa5d0aa6db8ff7ca0a0086c88e398
MD5 d6edecfc4bdf8cfd5b336892b14267f6
BLAKE2b-256 6ace01f2a1ce5556f77307d2f26fe9a9cf2954b825c6a03e74dc4b5fa6075ad0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.18.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9c1d038054af9037a12e24fb251e771c884e620fc4f15ebd4f37d74bfdd2ee61
MD5 253f3784304e00d9ed1936b2777219d8
BLAKE2b-256 e4e6e7030e100e0a7bd7dde1438fde25e057272b2633b266a2debb5de79df9f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.18.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b0897cd7e834b4f0ffd7f8655601f404dda39682a22f244352df048b7220ae74
MD5 9d9f2ab4b7c3bbc3f19d756face16bf1
BLAKE2b-256 a81bfdd03a0449fcac916f6e01e447d8ea9be494779ce526a5082ab7bda87143

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.18.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2520c44a477154e3cecc833c70fb7fc341b35fcc787a67e65a2c3fa4459be37e
MD5 531552075be425af97539d379f5419a3
BLAKE2b-256 a0d8934cbef0924e0510082d336ec398d55b92301faf9bceabfb4b07fce87703

See more details on using hashes here.

File details

Details for the file entroly_core-0.18.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.18.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 f00f08ce00c7a769d7601e164f1dabf74a13381f4aa98cafe523405ee3a04564
MD5 8e0ada99656088e6a89e0b96b8245743
BLAKE2b-256 a7c421d990558defa7baa675f5b278f3f7785dd62d63f2a586b48bf1a5bea191

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