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.19.2-cp314-cp314-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

entroly_core-0.19.2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

entroly_core-0.19.2-cp312-cp312-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.12Windows x86-64

entroly_core-0.19.2-cp312-cp312-manylinux_2_28_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

entroly_core-0.19.2-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.19.2-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.8 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.19.2-cp314-cp314-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for entroly_core-0.19.2-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 46b1eadba338bee8d32911ed0fbfd45d5c559fcf8c57d6c5b938d19ca52f7136
MD5 2f6cfeb17322a67c9d6a611db6a4a7c5
BLAKE2b-256 b01411b186f2ac24188fd70f660a1fe9d4398fed2a6286870394c4f9545d4f5c

See more details on using hashes here.

File details

Details for the file entroly_core-0.19.2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for entroly_core-0.19.2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 72cb5d7c60dcf1a980a8398dc692e8e0dbe74591330e60161be458a82125f8f1
MD5 1e19e6dedcd0a8863c4059328ddc212d
BLAKE2b-256 46908d05f6e1910edf97dbb34cf7d26e1eae10b0151b1aaf21614cd85d442b61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.19.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 87bf03277a99c2f12a120edd748002415cde9ed68aaa45db9f6cb44011e13dce
MD5 eb0d1888445ecaff40bb5d7de4133425
BLAKE2b-256 0a158b76bb5613beb33af751ef4bf276e0f6773dfd0214d9a4eb66b51242e62a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.19.2-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5f9a362352ace45808df1e394d2e3e0b602893ce5614edf9d3bc86e7d6fc800e
MD5 a6ae6d92857b93379634dcfd101f67c4
BLAKE2b-256 6ea1d74c8d8f4e3c8be167ff5e9b7c2603c7375f1f42a44e2c6dae78f9b23787

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for entroly_core-0.19.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3b3d3b0cce916e58a2bb15ab41476b286ac9fc46585fc0c09cc589b5582102f4
MD5 71663d09d2014bd6773ae876fc4e863b
BLAKE2b-256 bb3fa25c7462019ca24119d504a03cb06f7e401d5b2f4deccdf5b7205b72bf1e

See more details on using hashes here.

File details

Details for the file entroly_core-0.19.2-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.19.2-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 763d08a45654d212f823807ddc488afd710abcd1147fd8524b917bef73e652cb
MD5 1c0ee9a88ed5d2d2a3777ace54791b21
BLAKE2b-256 651cf95a695d544d3eb414a270120b4f8aa6c47671e383b51457f1da214f9cb9

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