PyMacro can automate your tasks inside of Python.
Project description
pymacro
PyMacro is a partial wrapper around pyautogui. PyMacro can automate your tasks all inside of Python - give it a try!
Features
- Object oriented
- Extra utility functions
- Asynchronous support
Example Usage
from pymacro import Macro
macro = Macro()
macro.type("Hello, world!", interval=.15)
macro.run(wait=2)
Async Usage
import asyncio
from pymacro import Macro
macro = Macro()
macro.type("Hello, world!", interval=.15)
async def run_macro():
await macro.async_run(wait=2)
asyncio.run(run_macro())
Executing Functions
from pymacro import Macro
def fn():
print("This function is running.")
macro = Macro()
macro.execute(fn, times=5) # execute this function 5 times
macro.run()
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
pymacro-0.0.2.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file pymacro-0.0.2.tar.gz
.
File metadata
- Download URL: pymacro-0.0.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 105bb7d7e8018d73fa782f0591eaf6e14c88bb9032e04ab0b2af61ac147bb9aa |
|
MD5 | fe55d248017875bf1a7d34214e43ccd4 |
|
BLAKE2b-256 | 6efd30bbee82577a3f3cdd85e2f6c4a6d29e23a5b92bf32639f68fbab1161460 |
File details
Details for the file pymacro-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: pymacro-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30bfe36197cbd75adcf5768057cb0d3290c320383703a23be6e154f2404326d7 |
|
MD5 | cd84a1697133743ee539f6622968ae8f |
|
BLAKE2b-256 | 79e8307ad6a0e53c869cb8994c567c07f21f753c6f5971a427d9d9a699e05349 |