importing python packages for the python script policy

Not applicable

Can someone from apigee share the recommended way to import the third party python packages such as json schema in apigee to be used by the python script policy.

Solved Solved
0 4 2,197
1 ACCEPTED SOLUTION

rmishra
Participant V

If there is a Jython version of your library available, you can upload that library (jar file) as an organization resource

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

You should then be able to refer a class within the library using a standard "import" statement

View solution in original post

4 REPLIES 4

rmishra
Participant V

If there is a Jython version of your library available, you can upload that library (jar file) as an organization resource

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

You should then be able to refer a class within the library using a standard "import" statement

Should this JAR be added as a 'py' or 'java' resource? Do we need to reference it in PythonScriptPolicy as a resource?

Not applicable
Dos anyone succeed in using json library in python script. It seems annoying if it is not possible.  

I have the same problem, but with ssl module