python-user-agents icon indicating copy to clipboard operation
python-user-agents copied to clipboard

Making it lazy loaded

Open sassanh opened this issue 10 years ago • 1 comments
trafficstars

Hi,

Thanks for this great package, I have a suggestion that I think improves its usages. In case of using it as middleware it'd be great if you could make it lazy loaded so that it doesn't process request if it wasn't needed, it could only occur when server needs user-agent information.

Thanks

sassanh avatar Apr 11 '15 11:04 sassanh

That's a good idea. Mind making a PR? :)

selwin avatar Apr 11 '15 14:04 selwin