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

Uploaded CPython 3.12Windows x86-64

entroly_core-0.6.4-cp312-cp312-manylinux_2_28_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

entroly_core-0.6.4-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.4 MB view details)

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

entroly_core-0.6.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

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

File metadata

File hashes

Hashes for entroly_core-0.6.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f9fd05fa25d0e0c39c4560543662120cf4c1241beeeb4c51993f1fafa5bc6588
MD5 02019c09ce43482c9e2ba8a06bca967c
BLAKE2b-256 ccc421478ce30732ac4e56693c866d15397705d420b95826e7abcb0252a487ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.6.4-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8760f908ea0a98c851c6ff07494e55da232d8d6abab3656ec837aef13ee17cb5
MD5 7b0920a667aa284afd08f98343f84d00
BLAKE2b-256 4c1cc16f0bfee4963b6a21a1d485f1e42945ed3e4e76b8cc29c29d448bf67ce7

See more details on using hashes here.

File details

Details for the file entroly_core-0.6.4-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.6.4-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 4f4e87124ff0c8bf7e13b355a0b275a999141051b680e6ea63eb2879039504a2
MD5 53e9b9df7442ce8684560038ee4493b0
BLAKE2b-256 147e959309bc9be163b59ee5f50d0b1d8bc04ada3e871763270ad1e2d52118a2

See more details on using hashes here.

File details

Details for the file entroly_core-0.6.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for entroly_core-0.6.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f37d472fc5502935197ecc38f10fb07b05bf9c55aef9251b3618a42e33405807
MD5 9b20345a475dc511448e28eb930e5924
BLAKE2b-256 35aef349ad890a6def981c096929d680c6d5d916b41c2ac79ceb0af483e5a1be

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