gplugin/gplugin
Clone
Summary
Browse
Changes
Graph
Bump the minimum meson to 0.61.0 and clean up some warnings
2022-04-18, Gary Kramlich
55291fd09e7d
Bump the minimum meson to 0.61.0 and clean up some warnings
Testing Done:
Compiled.
Reviewed at https://reviews.imfreedom.org/r/1350/
Title: Python3 Plugins
Slut: python3
## Python3 Plugins
>
You **MUST** have the Python3 loader plugin installed and working as well as
>
the gobject-introspection package for GPlugin installed to use Python3
>
plugins.
### Example Python Plugin
Like all plugins in GPlugin, Python plugins must also implement the
`gplugin_query`
,
`gplugin_load`
, and
`gplugin_unload`
functions.
The following is a basic Python plugin.
```python
import
gi
gi
.
require_version
(
"GPlugin"
,
"0.0"
)
from
gi.repository
import
GPlugin
def
gplugin_plugin_query
():
return
GPlugin
.
PluginInfo
(
id
=
"gplugin-python/basic-plugin"
,
abi_version
=
0x01020304
,
name
=
"basic plugin"
,
authors
=
[
"author1"
],
category
=
"test"
,
version
=
"version"
,
license_id
=
"license"
,
summary
=
"summary"
,
website
=
"website"
,
description
=
"description"
,
)
def
gplugin_plugin_load
(
plugin
):
return
True
def
gplugin_plugin_unload
(
plugin
):
return
True
```