A versatile and automated testing framework for games and apps on Android and iOS platforms
Project description
Metisse
Metisse is a powerful image recognition and automation package designed to facilitate the development of scripts for mobile devices. It provides an extensive set of tools for image recognition, screenshot manipulation, and user interaction, such as tapping, swiping, and pressing.
Features
- Image recognition using template matching
- Screenshot manipulation, including cropping and saving
- Automation of user interactions, such as tapping, swiping, and pressing
- Customizable parameters for image recognition and automation tasks
- Easy integration with existing automation frameworks
Installation
To install Metisse, run the following command in your terminal:
pip install metisse
Usage Here's a simple example demonstrating how to use Metisse for image recognition and user interaction:
python Copy code
from metisse.metisse import MetisseClass
from metisse.params import ImageRecognitionParams, SaveParams
class script_example(MetisseClass):
def __init__(self, device_id="", relatively_path="", pyqt6_ui_label={}, os_environment=""):
MetisseClass.__init__(
self,
device_id=device_id,
relatively_path=relatively_path,
pyqt6_ui_label=pyqt6_ui_label,
os_environment=os_environment,
)
def __call__(self):
# Your custom script implementation goes here
if __name__ == "__main__":
script_obj = script_example("01234567(test_uid)", None, None, "android")
script_obj()
Here's a function designed to generate a sample project. After running the code, it will create a sample project in the current directory, including a simple script, a device name folder automatically generated after simulating a connection to a device, an icon folder (containing test examples), and a default script GUI (which requires connection to a device to use).
from metisse.metisse import MetisseClass
import metisse.example.generate_example as ex
if __name__ == '__main__':
ex.create_example_py_file()
For more detailed information about the available methods and their usage, please refer to the MetisseClass Methods documentation.
Contributing
We welcome contributions to Metisse! If you'd like to contribute, please follow these steps:
- Fork the repository
- Create a new branch for your changes
- Make your changes and test them thoroughly
- Commit your changes and push them to your forked repository
- Create a pull request with a detailed description of your changes
- Please make sure to follow the code style and conventions used in the project.
License
Metisse is 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
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 metisse-0.0.5.tar.gz.
File metadata
- Download URL: metisse-0.0.5.tar.gz
- Upload date:
- Size: 2.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ece0662dac9928222bf6eb95df31dbeb00108934d45abbc32972a947edf3f95
|
|
| MD5 |
99d06b4d001c8e68093ab5d2e148736b
|
|
| BLAKE2b-256 |
68dab2d6ea6d61b8a4993d316ee1c0685aaea61eef82375032abbe35ebd90031
|
File details
Details for the file metisse-0.0.5-py3-none-any.whl.
File metadata
- Download URL: metisse-0.0.5-py3-none-any.whl
- Upload date:
- Size: 2.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0a4e201d5f9b7d21d1db455eea2950a5f9946484d415c57a6471285051fcce4
|
|
| MD5 |
8ea9a413923192edf6ba196c799dc7ca
|
|
| BLAKE2b-256 |
18f16e53b6594e3b761dfc86d333093fead2010ce5c754fe8f2a20fa662b331c
|