Markdown# INT Dynamic Engine (v3.0.0)
A lightweight, C++17-powered, AES-256-GCM encrypted out-of-core storage, caching, and analytics engine built to eliminate Out-Of-Memory (OOM) spikes on low-RAM servers.
Designed and architected by Nikila Udana (INTTECH Sri Lanka), int-dynamic-engine replaces heavy background daemons (such as Redis) with a single in-process C++17 shared library (libinte.so) accessible via native FFI across Python, Node.js, and PHP.
Key Features
- Strict RAM Arena + Automatic Disk Spillover: Enforce a hard RAM cap (e.g.,
16 MB). Hot keys remain in C++ memory for microsecond reads, while excess data automatically spills to disk without crashing your application. - Native AES-256-GCM Encryption: Every spilled record is encrypted at rest using OpenSSL
AES-256-GCMwith SHA-256 derived 32-byte keys. - Zero-Daemon Polyglot Architecture: Compiles into a lightweight C-ABI shared library (
libinte.so)—eliminating background server processes and TCP socket overhead. - On-Demand Disk Compaction (
compact): Reclaims fragmented dead disk space caused by overwritten or deleted keys. - Out-of-Core OLAP Pushdown: Execute prefix scans (
scan_prefix) and C++ aggregation pushdowns (aggregate_double_prefixforcount,sum,avg,min,max) directly over cold disk records without loading them into Python or Node.js RAM.
Prerequisites (Linux / Ubuntu)
Because int-dynamic-engine compiles its native C++17 core automatically on first import (or via install.sh), ensure g++ and OpenSSL development headers are installed:
sudo apt update && sudo apt install -y g++ libssl-dev
InstallationPython (PyPI)Bashpip install --upgrade int-dynamic-engine
System-Wide C++ Shared Library (For Node.js, PHP & C/C++)Bashsudo bash install.sh
This installs /usr/local/lib/libinte.so, /usr/local/include/inte_core.h, and language bindings under /opt/int-dynamic-engine/bindings/.Quick Start (Python)Pythonimport json
from inte import IntDynamicEngine
# Initialize engine with a strict 16 MB RAM cap
db = IntDynamicEngine(
storage_dir="./my_encrypted_vault",
max_ram_mb=16.0,
secret_key="your-master-secret-key"
)
# Store raw bytes or UTF-8 strings
db.put("status", b"Production Active")
db.put("user:101", json.dumps({"name": "Nikila", "role": "Architect"}))
# Retrieve & auto-decrypt (works seamlessly across RAM and disk spillover)
print(db.get("status").decode("utf-8"))
print(json.loads(db.get("user:101").decode("utf-8")))
# Inspect live memory & disk telemetry
print("Engine Stats:", db.stats())
print("Disk Stats:", db.disk_stats())
# Reclaim fragmented disk space & safely flush index on exit
db.compact()
db.close()
Python API ReferenceMethodDescriptionIntDynamicEngine(storage_dir, max_ram_mb, secret_key, lib_path=None)Initializes the C++17 engine and recovers persistent disk indexes if present.put(key: str, data: bytes | str)Encrypts and stores data under key, spilling cold items to disk when max_ram_mb is reached.get(key: str) -> bytes | NoneRetrieves and decrypts data from RAM or cold disk storage (None if missing).delete(key: str) -> boolRemoves a key from active RAM and the disk index.stats() -> dictReturns ram_used_kb, ram_items, and disk_items.disk_stats() -> dictReturns active_kb, file_size_kb, and dead_space_kb.compact()Compacts the encrypted disk log to reclaim dead space from deleted or updated keys.scan_prefix(prefix, callback, contains_filter=None)Streams matching records directly from disk without polluting hot RAM.aggregate_double_prefix(prefix, value_offset=0)Computes count, sum, avg, min, and max over little-endian float64 payloads in C++.close()Flushes indexes to disk and releases C++ heap memory cleanly.Multi-Language Usage (Node.js & PHP)When installed system-wide via install.sh, the same C++ core (libinte.so) can be imported directly in Node.js (koffi) and PHP (FFI):Node.jsJavaScriptconst { IntDynamicEngine } = require('/opt/int-dynamic-engine/bindings/node/inte.js');
const db = new IntDynamicEngine('/var/lib/int-engine/app', 16, 'your-master-secret-key');
db.put('session:1', JSON.stringify({ user: 'Nikila', active: true }));
console.log(db.get('session:1').toString('utf8'));
console.log(db.stats());
db.close();
License & AuthorAuthor: Nikila Udana (INTTECH Sri Lanka)Contact: intxteam@gmail.comLicense: MIT License
Metadata
Release files for int-dynamic-engine 3.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| int_dynamic_engine-3.0.2.tar.gz | 11.3 kB | Without provenance | Details for int_dynamic_engine-3.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| int_dynamic_engine-3.0.2-py3-none-any.whl | Python 3 | none | any | Details for int_dynamic_engine-3.0.2-py3-none-any.whl |
Total release size: 23.2 kB
Release files / int_dynamic_engine-3.0.2.tar.gz
| Download URL | int_dynamic_engine-3.0.2.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eceec4cdf65b87b6067b38b3f7c310b6ef999eddebabc878da969c713ef86ebe
|
|
BLAKE2b-256 checksum How to use checksums |
a68d7c1ad54a6f9ab99c3a47456ba2fbe6fe359e90e8dea0bd8c10d7a7857767
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / int_dynamic_engine-3.0.2-py3-none-any.whl
| Download URL | int_dynamic_engine-3.0.2-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4268ea4765d77a294a37049323a07189beac732bdd5145555908edf737b0766
|
|
BLAKE2b-256 checksum How to use checksums |
77430a21f2c8900bacb8c5e30084c70b168b806b370093933dfed9a792cceaa3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for int-dynamic-engine 3.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.