The Plugify Python Language Module is a powerful extension for the Plugify project, enabling developers to write plugins in Python and seamlessly integrate them into the Plugify ecosystem. Whether you're a Python enthusiast or wish to leverage existing Python libraries for your plugins, this module provides the flexibility and ease of use you need.
- Python-Powered Plugins: Write your plugins entirely in Python, tapping into the rich ecosystem of Python libraries and tools.
- Seamless Integration: Integrate Python plugins effortlessly into the Plugify system, making them compatible with plugins written in other languages.
- Cross-Language Communication: Communicate seamlessly between Python plugins and plugins written in other languages supported by Plugify.
- Easy Configuration: Utilize simple configuration files to define Python-specific settings for your plugins.
- Python 3.12 is required.
- Plugify Framework Installed
You can install the C++ Language Module using the Plugify plugin manager by running the following command:
plg install plugify-module-python3.12
-
Install dependencies:
a. Windows
Setting up CMake tools with Visual Studio Installer
b. Linux:
sudo apt-get install -y build-essential cmake ninja-build
c. Mac:
brew install cmake ninja
-
Clone this repository:
git clone https://github.com/untrustedmodders/plugify-module-python3.12.git --recursive
-
Build the Python language module:
mkdir build && cd build cmake .. cmake --build .
-
Integration with Plugify
Ensure that your Python language module is available in the same directory as your Plugify setup.
-
Write Python Plugins
Develop your plugins in Python using the Plugify Python API. Refer to the Plugify Python Plugin Guide for detailed instructions.
-
Build and Install Plugins
Put your Python scripts in a directory accessible to the Plugify core.
-
Run Plugify
Start the Plugify framework, and it will dynamically load your Python plugins.
from plugify.plugin import Plugin
class ExamplePlugin(Plugin):
def plugin_start(self):
print('ExamplePlugin::plugin_start')
def plugin_end(self):
print('ExamplePlugin::plugin_end')
For comprehensive documentation on writing plugins in Python using the Plugify framework, refer to the Plugify Documentation.
Feel free to contribute by opening issues or submitting pull requests. We welcome your feedback and ideas!
This Python Language Module for Plugify is licensed under the MIT License.