Skip to main content

Tricentis Sealights Python Agent

The sealights-python-agent integrates your Python applications with the Tricentis Sealights Quality Intelligence Platform. It provides real-time code coverage analysis, test optimization, and quality analytics for your CI/CD pipelines.

With this agent you can:

  • Scan builds – map your source code so Sealights can track changes across builds and branches.

  • Collect code coverage – capture per-test method-level coverage during test execution.

  • Optimize testing – leverage Sealights Test Impact Analysis to run only the tests affected by recent code changes, reducing CI cycle time.

Compatibility

  • Python 3.10, 3.11, 3.12, 3.13, 3.14

  • Test frameworks: pytest, unittest, unittest2, Behave, Robot Framework, nose (on Python 3.11 and earlier)

Installation

pip install sealights-python-agent

Quick Start

# 1. Scan your build
sl-python scan --tokenfile sltoken.txt --buildsessionidfile buildSessionId \
    --workspacepath .

# 2. Start a test session
sl-python start --tokenfile sltoken.txt --buildsessionidfile buildSessionId \
    --teststage "Unit Tests"

# 3. Run your tests with coverage
sl-python pytest --teststage "Unit Tests" <your test args...>

# 4. End the test session
sl-python end --tokenfile sltoken.txt --buildsessionidfile buildSessionId

Documentation

For complete setup guides, configuration options, and advanced usage, see the official Tricentis Sealights documentation:

https://docs.sealights.io/knowledgebase

Support

For questions, issues, or feature requests, please contact Tricentis Support:

https://support.tricentis.com/

License

This package is distributed under a proprietary license. See LICENSE.txt for details.

Release Notes

Unreleased

  • Added opt-in TLS certificate verification for connections to SeaLights: set SL_TLS_VERIFY=true and, behind a TLS-inspecting proxy, SL_CA_FILE to a PEM file with your corporate CA; default behavior is unchanged

  • Added TLS verification status (tlsVerifyMode, tlsVerify, tlsVerifyProxy) to the agent-start event; when SL_TLS_VERIFY is not set, a one-time check per process, which sends no SeaLights token, can delay agent start by up to 5 seconds

  • Removed unused auto-upgrade code that could pip install a version supplied by the server

  • Upgraded GitPython to 3.2.1 to address security vulnerabilities (including CVE-2026-110858)

  • Upgraded certifi to 2026.10.19 in the agent and the AWS Lambda layer to address a certificate validation vulnerability; root certificates that Mozilla has removed are no longer trusted

  • Fixed missing coverage for long-running applications (sl-python run) when code had already run before the test stage opened or during an earlier test stage in the same process (regression in 2.10.7)

2.10.18 (2026-08-11)

  • Raised minimum versions of lxml, GitPython, and cryptography to address security vulnerabilities

2.10.17 (2026-07-29)

  • Fixed a rare out-of-memory crash during build scanning when the agent is injected via a container-wide PYTHONPATH; dependency collection now runs in-process instead of shelling out to pip

2.10.15 (2026-07-20)

  • Added support for chaining additional Lambda wrappers in the serverless layer

  • Improved agent-start event to report working directory and SL_* environment context (tokens redacted)

  • Dropped support for Python 3.9; supported versions are now 3.10 - 3.14

  • Upgraded urllib3 and cryptography to address security vulnerabilities

2.10.1 (2026-04-27)

  • Improved coverage reliability at end of test execution

2.10.0 (2026-04-20)

  • Added support for Python 3.14

2.9.0 (2026-04-16)

  • Upgraded requests library to address security vulnerability

  • Improved Behave test framework integration

2.8.0 (2026-03-30)

  • Added CLI command aliases for improved usability

  • Standardized command-line parameter naming

2.7.18 (2026-03-11)

  • Added testProjectId support for Robot Framework SLListener

2.7.17 (2026-03-04)

  • Improved stability of background polling during test execution

2.7.16 (2026-03-03)

  • Improved coverage collection for short-lived test runs

2.7.15 (2026-03-03)

  • Added HTTP retry mechanism with configurable error handling (SL_FAIL_ON_ERROR)

  • Improved data flushing for unit testing workflows

2.7.13 (2026-03-02)

  • Improved build session ID and lab ID handling

2.7.12 (2026-02-13)

  • Improved SL_LAB_ID environment variable compatibility

2.7.11 (2026-02-04)

  • Added include/exclude rules reporting in agent start event

  • Added .slignore file support for excluding files from scanning

  • Synchronized console messages with latest platform updates

2.7.10 (2026-01-28)

  • Improved configuration initialization and settings management

2.7.9 (2026-01-15)

  • Upgraded urllib3 to version 2.6.3 for improved security and stability

2.7.8 (2026-01-13)

  • Upgraded urllib3 to version 2.6.2 with enhanced HTTP handling

2.7.7 (2025-12-29)

  • Improved configuration management and feature initialization

  • Enhanced error handling and console messaging

2.7.6 (2025-12-24)

  • Improved MD5 hashing compatibility

  • Improved test project ID handling

2.7.5 (2025-10-28)

  • Improved lab ID handling from CLI parameters

  • Improved test project ID support

2.7.1 (2025-10-09)

  • Added Robot Framework lab ID support

  • Revendored internal dependencies to latest versions

Metadata

Release files for sealights-python-agent 2.10.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sealights-python-agent 2.10.23
File Size Uploaded Provenance Actions
sealights_python_agent-2.10.23.tar.gz 2.0 MB Without provenance Details for sealights_python_agent-2.10.23.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sealights-python-agent 2.10.23
File Interpreter ABI Platform Actions
sealights_python_agent-2.10.23-py2.py3-none-any.whl Python 3, Python 2 none any Details for sealights_python_agent-2.10.23-py2.py3-none-any.whl

Total release size: 4.3 MB

Release files / sealights_python_agent-2.10.23.tar.gz

Download URL sealights_python_agent-2.10.23.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
1d7014150f164679fbef80ed53fa952c6ecad6c412750bcf727b0ac570176db1
BLAKE2b-256 checksum
How to use checksums
9410f7c673c1d780606ee684a436cde94aca5e4fea9c18e87a1fc1315b0d8f46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.19

Release files / sealights_python_agent-2.10.23-py2.py3-none-any.whl

Download URL sealights_python_agent-2.10.23-py2.py3-none-any.whl
Size 2.2 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
347b52bbe26a79b85fc6fcd40f1c8929ee02acdb5d9b1497c8eee81cb8171335
BLAKE2b-256 checksum
How to use checksums
53281f235eb73ec77b6581a639d3ce45c19cd06ebd920411baf0eac9741883c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.19

Security for sealights-python-agent 2.10.23

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.10.23 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page