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.19.3-cp310-abi3-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.10+Windows x86-64

entroly_core-0.19.3-cp310-abi3-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

entroly_core-0.19.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

entroly_core-0.19.3-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.8 MB view details)

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

File details

Details for the file entroly_core-0.19.3-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for entroly_core-0.19.3-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 51c91944792e0a1730b87dbd475ea6afc9e7129bbce53bed41248aea1e272751
MD5 7a8cedf687bb8186d750d14d0e724a9d
BLAKE2b-256 7ad3c26155b6008a76ed3db6d08f0a25d6a1c02710a7cf69c5f4032e86497073

See more details on using hashes here.

File details

Details for the file entroly_core-0.19.3-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for entroly_core-0.19.3-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d6fd2c72bd07481dce7fb5c8e2a16b6d903d50df58cb95b70b8736d7d3831966
MD5 7936f79938611edd58d96167c286f4a1
BLAKE2b-256 c4ab3a46e7c92f40abc1987d115dbe60dd3ab09133bcb560c1ce9ed5ab75f4cb

See more details on using hashes here.

File details

Details for the file entroly_core-0.19.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for entroly_core-0.19.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b5fdfb4cef2f3097f669b6e04ea491f7d61a9fdc11535adc4d09c64077ec7207
MD5 9d1a5176af0c900f01d59cfed5c6b422
BLAKE2b-256 924260b4bda54b16c5fb5318825c7c184800f6262da3e0ee678f238e4e175e32

See more details on using hashes here.

File details

Details for the file entroly_core-0.19.3-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for entroly_core-0.19.3-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 d66b90a6a6e0b2cd6224db9efd8121cbc8cf6285f0f245e280ce6bdf3cf34ff7
MD5 e80fa9a93f21bed78478cbba28d072c1
BLAKE2b-256 a4afaa47299c944bf0baa1dec57dcbc8d0d79e7f1746a0db77fd1a3f6f0edd4b

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