{"id":5984,"library":"lambdatest-sdk-utils","title":"LambdaTest SDK Utilities","description":"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.","status":"active","version":"1.0.5","language":"en","source_language":"en","source_url":"https://github.com/LambdaTest/lambdatest-python-sdk/tree/main/utils","tags":["sdk","utilities","lambdatest","testing","helper"],"install":[{"cmd":"pip install lambdatest-sdk-utils","lang":"bash","label":"Install with pip"}],"dependencies":[],"imports":[{"symbol":"LambdaTestLogger","correct":"from lambdatest_sdk_utils.logger import LambdaTestLogger"}],"quickstart":{"code":"import os\nfrom lambdatest_sdk_utils.logger import LambdaTestLogger\n\n# Configure logging\nlogger = LambdaTestLogger(logger_name='my_app', level='INFO')\n\n# Example usage of the logger\nlogger.logger.info('This is an informational message.')\nlogger.logger.warning('A warning occurred.')\nlogger.logger.error('An error was logged.')\n\n# In a real scenario, you might use environment variables for credentials\n# LT_USERNAME = os.environ.get('LT_USERNAME', 'YOUR_USERNAME')\n# LT_ACCESS_KEY = os.environ.get('LT_ACCESS_KEY', 'YOUR_ACCESS_KEY')\n\nprint(\"Check console for log output.\")","lang":"python","description":"This quickstart demonstrates how to initialize and use the `LambdaTestLogger` from the `lambdatest-sdk-utils` package for basic logging within your application."},"warnings":[{"fix":"Ensure you understand the context of this utility library. For full test automation capabilities, refer to the `lambdatest-selenium-driver` or `lambdatest-playwright-driver` packages and their respective documentation.","message":"This library (`lambdatest-sdk-utils`) is primarily a utility package. It is designed to provide foundational components and helper functions that support other LambdaTest Python SDKs (e.g., Selenium, Playwright), rather than being a standalone testing framework itself. Direct usage might be limited to specific helper functions.","severity":"gotcha","affected_versions":"All"},{"fix":"Set `LT_USERNAME` and `LT_ACCESS_KEY` environment variables with your LambdaTest credentials before running tests or applications that connect to LambdaTest. You can obtain these from your LambdaTest Automation Dashboard.","message":"LambdaTest SDKs, including those utilizing `lambdatest-sdk-utils`, often rely on environment variables (e.g., `LT_USERNAME`, `LT_ACCESS_KEY`) for authentication with the LambdaTest cloud platform. Failing to set these can lead to authentication errors when interacting with LambdaTest services.","severity":"gotcha","affected_versions":"All"},{"fix":"Always double-check your `pip install` commands and `import` statements to ensure you are using `lambdatest-sdk-utils` for LambdaTest-related utilities. Look for the 'lambdatest_' prefix to confirm the correct package.","message":"There are other Python packages with similar names, such as `lambda_utils` or `lambdautils`, which are often related to AWS Lambda functions and are entirely distinct from `lambdatest-sdk-utils`. Importing the wrong package can lead to unexpected errors or incompatible APIs.","severity":"gotcha","affected_versions":"All"}],"env_vars":null,"last_verified":"2026-04-14T00:00:00.000Z","next_check":"2026-07-13T00:00:00.000Z"}