Showing results for 
Show  only  | Search instead for 
Did you mean: 

requests version in extensions?

DynaMight Guru
DynaMight Guru

For historical reasons, I have been adding
"install_requires": ["requests>=2.6.0"],
in the plugin.json file of extensions.

Now, this inclusion inflates the extension more than 600 KB. A simple extension can have a few KBs, but with the "install_requires" above, it goes above 610 KB...

I believe this requirement has been supported for a very long time, so I'm taking it out from my extensions. But does anyone know of any associated risk?

Antonio Sousa

Dynatrace Guru
Dynatrace Guru

In Extensions Framework 1.0 the requests library is included with the plugin agent and is automatically added to the sys.path. Unless you need a specific version, you can get rid of it and just use the one that comes with the plugin agent.


I was a little afraid that older ActiveGates would still have older versions of requests. But I have just checked AG 1.237, and it comes with requests 2.25.1. So I agree there is no risk 🙂

Antonio Sousa

Featured Posts