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.1-cp312-cp312-win_amd64.whl (851.6 kB view details)

Uploaded CPython 3.12Windows x86-64

entroly_core-0.6.1-cp312-cp312-manylinux_2_28_aarch64.whl (996.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

entroly_core-0.6.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (1.9 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.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

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

File metadata

File hashes

Hashes for entroly_core-0.6.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 49e942a8f8d25b395b4cd5d01ee243fee298e43cd0c84fc3133cc7503fea6aa4
MD5 527d9ee914fc787055997ec1743cb2c4
BLAKE2b-256 dbde6417a37016534a79270d3ddbbd9693ed0b1911227a6fb96b128eee42b175

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.6.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2e864e400d1c8b08cb746066bec7329807c9a532aec8709274735437b2c2aecc
MD5 0f05e440578441cbfea6998c3c7c5dae
BLAKE2b-256 f0d37d503d21bf91542cb541ef2df17ad1026e000fc2cdf700a3983907a0d8f3

See more details on using hashes here.

File details

Details for the file entroly_core-0.6.1-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.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 958bef2ad385447e87b01ca3835f58cb4a1c0dcd3c0b6398a57c3c7cbab4ed65
MD5 b86fd4013fb6cd385be047bd4277d14d
BLAKE2b-256 ccc69dc1f49317842874b0fa05e5add4e7a471d9a1eb6857e10f3acdd5f3f05f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.6.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3bd61d00a0101cae8af7adc1c21d0f45454112816af132362bc0b65aea9da8ac
MD5 a89a8c87f66d0e3dba5e099497aa5bfd
BLAKE2b-256 99958d8d44b038a1cad5627c522d9781d52c5432fd9588ea227421b3a1f95735

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