REST API service for Qontinui GUI automation (maintenance mode)
Project description
Qontinui API Service
Maintenance Mode Notice
This package is in maintenance mode. The recommended approach for GUI automation is now the qontinui-runner with direct IPC to the qontinui library, which provides better performance and tighter integration.
This package remains available for developers who want HTTP API access to qontinui functionality. No new features will be added, but critical bug fixes may be applied.
Important: This package depends on the
qontinuicore library, which is not yet published to PyPI. For local development, install qontinui from source alongside this package.
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
- Install Python dependencies:
pip install -r requirements.txt
- 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:
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qontinui_api-0.2.0.tar.gz.
File metadata
- Download URL: qontinui_api-0.2.0.tar.gz
- Upload date:
- Size: 109.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.10 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb5947d5c9f693dc54e962fc14f935817b5906036f14dbc50c1303dbbb35c8a0
|
|
| MD5 |
846d8dcf87c8a81f4470ee07b65d6c16
|
|
| BLAKE2b-256 |
eda08dc0fc5e725b2854df52ba646016c8870fd55382e27cd68c762615d6b3d0
|
File details
Details for the file qontinui_api-0.2.0-py3-none-any.whl.
File metadata
- Download URL: qontinui_api-0.2.0-py3-none-any.whl
- Upload date:
- Size: 138.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.10 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a63aa37dfeec67fc05c45778e3f0662c2f1aa8f3025c8454871cc022d4e45fc
|
|
| MD5 |
5a32876bb0a2fde6dddd42b2e7ca0f8d
|
|
| BLAKE2b-256 |
4f641e2b696107d70a17af004bde40d6cf62b1c2d23b8ff9b78b529682f10faf
|