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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

File metadata

File hashes

Hashes for entroly_core-0.15.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 48987a2ea0f9f4caa777249ad10408ae069cdb6cf7e616818ee833334a34df37
MD5 dafed38b11bde68810f745599aa602bc
BLAKE2b-256 1c5fc36b72283a86b4fd156f571119d905509743278db7c30343b8cd20948f87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.15.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bbbcb1e8c6c7cc5a6104ca5d106ac333d0aa3164d62ca80abadd3dd0f3e9e3fa
MD5 f8dd56b6a558510be36815c45f6e488a
BLAKE2b-256 8dc8ad9869ffa6f7f3d6a9a670a262586f44aa8359c8ccb47dd81263bafbcb54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.15.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b2f233362c11e21cfb9a75dc525f689a9de49c955634f52e3e23b041e8daf0a4
MD5 15fae324b5efc7acf73010c0ee24ea6a
BLAKE2b-256 321d1a645ae42c1428edf01978fe782c9549f7948b99eacee7731bb1fcb80e2c

See more details on using hashes here.

File details

Details for the file entroly_core-0.15.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.15.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 b2b496d3fe893d25ee69623e13a56b3aeacba7814be5dd844a64688df0ba882b
MD5 2faa5c9f486568de7b774632b3e185b7
BLAKE2b-256 22488addd38a5f801e6a6f5546c2672b044c6ee45112da09b2d21d3cccdc10c9

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