.. Copyright 2026 Goldman Sachs .. .. Licensed under the Apache License, Version 2.0 (the "License"); .. you may not use this file except in compliance with the License. .. You may obtain a copy of the License at .. .. http://www.apache.org/licenses/LICENSE-2.0 .. .. Unless required by applicable law or agreed to in writing, software .. distributed under the License is distributed on an "AS IS" BASIS, .. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. .. See the License for the specific language governing permissions and .. limitations under the License. ********** PyLegend ********** .. role:: raw-html(raw) :format: html :raw-html:`

Python client library for Legend ecosystem with interactive TDS query building and execution

` :raw-html:`

` **Release:** *0.1.0* | **Date:** *Feb 13, 2026* | **License:** *Apache 2.0* :raw-html:`

` :raw-html:`
` 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 ------------ :raw-html:`` :raw-html:`` :raw-html:`` :raw-html:`` :raw-html:`` :raw-html:`` :raw-html:`` :raw-html:`` :raw-html:`` :raw-html:`` :raw-html:`` :raw-html:`` :raw-html:`` :raw-html:`
` **🔗 Seamless Integration** Connect directly to Legend services and functions from Python without complex setup. :raw-html:`` **🔍 Interactive Query Building** Build TDS queries interactively with a fluent, pandas-like API. :raw-html:`
` **⚡ Push-down Optimization** Execute queries with full push-down optimization for maximum performance. :raw-html:`` **🐼 Pandas Compatible** Load results directly into Pandas DataFrames for analysis and visualization. :raw-html:`
` **🔄 Data Transformations** Perform powerful transformations: filter, join, group, extend, sort, and more. :raw-html:`` **📊 Type Safety** Leverage Legend's type system for safer, more reliable data operations. :raw-html:`
` :raw-html:`
` Installation ============ Install PyLegend using **pip**: ``pip install pylegend`` Or using **Poetry**: ``poetry add pylegend`` :raw-html:`
` Documentation ============= :raw-html:`` :raw-html:`` :raw-html:`` :raw-html:`` :raw-html:`
` :raw-html:`📚 API Reference` :raw-html:`

Detailed documentation of all PyLegend classes and methods.

` .. toctree:: :maxdepth: 2 api/api :raw-html:`
` :raw-html:`
` Getting Help ============ - **GitHub Issues:** Report bugs or request features on our `GitHub repository `_ - **Documentation:** Browse the API Reference for detailed usage information :raw-html:`
` Indices and Search ================== * :ref:`genindex` * :ref:`search`