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.6.0-cp312-cp312-win_amd64.whl (852.1 kB view details)

Uploaded CPython 3.12Windows x86-64

entroly_core-0.6.0-cp312-cp312-manylinux_2_28_aarch64.whl (996.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

entroly_core-0.6.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (1.9 MB view details)

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

entroly_core-0.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

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

File metadata

File hashes

Hashes for entroly_core-0.6.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b32abe03240033836bb08dd7a2abd1cbf6afff319c705db2d6d4ac203d8d3967
MD5 b8d1a5f881439aea7a3eebcd09003aaf
BLAKE2b-256 fcb0e104b85c4f82845ca885f3c1e9e00df3161caf606a86ab55694344c85af0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.6.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f574f4f2b78aa168399afe45372d2086b8d132f351ae5044fd6d77978ec27a56
MD5 4ea914673fe88e52926499250dbb70fe
BLAKE2b-256 ce95161e48c7eed0c871693a1b064cce4818fc7cb6360a4b469d3a8b2c14d88c

See more details on using hashes here.

File details

Details for the file entroly_core-0.6.0-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.6.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 a56d29d31e45647e24a41b716bd031fa1efa67fd19652b3461275906d2d6e062
MD5 5d9865e37b43f92b6e46a715a351fe18
BLAKE2b-256 9607d4411918c133d3b945eceb68dba4a2a655507e8d8cbdc35f2c9b2aa7fc62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e76b32d0a7535a3fa87782bfb658617899c3f7875290dc45dc3c891e7b9e1275
MD5 9d9cc894844933d63d07b168ef6297e8
BLAKE2b-256 132447fb6322ece35c0070425f871204fced79730b3b87e53948e1516b7c59bc

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