I am using a module called eventregistry, which is a toolkit for using an external API.
When the connection is made with the server, I call this method on their module (imported as e_r).
er = e_r.EventRegistry(apiKey="1234")
The module method then internally prints:
using user provided API key for making requests
Event Registry host: http://eventregistry.org
Which just clogs up my console, which I only want to print on when one of my data sources throws an error. I'm doing multiple requests to this datasource, and its really getting very messy in the console!
Is anyone aware of some kind of "stopPrint()" function that allows me to call methods and run functions, but stop them printing to console?
E.g.
er = stopPrint(e_r.EventRegistry(apiKey="1234"))