I'm trying to figure out the best way to register a large number services for my Pyramid app. I'm using the Pyramid Services library (
https://github.com/mmerickel/pyramid_services) and I'm registering all my services within my app's
main function. The problem that I'm starting to realize is that all this services initialization code in my
main function is getting unwieldy. At this point, I'm trying to figure out a better way to register services that's a bit more modular.
Ideally, I would like my app to automatically register services when the given package is included in my app, however, I'm not sure on the best way to do this. One thought I had was to use the ApplicationCreated event and register the services based on this callback, but this just doesn't seem right (plus I'm not sure Pyramid Services can register service *after* the app has been initialized).
Thanks for any direction you can offer.