Load Python Bundle right away from the local file system rather than an HTTP server

No worries!
I did some “code reading”. As mentioned over here , there is no explicit mechanism to directly load bundles from diskspace, but a caching mechanism is there, and we can utilize it. (the code works for v5.1.

The steps are as follows,

  1. find the md5sum of the custom_middleware_bundle name we have specified at app config. I used this handy command printf $(BUNDLE_NAME) | md5sum -z | cut -d ' ' -f 1 (replace the bundle name accordingly)
  2. then create the bundle, and unzip it into /opt/tyk/middleware/bundles/<md5sum of bundle name>/
  3. at the end make sure there is this files /opt/tyk/middleware/bundles/<md5sum of bundle name>/manifest.json and the remaining files from the bundle zip, at the destination.

NB: if you insist one can remove the bundling part with simply copying the source files and manifest.json over there.

Thank you!