Skip to main content

Rust core for Entroly: Context Receipts, deterministic ingestion/ranking, dependency audits, and local context optimization

Project description

entroly-core

Rust core for Entroly, the information-theoretic context optimization engine 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 - security rules for common vulnerability classes
  • LSH index - approximate nearest-neighbor semantic recall
  • PRISM RL optimizer - online feedback-driven fragment weight learning

Install

python -m pip install --upgrade pip
python -m pip install --no-cache-dir -U "entroly-core>=1.0.23"

Prebuilt abi3 wheels are published for Linux, macOS, and Windows. One wheel per platform covers Python 3.10+ including Python 3.14. If pip tries to compile an old source distribution such as 0.2.0, upgrade pip and retry with --no-cache-dir; the intended path is the prebuilt wheel, not a local PyO3 build.

Usage

Usually used via the higher-level entroly package:

python -m 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-1.0.23-cp310-abi3-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.10+Windows x86-64

entroly_core-1.0.23-cp310-abi3-manylinux_2_28_aarch64.whl (2.4 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

entroly_core-1.0.23-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

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

entroly_core-1.0.23-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (4.6 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-1.0.23-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for entroly_core-1.0.23-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a50e5d796d6088b1fd03ce8a027725c62a11442dff89a7b70e773475716eedcd
MD5 3bd77f975579180a1775bd0bd5c52c9e
BLAKE2b-256 7622cdc1c9de6ab0ae17565182b1d29e4c034087cf0539645aad0e01298ade2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-1.0.23-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 accd1b2acb4ba4d85a1e09f3c4b0354b87b92197ef94dcc0ddccb3c6886090fe
MD5 73175434eda8b33be6b6d64459848499
BLAKE2b-256 975bcc03403f331cfb509e1cf67a6a5f8e59115f7c8c6f415694707b25ed9023

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-1.0.23-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 af6bc17240a6db02b1d45c9dd037d852ac99943fda82bac0217eecb469bf037a
MD5 9f0b03b477ccc09031b9714523227980
BLAKE2b-256 0c91d29809f337ae622a919bb43910d8dee39d91e62e59350d4f9b0a63e8ffdc

See more details on using hashes here.

File details

Details for the file entroly_core-1.0.23-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for entroly_core-1.0.23-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 1bbd8a8af4275cfd6fed36182036b26b02e4c12810b98b7c6eac06f940852fc7
MD5 12181f1a96902af6b8656cd0df8c3a06
BLAKE2b-256 bd0ee28a6a20369ea3661cf2c68d861a542670edd606df326356c90496991a9f

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