TOOLS
Selected work
Small tools, clear boundaries.
Focused projects for applied AI, model explanations, ERP workflows, streaming Excel files, Word document processing, and JSON queries.
ML-Agent ↗
Agentic AutoML for tabular data, with deterministic validation and model selection.
pyinterpret ↗
One Python API for local and global model explanations across several methods.
ERP-Assistant ↗
Natural-language operations and interactive org charts for ERP workflows.
rustpyxl ↗
A Rust streaming XLSX engine with Python bindings and an opt-in openpyxl compatibility bridge.
jsonpath-rx ↗
JSONPath queries and mutations in Rust and Python, targeting the jsonpath-ng dialect.
pydocx-fast ↗
Drop-in performance fixes for python-docx: faster reads and writes, byte-identical output.
Controlled AutoML
A hard boundary around the agent.
ML-Agent profiles a tabular dataset and tests a small set of scikit-learn pipelines. An LLM can propose the next experiment, but ordinary code checks the plan, runs cross-validation, and chooses the winner. The planner receives column names, summary statistics, and earlier results—not the dataset rows.
uv sync
uv run mlagent run demo:breast_cancer --target target --planner fake
Each run writes a predictor, schema, leaderboard, run record, and Markdown report. The offline planner exercises the full pipeline without an account; Codex, Claude, and OpenAI API planners are also supported.
Model interpretation
Explanations without a new workflow each time.
pyinterpret brings local attribution and global inspection behind a consistent interface. Use SHAP or LIME for individual predictions, then permutation importance or partial dependence for model-level behaviour.
pip install pyinterpret[all]
from pyinterpret import SHAPExplainer
explainer = SHAPExplainer(model, explainer_type="tree")
result = explainer.explain_instance(X.iloc[0])
The package supports tabular, text, image, and time-series inputs, with integrations for scikit-learn and pandas.
Conversational ERP
Structured tasks through a conversation.
ERP-Assistant routes plain-English requests through a LangGraph workflow to add or delete users, customers, and offices. It can ingest CSV, XLSX, JSON, PDF, and TXT files, normalize their records, and show the stored entities in a tabular browser.
uvicorn src.backend:app --reload --port 8000
streamlit run app.py
A separate workflow turns unstructured reporting relationships into a typed employee hierarchy and renders an interactive organizational chart with NetworkX and Plotly.
Rust-powered XLSX
Excel rows in bounded batches.
rustpyxl reads worksheet XML through a Rust streaming core and writes rows to temporary files, avoiding a Python object for every cell. Its standalone Python API supports read-only iteration and write-only workbooks, with batches that can consume generators.
from rustpyxl import Workbook
with Workbook(write_only=True) as book:
sheet = book.create_sheet("Data")
sheet.append_rows(([i, f"item-{i}"] for i in range(100_000)))
book.save("data.xlsx")
An opt-in compatibility bridge keeps existing openpyxl imports and objects, accelerating supported read-only value iteration while delegating other features to openpyxl. The standalone engine has a narrower API; styles, mutable editing, and full openpyxl parity are still outside its current scope.
JSONPath in Rust and Python
Structured queries, addressable results.
jsonpath-rx ports the jsonpath-ng query dialect to Rust, with an inspectable syntax tree, base and extended parsers, mutation APIs, a CLI, and Python bindings. Matches expose their values, full paths, and JSON Pointers.
import jsonpath_rx as jp
data = {"items": [{"price": 10}, {"price": 25}]}
query = jp.parse("items[*].price")
query.values(data) # [10, 25]
updated = query.update(data, 30)
Queries on plain Python data return a modified copy when updating; a reusable Document supports in-place mutations and repeated queries without converting the whole document each time. This initial port targets JSON values, with documented differences from jsonpath-ng and no claim of complete Python API parity or RFC 9535 conformance.
python-docx performance
The same document, three times faster.
pydocx-fast fixes two hot paths inside python-docx without changing the API. Every XPath query recompiled its string, which was roughly 80% of read time; it is now compiled once and cached. Finding the trailing sectPr scanned every body child, which made add_paragraph O(n) and document building O(n²); it now walks back from the last child, with a fallback to the upstream scan for non-schema-ordered elements.
import pydocx_fast # once, before use
from docx import Document
On a 50,000-paragraph document, write and save drop from 17.6s to 5.5s, and loading plus reading all text from 1.35s to 0.41s. The test runs upstream and patched in separate processes and asserts identical output.