How do i import another python script (an helper script) to my python policy script.
This is a use case to keep the code clean and easy to understand, rather than clutter up one single script.
Answer by Rahul M · May 01, 2018 at 03:00 PM
Did you look at https://docs.apigee.com/api-platform/reference/policies/python-script-policy
You basically define your "reusable" scripts in the file referenced via IncludeURL and your primary script in file referenced via the ResourceURL
For some utilities which are truly reusable at the Apigee org level, you can upload them as an organization resource and refer to them in the IncludeURL. Please refer