GTSAM Python-based factors One now can build factors purely in Python using the CustomFactor factor. See this notebook for usage.