# tmuxp.plugin.TmuxpPlugin

- **Module:** tmuxp.plugin
- **Package:** tmuxp
- **Language:** Python
- **Kind:** class
- **Source:** https://github.com/tmux-python/tmuxp/blob/153acdf6ff1268b14d3d03ed488f545a7123c8f1/src/tmuxp/plugin.py#L174
- **Page:** https://libtmux.org/en/py/stable/workspace/reference/tmuxp-plugin-tmuxpplugin/

Base class for a tmuxp plugin.

## Members

### Common operations

- [`after_window_finished`](/en/py/stable/workspace/reference/tmuxp-plugin-tmuxpplugin-after_window_finished/) (method): Provide a window hook after creating the window.
- [`before_workspace_builder`](/en/py/stable/workspace/reference/tmuxp-plugin-tmuxpplugin-before_workspace_builder/) (method): Provide a session hook previous to creating the workspace.
- [`on_window_create`](/en/py/stable/workspace/reference/tmuxp-plugin-tmuxpplugin-on_window_create/) (method): Provide a window hook previous to doing anything with a window.
- [`reattach`](/en/py/stable/workspace/reference/tmuxp-plugin-tmuxpplugin-reattach/) (method): Provide a session hook before reattaching to the session.

### Other members

- [`before_script`](/en/py/stable/workspace/reference/tmuxp-plugin-tmuxpplugin-before_script/) (method): Provide a session hook after the workspace has been built.
- [`__init__`](/en/py/stable/workspace/reference/tmuxp-plugin-tmuxpplugin-__init__/) (method): Initialize plugin.
