{"repo":"defipy-devs/defipy","free":true,"listed":false,"github":"https://github.com/defipy-devs/defipy","clone":"git clone https://github.com/defipy-devs/defipy.git","description":"DeFiPy: Python SDK for Agentic DeFi","language":"Python","stars":20,"topics":["analytics","defi","python","ai-agents"],"license":"Apache-2.0","category":"blockchain-web3","readme_excerpt":"DeFiPy: Python SDK for Agentic DeFi DeFiPy is the Python SDK for agentic DeFi — a substrate of composable, typed primitives built on hand-derived AMM math across four families (Uniswap V2, Uniswap V3, Balancer, and Curve-style Stableswap). Most DeFi tools wrap APIs; DeFiPy ships the math. Whether you're building dashboards, simulations, notebook research, or agent-based systems, the primitives compose the same way: stateless construction, exact computation at .apply() , structured dataclass results. Underneath, DeFiPy is modular by protocol: UniswapPy BalancerPy StableSwapPy For onchain event access and scripting, use LiveProvider as of v2.1 — it pulls live pool state into the same primitive surface that runs against synthetic recipes. Under the hood it's powered by Web3Scout; install via the [chain] extra (see below). For details on architecture behind State Twins, see paper 🆕 What's new in v2.2 v2.2 extends LiveProvider from Uniswap V2/V3 to Balancer and Curve-style Stableswap — chain reads now cover all four protocol families through the same provider.snapshot(...) → StateTwinBuilder().build(...) flow. Balancer LiveProvider — provider.snapshot(\"balancer:0xADDR\") builds a BalancerPoolSnapshot from a real Balancer V2 weighted pool (2-asset). Two block-pinned round trips, since token balances live on the Vault keyed by poolId . Normalized weights read honestly; reserves decimal-adjusted. Stableswap LiveProvider — provider.snapshot(\"stableswap:0xADDR\") builds an N-coin Stable","default_branch":null,"files":null,"tree":[],"storefront":"/r/defipy-devs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/defipy-devs/defipy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}