LambdaTest SDK Utilities

1.0.5 · active · verified Tue Apr 14

lambdatest-sdk-utils is a Python utility library designed to provide core functionalities and common tools for integrating with the LambdaTest platform. It typically serves as a foundational component for other LambdaTest Python SDKs, such as those for Selenium or Playwright. The current version is 1.0.5 and it generally follows the release cadence of the broader LambdaTest Python SDK ecosystem.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to initialize and use the `LambdaTestLogger` from the `lambdatest-sdk-utils` package for basic logging within your application.

import os
from lambdatest_sdk_utils.logger import LambdaTestLogger

# Configure logging
logger = LambdaTestLogger(logger_name='my_app', level='INFO')

# Example usage of the logger
logger.logger.info('This is an informational message.')
logger.logger.warning('A warning occurred.')
logger.logger.error('An error was logged.')

# In a real scenario, you might use environment variables for credentials
# LT_USERNAME = os.environ.get('LT_USERNAME', 'YOUR_USERNAME')
# LT_ACCESS_KEY = os.environ.get('LT_ACCESS_KEY', 'YOUR_ACCESS_KEY')

print("Check console for log output.")

view raw JSON →