autojs python version
Project description
AutoJS Python Project
Overview
This project provides a set of Python functions to automate GUI interactions using pyautogui and perform OCR (Optical Character Recognition) using pytesseract.
Project Structure
autojs_python_project/
├── .gitignore
├── README.md
├── pyproject.toml
├── poetry.lock
├── src/
│ └── autojs_py/
│ ├── __init__.py
│ ├── opearation.py
│ ├── ocr.py
│ └── ...
├── tests/
│ ├── __init__.py
│ ├── test_opearation.py
│ └── ...
└── docs/
└── ...
Installation
- Install Tesseract OCR
-
Windows: Download the installer from Tesseract at UB Mannheim and follow the installation instructions.
-
Linux:
sudo apt-get update sudo apt-get install tesseract-ocr
-
macOS:
brew install tesseract
2 Install use pip:
pip install autojs-py
Development
Clone the repository:
git clone https://github.com/angleyanalbedo/your-repo-name.git
cd your-repo-name
Install dependencies using Poetry:
sh poetry install
Usage
GUI Automation
The opearation.py file contains functions to perform various mouse and keyboard actions:
Click(x, y)LClick(x, y)RClick(x, y)DClick(x, y)Send(text)Press(key)LongClick(s)tclick(template)tlclick(template)trcick(template)dclick(template)Swap(pos, pos2)tswap(template, direct)clicktext(text)
OCR
The ocr.py file contains functions to perform OCR on images:
ocr2str(image_path)ocr2box(img)
Example
Here is an example of how to use the clicktext function:
from autojs_py.opearation import clicktext
clicktext("example text")
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 autojs_py-0.1.0.tar.gz.
File metadata
- Download URL: autojs_py-0.1.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.7 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9693479362c4b29a30f7fa3184a69e69f2cfbb1f2b2864a6d32a1766da7c70c
|
|
| MD5 |
5d8d6937d441fd43c9e9e0d420c8a5e2
|
|
| BLAKE2b-256 |
c7cb59b88b941f9cfd6c735879dca68c67615b3e9c3f1d36bdf5199e37203e69
|
File details
Details for the file autojs_py-0.1.0-py3-none-any.whl.
File metadata
- Download URL: autojs_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.7 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
122f414246664b524c4dc9eaea6528c1ee0cd2030ee276f4871c73facf8289da
|
|
| MD5 |
29f6feac11ca65c60cac006d9c76cc43
|
|
| BLAKE2b-256 |
4782d4c8187e302cdd3ec155a08fa1c707b7e75b97a74b50002ddb7d8454e433
|