Python Script Policy

Not applicable

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.

Solved Solved
0 2 542
1 ACCEPTED SOLUTION

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

https://docs.apigee.com/api-platform/develop/resource-files

View solution in original post

2 REPLIES 2

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

https://docs.apigee.com/api-platform/develop/resource-files

Hi, as you can see, the IT sphere is now very important and there are few professionals in it. In your case, I would recommend taking courses and studying the Guide to Perceptron Algorithm in Python. You will also be able to understand how machine learning and artificial intelligence work. I recommend this course, as I myself took it.