pyhf icon indicating copy to clipboard operation
pyhf copied to clipboard

Create plugin system for expanding pyhf API

Open matthewfeickert opened this issue 2 years ago • 1 comments
trafficstars

Summary

Having a plugin system would allow for projects like @malin-horstmann's https://github.com/malin-horstmann/pyhf_pymc to automatically extend the pyhf API by just being installed in the same Python virtual environment as pyhf. This would also allow for the pyhf core API to exist without having to maintain lots of other extensions inside of https://github.com/scikit-hep/pyhf/ and then allow other developers to move more quickly on their own ideas.

I don't know how to create a plugin system, but https://hatch.pypa.io/latest/plugins/about/ looks like a good place to start. @kratsg if you've already got experience here please let me know.

Additional Information

N/A

Code of Conduct

  • [X] I agree to follow the Code of Conduct

matthewfeickert avatar Jun 12 '23 17:06 matthewfeickert

Henry has noted to me that repo-review has a section on writing plugins for it that might be useful as a starting point for comparison.

matthewfeickert avatar Jun 12 '23 18:06 matthewfeickert