the python macro package
Project description
Envoke
Envoke is a Python package that allows users to create and run keyboard macros with optional delays and randomness. It's designed to be simple yet flexible, providing a straightforward API for automating key presses.
Installation
To install Envoke, run the following command:
pip install envoke
Quick Start
Here's a simple example to get you started:
from envoke import envoke
# Create a macro sequence
e = envoke()
e.enter(interval=0.5).key('a', interval=0.1)
# Run the macro
e.run(start_delay=3)
Advanced Usage
Envoke also supports more advanced features, including continuous macros and random interval differences. See the /examples directory for more use cases.
Examples
Basic Usage
# See examples/basic_usage.py
Advanced Features
# See examples/advanced_features.py
Using Number Keys
# See examples/number_keys_example.py
Documentation
Will work on this eventually. For right now /examples should suffice.
Contributing
Contributions to Envoke are welcome! I don't currently have a CONTRIBUTING.md so just submit them freely.
Packaging
To package Envoke for distribution, follow these steps:
# Ensure you are in the root directory of the project
python -m build
After the build is successful, you can upload the package to PyPI using twine:
python -m twine upload dist/*
License
Envoke is released under the MIT License.
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 envoke-0.3.1.tar.gz.
File metadata
- Download URL: envoke-0.3.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2e96cf763da640be87c6e10a72b0ed531441fd96a00731cbff160121f31092d
|
|
| MD5 |
6fcc415f2243e1b3bcc04a1747e0bf77
|
|
| BLAKE2b-256 |
63052e1b08f63d732b6ba33c40d813432a3c09db48a03b271e9791a369e1af4f
|
File details
Details for the file envoke-0.3.1-py3-none-any.whl.
File metadata
- Download URL: envoke-0.3.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d6cb9803cefa3e35885b5150bc8bd9c450a81403c7eca53fd3e16a87b2dc65d
|
|
| MD5 |
3967c7050dda3de68a588bef97cd5a08
|
|
| BLAKE2b-256 |
c4e48e29b3f3d232716d44a29cbc14d5120566569ae4596a53d9059aa9844e59
|