In this tutorial we will send a function to Upsonic Server. In Upsonic you are able to send any kind of function but in this example we will send the basic function to demonstrate.

1) Install Upsonic Python SDK

First of all we need to install Upsonic, you can do it via:

pip3 install upsonic

2) Connect to Upsonic

You can get the credential in this code via your Upsonic Server Home page.

from upsonic import UpsonicOnPrem
upsonic = UpsonicOnPrem('https://********', '*****')

3) Send Your First function

def sum(a, b):
    return a + b

upsonic.dump("math.basics.sum", sum)