Leibniz-HBI / dabapush

Data Base pusher for social media data (Twitter for the beginning) – pre-alpha version
https://pypi.org/project/dabapush/
MIT License
0 stars 0 forks source link

Refactor plug-in system for setuptools entry points #6

Closed pekasen closed 1 year ago

pekasen commented 2 years ago

Status Quo

Right dabapush relies on a home baked solution for plug in mangement which involves a YAML-file in the installation directory. Thus, updating/installing/removing plug ins is cumbersome and error-prone. This applies especially for the smo-database plug-ins which are not linked into the repository as a sub-repo.

Solution

Setuptools' entrypoint system allows for dynamic registration of plug-ins. We can discover them at run-time. Thus, we can remove the hard dependency on smo-database and also enable other parties for use their own plug-ins.