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

Uploaded CPython 3.10+Windows x86-64

entroly_core-0.19.4-cp310-abi3-manylinux_2_28_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

entroly_core-0.19.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

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

entroly_core-0.19.4-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (4.1 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.4-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for entroly_core-0.19.4-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b6667d9c2519c346f4dcd5fef520989101e5fc0718940d2115e2e169e451c4af
MD5 a573cee2e089d3bd03e5cc6e852478c6
BLAKE2b-256 875780e88409c0bc58fdfc99914b7eac50b4fffeeb5268a25f968fb629b230bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.19.4-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b0ef4cde015dfbb9a3f9d53cabd9a0b8d30f98ac6ccd5008adba178e8b25b77d
MD5 5a307ebb6535f19714c061cf54ab273e
BLAKE2b-256 ec145c188eb9b3a8865c47a7fcc7b7ea9c33351bdc2f72ff8e7c842e9474e56a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.19.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2997827b86de44b33b579c68eb89b0a06a45afdbf8ce30f28b1bf2b430382540
MD5 f9e35c94614254579a890a7816a94a71
BLAKE2b-256 778e45d8eb080b278215ae9c9f3f6b3e78d01f9acc11cfde8a6d733d82e56d35

See more details on using hashes here.

File details

Details for the file entroly_core-0.19.4-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.4-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 783b7bd6eefd15e7e4f544b141e4c47c748ccc40ecbe5f1f2152565bb7a83de7
MD5 8361152bd9b49260b7611ff0fec56476
BLAKE2b-256 3961a38258ac101ca7c5446fce16aa124febdd5d316988b6c6f7ad997887f006

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