Skip to main content

Python client for the Lynqa API

Project description

pylynqa

CI Acceptance test 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 account 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"

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.

Project details


Download files

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

Source Distribution

pylynqa-0.1.0b1.tar.gz (49.0 kB view details)

Uploaded Source

Built Distribution

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

pylynqa-0.1.0b1-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file pylynqa-0.1.0b1.tar.gz.

File metadata

  • Download URL: pylynqa-0.1.0b1.tar.gz
  • Upload date:
  • Size: 49.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pylynqa-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 e533130b80405c5f71a49d82c8022015c68b5bf938c21d5058bc186835b79446
MD5 c90370348babb5775b821eb4bbd4c565
BLAKE2b-256 5f7339c289434abf95c020b9e399d71964e72f5f2c76975e5e5a176c34c42cbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylynqa-0.1.0b1.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-0.1.0b1-py3-none-any.whl.

File metadata

  • Download URL: pylynqa-0.1.0b1-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pylynqa-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 8091a53d71195582488e3a9648b0ab6303181fb85ca07b4932c17637d977fe18
MD5 fd4dbfeea67ac622b96fdc560613609a
BLAKE2b-256 249bb740c2a1979a44d8508097921222394ddc0bf17d148b2afa1876741d36ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylynqa-0.1.0b1-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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page