Create app from any py-script
Introduction
Step 1. Python script
import os
from dotenv import load_dotenv
from art import tprint
# load ENV variables for debug
# has no effect in production
if sly.is_development():
load_dotenv("local.env")
def main():
name = sly.env.user_login()
print("Hello World! This app is run by the user:")
tprint(name)
if __name__ == "__main__":
main()Step 2. From script to Supervisely App
Repository structure
App configuration


Step 3. How to add your private app
Add app from git repository

Add app directly to the supervisely instance via supervisely-cli
Step 4. Run your app in Supervisely

Last updated