Skip to main content

pylynqa

CI Acceptance test Documentation License Python

pylynqa is a Python client for the Lynqa REST API.

Python/Lynqa connector

Lynqa is a test execution AI Agent: you describe a test (plain steps or a Gherkin scenario) and Lynqa runs it against your web application. This library provides a wrapper around the REST API, covering test run management, step inspection, screenshot retrieval, and organization operations.

Disclaimers

[!IMPORTANT] This is an unofficial project. pylynqa is not affiliated with, endorsed by, or maintained by Smartesting, the company that develops Lynqa. "Lynqa" and "Smartesting" are the property of their respective owners.

[!NOTE] Lynqa is a commercial product. Using this client requires a Lynqa account and an API key, and running tests consumes paid credits. See https://my.lynqa.smartesting.com/integration to create an API key.

Requirements

  • Python 3.9+
  • A Lynqa account and API key (test executions consume credits)

Installation

pip install pylynqa

At this early stage the package may not be published on PyPI yet. In the meantime you can install it from source:

pip install git+https://github.com/petit-robot/pylynqa.git

Quick start

from pylynqa import CreateTestStep, LynqaClient

client = LynqaClient(api_key="your-api-key")

run_id = client.add_test_run(
    url="https://lemonde.fr",
    steps=[
        CreateTestStep(
            action="Go to the website",
            expected_result="The website is open",
        ),
        CreateTestStep(
            action='Search an article on "france ia"',
            expected_result='Should have an article on "IA agentique"',
        ),
    ],
    name="Smoke - Search an article",
)

status = client.get_test_run_status(run_id)
print(status["status"])  # e.g. "running"

Bruno Collection

The project provides a Bruno Collection to interact with Lynqa API. A Bruno environment named "production" was also provided in addition to the collection.

You can access the collection here.

Prerequisites

Before using this collection, make sure you have:

  • Bruno 3.4.2+
  • A valid Lynqa API Key that you get once you have a Lynqa account

Where to put your API Key

To securely use the API, you must configure your API key inside a Bruno environment.

For that you should:

  • Select the environment named "production".
  • Click on "Configure" to get access to the environment variable

In the environment variable:

  • Paste your Lynqa API Key in the Value field
  • Make sure to mark it as Secret (enable the checkbox)
  • Click Save

This ensures your API key is never exposed in Bruno files.

Collaboration

This project is at an early stage, so external contributions are limited for now. This may be opened up more broadly later as the project matures.

In the meantime, you are very welcome to open an issue to report a bug or ask any question.

License

Licensed under the Apache License 2.0.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylynqa-1.0.0.tar.gz (68.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylynqa-1.0.0-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

Details for the file pylynqa-1.0.0.tar.gz.

File metadata

  • Download URL: pylynqa-1.0.0.tar.gz
  • Upload date:
  • Size: 68.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pylynqa-1.0.0.tar.gz
Algorithm Hash digest
SHA256 aa5d660bc1381893789736f16a9cfc72a865c20f769675bbc4f230f8f903d085
MD5 455be611eac791afb7a68251c8335bf9
BLAKE2b-256 e625910e8fd370e23dc26170cb655d7608e7e370393b793ff9eaa3b0eea557a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylynqa-1.0.0.tar.gz:

Publisher: release.yml on petit-robot/pylynqa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pylynqa-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pylynqa-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 34.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pylynqa-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c336b4096ac28f7d903e2d30f3c70969dd40356cd39f110a407652718b89e6d1
MD5 5e774697f9c36fb9e7b35d9dfc100c29
BLAKE2b-256 7c1202d59ea7c6714602cffabea045524f67262d7486d59e6b5679a7e1b32631

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylynqa-1.0.0-py3-none-any.whl:

Publisher: release.yml on petit-robot/pylynqa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

0.1.0

2 files

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