Skip to content

Developer API

Palm edited this page Oct 17, 2024 · 3 revisions

EasyAsCommands API

EasyAsCommands has its own API that developers can include in their plugins to integrate their plugin with EAC.


Adding to Plugin

  1. Download eac_api.py latest release.
  2. Drop it into your plugin at the same level as your entry point script.
  3. Add the following import to the top of your script:

    from .eac_api import CommandManager
  4. Now set up your CommandManager class similarly to your plugin class.

    from .eac_api import CommandManager
    
    class EAC(CommandManager):
        def __init__(self):
            super().__init__()
        # Registry methods should be initialized.
    # Everything else can go wherever.
  5. And you're done!

Usage

For usage and documentation, see API Documentation.


Clone this wiki locally