How to import external library while writing server script?

Hi @Anas_Saifi1,

Import package does not work on the server script doctype.

Rewrite the content in simpler terms for ERPNext:

Also, make sure to understand how the API functions on the server side.

Thank You!