r/Python • u/AutoModerator • 20d ago
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
28
Upvotes
r/Python • u/AutoModerator • 20d ago
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
View all comments
1
u/Business_Rain_1042 7d ago
Weave: a Python package where the agent writes one script instead of a loop of tool calls
What My Project Does
Weave is a Python package (PyPI: weave-lang) with a Rust runtime. You wrap your tools once, and the model gets a single
run_weavetool. It writes a short script in a small Python subset (loops, branches, helpers). The runtime runs independent reads in parallel, orders writes by declared effects, and gives the model back only what the script printed.It works with Chat Completions, the OpenAI Agents SDK, LangChain/LangGraph, and MCP clients. Install is
pip install weave-lang(importweave). Python 3.9 to 3.13, Linux, macOS, and Windows. I'm the author.Target Audience
People building tool-using agents who do a lot of fan-out or chained lookups (audit many packages, scan several repos, filter results before they hit the context). Not aimed at one-shot tool calls or chat flows where every step waits for a person. Usable in real projects, but still early.
Comparison
Native function calling sends each tool round as its own model call and stuffs every raw result back into context. LangChain and the OpenAI Agents SDK still sit on that loop; Weave plugs into both as one tool, so the model can batch the work inside a script instead.
Against native function calling, same model and tools, pre-registered:
Source: https://github.com/AtharvRaotole/weave