I have few functions in Python that are used across 8 different applications. So, I'd like to create a common functions file with a separate class and use it in several application.
What is the best approach. Below is my sample code.
common_func.py
import time
class common_funcs(object):
    
    def func1(func):
        def ret_func(*args, **kwargs):
            statement (....)
            while True:
            odc = ****
            if odc == 100:
                statement (....)
                continue
            break
        return rsp
    return ret_func
    @func1
    def nda_cal(ar1, ar2):
        res = xxxx(ar1, ar2)
        return res
    
    def func3():
        statement 1.... 
        return xyz
    
    def func4():
        return abc
Now I'd like to import func4 of this class in the file common_func.py into other application's code.
How can I do it efficiently?
Thank you in advance.
 
    