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.3.0-cp313-cp313-manylinux_2_34_x86_64.whl (771.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

entroly_core-0.3.0-cp312-cp312-win_amd64.whl (572.0 kB view details)

Uploaded CPython 3.12Windows x86-64

entroly_core-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (773.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

Details for the file entroly_core-0.3.0-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for entroly_core-0.3.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d73ad2585b8dca4f53299a4ed192212f0bee9b5421fb9a150330ae77c7832697
MD5 393e07919adc2a68ff2274d9575cdfb8
BLAKE2b-256 36754a32e7acaccbc083eb0631a788118216f7dfb6be6fb4f41b7a17ad61e7ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8fb79f1c50f5e53b22f7c26937e546172f6a6835794ae90d2c258a2f41486fce
MD5 b78736f99a528f33c6090825a187b3e3
BLAKE2b-256 396d5158af1c044789299c5b6c57057c12911ab7867ccbbadeb05781189da3dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b99b12259406db195d9babff5415587df9e40aff81a3d60b94b3a94087fee12d
MD5 6c180adb909211d4769bca01e04f25cf
BLAKE2b-256 708bb386e8654a1752cc28478cf457985eeaaede4058487a8190d9333fc77540

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