Part 1 — Hello world! [From your Python script to Supervisely APP]
In this part, we will show you how you can turn any Python code into a Supervisely application
Last updated
Was this helpful?
In this part, we will show you how you can turn any Python code into a Supervisely application
Last updated
Was this helpful?
Let's start with a simple python code.
src/main.py
Config file. We. Need. It. To add a Python application to Supervisely, let's create a configuration file for it. An example of a config file:
config.json
docker_image
— SDK version you were using, it doesn't matter in this app
main_script
— path from repository root
to main.py
(entry point)
In this step, we create a repository and add our code to it.
1. Generate new personal token
Select "repo" access scope and click "Generate token" button. Save generated token — you will need it later.
2. Create GitHub repository
3. Push app to repository
Make sure you have collected all the required files:
src/main.py
config.json
Then just push files to git:
We've almost reached the finish line! It remains to add the application to the Ecosystem.
2. Add your application
In the Github repository URL
field, specify the link to the directory containing the application's config.json
In the GitHub personal access token
field, paste your token that you saved in step 1
Pay attention to important fields:
Open GitHub → Settings → Developer settings →
Click Generate new token
Let's create a new GitHub repository that we will use to deploy a new Supervisely application. Create a :
1. Go to the
Pay attention: