PyLegend
Python client library for Legend ecosystem with interactive TDS query building and execution
Release: 0.1.0 | Date: Feb 13, 2026 | License: Apache 2.0
Overview
PyLegend is a Python client library that provides seamless integration with the
FINOS Legend ecosystem,
enabling interactive TabularDataSet (TDS) query building and push-down execution capabilities.
Whether you’re a data analyst, data scientist, or software engineer, PyLegend bridges the gap between Legend’s powerful data modeling capabilities and Python’s rich data analysis ecosystem.
Key Features
🔗 Seamless Integration Connect directly to Legend services and functions from Python without complex setup. 🔍 Interactive Query Building Build TDS queries interactively with a fluent, pandas-like API. ⚡ Push-down Optimization Execute queries with full push-down optimization for maximum performance. 🐼 Pandas Compatible Load results directly into Pandas DataFrames for analysis and visualization. 🔄 Data Transformations Perform powerful transformations: filter, join, group, extend, sort, and more. 📊 Type Safety Leverage Legend’s type system for safer, more reliable data operations.
Installation
Install PyLegend using pip: pip install pylegend
Or using Poetry: poetry add pylegend
Documentation
Detailed documentation of all PyLegend classes and methods.
📚 API Reference
Getting Help
GitHub Issues: Report bugs or request features on our GitHub repository
Documentation: Browse the API Reference for detailed usage information