How to make library to import new project

I have a piece of code and I want to reuse it by creating libraries and putting in when making new projects. Can I do that and how? When creating the installation file (* .rhi) can add library files? I want to install it on another device.

import rhinoscriptsyntax as rs
def Com_number(Num1,Num2):
    if Num1>Num2:return Num1
    else:return Num2

Please help me!

If you save your script as Then you can import it form another script :

import azure

my_num = azure.Com_number(2,3)

I currently copy the Python files along with the rui files when distributing to new machines

Thank you!
Then you build rhi file install how to packed them into one file rhi