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.39"

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.39-cp310-abi3-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.10+Windows x86-64

entroly_core-1.0.39-cp310-abi3-manylinux_2_28_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

entroly_core-1.0.39-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

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

entroly_core-1.0.39-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (4.8 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.39-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for entroly_core-1.0.39-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 47617f37d65fcd9cd844e9a23b4d1476cd9df975e80110ca3eb2d7fd492dccb0
MD5 87eb0f8379d51a6d84fbe7c1fcd3f869
BLAKE2b-256 dcae76d5423d42d1ecbfe731b7c21385d0421f996262fd6da724bd75193c0777

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-1.0.39-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 60fc59afd7f5594f2112c4e60306cfbff0dd2d9af48bff56802b6468181ee753
MD5 45bb22575ab70896c0ed3c3f41823d5a
BLAKE2b-256 5e6f48717b6f6cacf40ecb58f4740d7783d29201fc0e0a63364315ac107436d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-1.0.39-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2d21fecca23816f479a35feccdc3afc58e97f40db5e5467b6990e1b9f19b908f
MD5 14874bafedf2ab4a7bba12ed0324db84
BLAKE2b-256 e3584ce33051a228a4a07b863e12c895300648899533fe59a237d81d8c323a56

See more details on using hashes here.

File details

Details for the file entroly_core-1.0.39-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.39-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 5175f48804eec897cd74cf917155ac2d3f5bb93c75a4b86ddcee8e941b21171e
MD5 79aafec2e9e510d94b517985a80dec9a
BLAKE2b-256 50767f4f830f19c75f7d36e4e236003cfc14d94b7db4c08cb39247a0f460a90b

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