Skip to main content

REST API service for Qontinui GUI automation

Project description

Qontinui API Service

REST API service that exposes real qontinui library image recognition capabilities for web-based testing.

Features

  • Real Qontinui Pattern Matching: Uses actual qontinui Find operations
  • State Detection: Detect which states are present in screenshots
  • Location Validation: Validate locations with image-relative positioning
  • Web-Friendly: Base64 image support for easy browser integration

Endpoints

Vision Operations

POST /find

Find a single template match in a screenshot using qontinui's real pattern matching.

{
  "screenshot": "base64_image_data",
  "template": "base64_image_data",
  "similarity": 0.8,
  "search_region": {"x": 0, "y": 0, "width": 100, "height": 100}
}

POST /find_all

Find all template matches in a screenshot.

POST /detect_states

Detect which states from a list are present in a screenshot.

{
  "screenshot": "base64_image_data",
  "states": [...],
  "similarity": 0.8
}

POST /validate_location

Validate if a location is accessible, with optional image-relative positioning.

Installation

  1. Install Python dependencies:
pip install -r requirements.txt
  1. Start the service:
./start.sh

Or manually:

uvicorn main:app --reload --host 0.0.0.0 --port 8000

API Documentation

When running, interactive API documentation is available at:

Integration with Frontend

The API accepts base64-encoded images and returns JSON responses with match regions, scores, and detection results. Perfect for integration with the qontinui-web frontend for visual testing and validation.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Please note that this project is released with a Code of Conduct. By participating in this project you agree to abide by its terms.

License

This project is open source. See the LICENSE file for details.

Contact

For questions or issues, please contact jspinak@hotmail.com or open an issue on GitHub.

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

qontinui_api-0.1.1.tar.gz (39.3 kB view details)

Uploaded Source

Built Distribution

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

qontinui_api-0.1.1-py3-none-any.whl (47.4 kB view details)

Uploaded Python 3

File details

Details for the file qontinui_api-0.1.1.tar.gz.

File metadata

  • Download URL: qontinui_api-0.1.1.tar.gz
  • Upload date:
  • Size: 39.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.10 Windows/10

File hashes

Hashes for qontinui_api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b2e9f177c84215df97c6afe109a1190a28fe01bb8827525c241388156e82e575
MD5 70b6c9b785a123fabfb9dac3553d9dd1
BLAKE2b-256 430fc46045b45e70f10d420233a924431d4786efa4b1b6bc8e04a7ac6c72abe1

See more details on using hashes here.

File details

Details for the file qontinui_api-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: qontinui_api-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 47.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.10 Windows/10

File hashes

Hashes for qontinui_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 245f5e5f5e0f3279b2ccd19dc949b7a82659c7e9c28fb4379b4cd5c4bddaf6e3
MD5 dafac78e3bf4b0ad1ea9fa5fc69ea16c
BLAKE2b-256 90784e626605d096e6f27fb804d9fd4bdac67603ef5f82dbe1754d9819dca54a

See more details on using hashes here.

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