Skip to content

LSEG-API-Samples/Example.TM3.DataLibrary.Python.Workflow

Repository files navigation

A Step By Step TM3 Client File Store (CFS) File API using Data Library for Python

  • version: 1.0.0
  • Last update: August 2025
  • Environment: Python Jupyter Notebook

Example Code Disclaimer: ALL EXAMPLE CODE IS PROVIDED ON AN “AS IS” AND “AS AVAILABLE” BASIS FOR ILLUSTRATIVE PURPOSES ONLY. LSEG MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, AS TO THE OPERATION OF THE EXAMPLE CODE, OR THE INFORMATION, CONTENT, OR MATERIALS USED IN CONNECTION WITH THE EXAMPLE CODE. YOU EXPRESSLY AGREE THAT YOUR USE OF THE EXAMPLE CODE IS AT YOUR SOLE RISK.

Introduction

This example demonstrates how to use C# with LSEG Data Library for Python CFS object to retrieve the Municipal Market Monitor (TM3) bulk file via the Delivery Platform—also known as the Data Platform or RDP.

Please note that this code is intended for demonstration purposes only and is not optimized for production use.

How to run the demo application

The first step is to unzip or download the example project folder into a directory of your choice, then set up Python or Postman environments based on your preference.

Run the demo Notebook application

  1. Open the Command Prompt and go to the project's folder.

  2. Create a file name lseg-data.config.json with the following content

    {
        "logs": {
            "level": "debug",
            "transports": {
                "console": {
                    "enabled": false
                },
                "file": {
                    "enabled": false,
                    "name": "lseg-data-lib.log"
                }
            }
        },
        "sessions": {
            "default": "platform.ldp",
            "platform": {
                "ldp": {
                    "app-key": "App-Key",
                    "username": "V1 Machine-ID",
                    "password": "V1 Password",
                    "signon_control":true
                }
            }
        }
    }
    
  3. Run the following command in the Command Prompt application to create a virtual environment named TM3 for the project.

    $>python -m venv TM3
  4. Once the environment is created, activate a virtual TM3 environment with this command.

    #Windows
    $>TM3\Scripts\activate
  5. Run the following command to the dependencies in the TM3 environment

    (TM3) $>pip install -r requirements.txt
  6. Once the dependencies installation process is success, run the following command to start the Jupyter Lab application.

    (TM3) $>jupyter lab
  7. Open a TM3_LD_Simple.ipynb file and run each cell to learn the RDP CFS File workflow step by step.

About

A workflow for TM3 Bulk file using Data Library for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published