-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plug-in API #80
Comments
This gist shows how one can use setuptools entry points to detect all available plug-ins, and how to load specific plug-ins from a config file. |
If we ever outgrow our home-grown plugin loader, consider giving https://pluggy.readthedocs.io/en/latest/ a look. |
We already have a few hooks (after_entry_update_hooks, after_feed_update_hooks), and support for callable plugins in make_reader(..., plugins=...). Next steps:
Closing this issue, since all of these will be done later. |
There are things that are hardcoded and might work better as plug-ins. This issue is to catalogue these things, and eventually do something about them (or not).
The main things one would need to hook into are the Reader, the web app, and the CLI.
Enclosure tag proxy
Hooks into:
serve
commandHooks into:
Requests parser
Should remain the only parser (so, not a plug-in).
Hooks into:
Tumblr GDPR plug-in
Hooks into:
Duplicate enclosure removal
For #78.
Hooks into:
Duplicate entry removal
For #79.
Hooks into:
Either would probably need direct access to the database, and possibly some way to store metadata.
Feed user titles
Hooks into:
Read/unread entry status
This is part of the core functionality, but could be modeled as a plugin (shouldn't, though; listing it here for completeness).
Hooks into:
Metrics
For #68.
Hooks into:
regex_mark_as_read plugin
For #79.
Hooks into:
feed_entry_dedupe plugin
For #79.
Hooks into:
The text was updated successfully, but these errors were encountered: