[digiKam-users] Opening digiKam plugins interface to Python...

Gilles Caulier caulier.gilles at gmail.com
Wed Jun 3 14:50:03 BST 2020


Le mer. 3 juin 2020 à 15:20, Chris Green <cl at isbd.net> a écrit :
>
> On Wed, Jun 03, 2020 at 02:18:14PM +0200, Gilles Caulier wrote:
> > Hi all users,
> >
> > I'm looking for the future, and i finalize step by step the C++
> > digiKam plugin interface (DPlugins). If you look in my github account,
> > you will see activity about to port external tools to DPlugins. i also
> > well advanced to port older Photo Layout Editor kipi plugins to cmake,
> > Qt5, and Dplugins.
> >
> > I also take a look in Krita code, and i seen than Krita C++ plugin
> > interface is open to Python. As i can see this not require too much
> > C++ code to do it.It's eventually a way to go in the future, if
> > external contributors will join the game and write new extension for
> > digiKam.
> >
> > https://docs.krita.org/en/user_manual/python_scripting/krita_python_plugin_howto.html
> > https://docs.krita.org/en/user_manual/python_scripting/introduction_to_python_scripting.html
> > https://docs.krita.org/en/reference_manual/preferences/python_plugin_manager.html
> >
> > I'm not a specialist in Python. I already write small scripts in the
> > past, especially for the bundling (aka AppImage, MacOS,  and Windows).
> > But my top level skill since 35 years now is C/C++ of course.
> >
> > What do you think about this? As this language is more and more
> > popular, do you want to see Python capabilities in digiKam or not ?
> >
> > The topic is open. In bugzilla, we always have a wish about to add
> > scripting feature...
> >
> I'd certainly welcome the ability to write Digikam plugins/addons in
> Python as it's my language of choice for most things except really
> simple scripts.
>
> What sort of 'hooks' into Digikam are likely to be available?

I don't see a limit. Typically we have currently this kind of plugin
interface avaialble for C++ :

Generic tools (view, batch, import, etc...)
Webservice tools
Image editor
File IO (aka file loader/writter)
Raw import
BQM

Here i write demo of C++ plugin interface, with code examples.

I plan to add more, as face engine for ex... But for this one, we need
to see current GoSC 2020 project done.

Gilles Caulier

>
> --
> Chris Green


More information about the Digikam-users mailing list