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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

entroly_core-0.14.1-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.14.1-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.14.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for entroly_core-0.14.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 163baa2fdeb1a48f0c0dad502ccc21a7d015709aecf55a0b91e0eee7c0622d73
MD5 d25eee65f0d0afcf72bc2d4bbc0d7dcb
BLAKE2b-256 61a03232e0f0ad0109b6c3eba64615b92c2cff7e6f5fbaa9be3da25b3c82f525

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.14.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9bac787821cdda9381d0e43d0453f57c1bdc13794c193c466d317208e7bd7aeb
MD5 17fc5d021ccc9af0c3d332e6c1c4f95d
BLAKE2b-256 0b0e4865a88f7d12d6bc8fd7ca48f68f9d0affb71836ca97de9734a30d0d4b95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.14.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4255d2ab43a23c70dee624d8059867c4b5a979c18f7112659792114f31f88ce7
MD5 e17b198274656fe348fa591f36c9ffab
BLAKE2b-256 709bba9f6b772d233049d07bf4b45e9bc1e1d0cd5114d955012648f872709470

See more details on using hashes here.

File details

Details for the file entroly_core-0.14.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.14.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 ac0bf8abd9e4988739a393ba02843d7ee52a331494323236d39452d9174a499a
MD5 26b25314f7ed73f031fa3ecaab091931
BLAKE2b-256 5c341576b80349a29acf5e078d652d797bf6f9f774dc5b597cd7c43371149ae6

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