Sphinx source for DeFiPy's documentation site, published at defipy.org and defipy.readthedocs.io.
DeFiPy is a unified Python SDK for agentic DeFi, covering analytics, simulation, and LLM-native tool schemas for autonomous agents. For product information, see the main repository or the rendered docs.
docs/— Sphinx source (.rstpages,.ipynbnotebooks,conf.py)docs/agentic_primitives/notebooks/— executable category notebooks (9 files covering all 21 primitives)docs/math/— DeFi math reference notebooksdocs/img/— images, banners, diagrams.readthedocs.yaml— RTD build configuration
Requires Python 3.10+:
pip install -r docs/requirements.txt
cd docs
sphinx-build -b html . _build/htmlOpen _build/html/index.html in a browser to view the rendered site.
Category notebooks use nbsphinx with nbsphinx_execute = "never" — outputs are baked into the committed .ipynb files. To edit a notebook:
jupyter notebook docs/agentic_primitives/notebooks/<category>.ipynb
# edit, Kernel → Restart & Run All, saveFor source-controlled editing via jupytext, percent-format .py sources can be maintained alongside .ipynb files. See .readthedocs.yaml for the RTD build pipeline.
Documentation fixes, typo corrections, and notebook improvements are welcome. Larger structural changes (IA, toctree, theming) should be discussed via issue first.
For library-level changes, see the main repository.
Apache License, Version 2.0. See LICENSE.