Skip to content
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

Make it possible to implement plugins externally as entry-points? #265

Open
pradyunsg opened this issue Dec 10, 2021 · 3 comments
Open

Make it possible to implement plugins externally as entry-points? #265

pradyunsg opened this issue Dec 10, 2021 · 3 comments
Labels

Comments

@pradyunsg
Copy link

I see that there are a lot of requests to implement additional plugins for this package. It seems like there is sufficient interest that it would make sense to make it possible to implement plugins outside of this package, that this package can then utilize.

https://amir.rachum.com/blog/2017/07/28/python-entry-points/ does a really good job of explaining how to use the Python packaging mechanism (entry points) for doing something like this!

@pradyunsg pradyunsg changed the title Make it possible to implement plugins externally? Make it possible to implement plugins externally as entry-points? Dec 10, 2021
@psss
Copy link
Owner

psss commented Dec 11, 2021

Hi, support for enabling plugins from custom location is already there. See the general config section of the documentation for details. The only thing you need to do is provide path to your plugins directory. Is there anything missing in the current implementation?

@psss psss added the plugins label Dec 11, 2021
@pradyunsg
Copy link
Author

Being able to provide plugins via the entry points mechanism would allow making pip-installable plugins, making it possible to have reusable plugins that can be collaborated on outside of this project.

@psss
Copy link
Owner

psss commented Dec 15, 2021

I'm not familiar with the entry points machanism, but from what I understand this would provide some more flexibility and consistency, which definitely makes sense to me. Such improvements would definitely be welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants