Intro
In python you can use the KOT Cloud Free to save your functions, classes, objects and variables. With this you can access anything from any other python runtime.
Let's Connect to Cloud
Firstly, we will install the KOT library;
pip install kot
Creating an cloud key;
KOT cloud_key
cloud-*********
Sending to Cloud
from kot import KOT_Cloud
cloud = KOT_Cloud("YOUR_CLOUD_KEY")
# -- CONNECTION --
@cloud.active
def get_address():
return "Hello World I am from KOT Cloud"
price = 15.2
cloud.set("price", price)
Getting from Cloud
from kot import KOT_Cloud
cloud = KOT_Cloud("YOUR_CLOUD_KEY")
# -- CONNECTION --
print(cloud.get("get_address")())
print(cloud.get("price"))
Hello World I am from KOT Cloud
15.2
For more you can read the documentation.
Top comments (0)