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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

entroly_core-0.9.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.9.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.9.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for entroly_core-0.9.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5b7898865dfe837a6aa42802e8f33f285a542d19c49d51e1d5e2af4ba5aae646
MD5 849a5eadfd0f14abad20cf6e7d8ae49b
BLAKE2b-256 c503fc793637a93171fc570292cc3b231e82cf018abe51148dd24a2b3c35b11e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.9.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3168a5d0f26e7c224f27e46bcf2859cecfcc92dd4db73bf5bec5f2dbe1cd96ee
MD5 83e90d12222efce6f4ffc2caf42380c6
BLAKE2b-256 20797fdd5ee9cd885baa3bf20b7963811925525f6b5a8d87b90a33ccabe430ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9cbb99b58e657720f3e2b56be59052310fc73ba0335bc3b9d7f1376639381373
MD5 8972fd3108b3731042af1ae5879db7a2
BLAKE2b-256 2edadd4bd64fff8a673751a2a3f5eca6727d3ae70f55ba0caf0e2302dfb0f87f

See more details on using hashes here.

File details

Details for the file entroly_core-0.9.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.9.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 afc493237ce8fde961916e7aea3eb353714b4f08363168023499cb4c2b072ee4
MD5 d287f488b30c7d3ffc1f6325579af1c9
BLAKE2b-256 5e4a938a712d74c7fdc98653078aa4bf89007be8fa2b5db1d480b474a4288f0f

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