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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

entroly_core-0.15.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.15.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.15.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for entroly_core-0.15.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9fa5485150c90920b1783d0d4ff21fa5cc43729a7e6780950aaf4487aedbb266
MD5 761d71e3205d803b3e7a0ec415e4cf03
BLAKE2b-256 293e0a7cb7b39ebad0f7e17b9ad5a7d05044bc1c59fdb11712b7cba151c7fea9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.15.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 64e35763950d8a575a0ab9ffc2f8433dd83afad45cdfc169403e74bbc1972211
MD5 a0eb44d1d5b1e5c0eb064af2c531d0a9
BLAKE2b-256 abb53075486cf1298bd991372a9784b8aac2dcb307d4ed0b10f717bd99598b63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.15.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 784b2e6c6965e28c0bce8d33e8436962c4998d1c6281afbb04a851b9828154c3
MD5 2e26ab6d3b31a19ba4c345271c2e5a0c
BLAKE2b-256 109d24338e52ff5d81dc943660259ce746d1b7161d430317e06b015684ace768

See more details on using hashes here.

File details

Details for the file entroly_core-0.15.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.15.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 0ee8664a3e3173ead545e9fe3ca020ea1bb0d0428b1109b1655420beca581c34
MD5 3645d13f9e1497f345b2377c586f2a86
BLAKE2b-256 26a773ab227d00d5b05c4e2a760fb0a5e681b2bf18309a0ed4c4831e97d5f240

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