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.1.tar.gz
(3.5 kB
view hashes)