Python

supervisely

Latest version: v6.68.35

PyUp actively tracks 471,271 Python packages for vulnerabilities to keep your Python environments secure.

Scan your dependencies

6.68.35

6.68.34

6.68.33

6.68.32

6.68.31

6.68.30

<img width="1131" alt="SLY clients" src="https://user-images.githubusercontent.com/106374579/204510470-754d9e82-788e-4fb3-b00d-dfc90fd4f5e9.png">
<img width="1133" alt="Screenshot 2022-11-29 at 10 53 00" src="https://user-images.githubusercontent.com/106374579/204510683-4aaa1e11-e934-4268-8365-f140028508d0.png">

6.68.29

6.68.28

6.68.27

6.68.26

6.68.25

6.68.24

6.68.23

6.68.22

6.68.21

6.68.20

6.68.19

6.68.18

6.68.17

6.68.16

6.68.15

6.68.14

6.68.13

6.68.12

6.68.11

6.68.10

6.68.9

sly.Video / Pointcloud / PointcloudeEpisode / Project

![point-cloud-project](https://user-images.githubusercontent.com/12828725/199011049-6a35b45a-fb8d-460b-af3b-3539e08308e4.png)
![point-cloud-project_square](https://user-images.githubusercontent.com/12828725/199022135-4161917c-05f8-4681-9dc1-b5e10ee8bb0f.png)

6.68.8

6.68.7

6.68.6

6.68.5

6.68.4

- serve model - improve messages to task output
- fix last chunk logging in api.file.download_directory

6.68.3

6.68.2

- inference template with cleaned comments
- fix predefined colors

6.68.1

6.68.0

- add "imaging/colors.json.gz" in package data
- add new method sly.fs.is_on_agent
- add new method sly.fs.parse_agent_id_and_path
- add new method sly.color. get_predefined_colors
- simplify env variables - TEAM_ID, WORKSPACE_ID, USER_LOGIN, PROJECT_ID, DATASET_ID, FOLDER, FILE
- InstanceSegmentation(Inference) - work in progress
- add demo test script: download_file_from_team_files.py

6.67.6

6.67.5

6.67.4

6.67.3

sly.env.project_id()
sly.env.dataset_id()
sly.env.team_files_folder()
sly.env.team_files_file()

6.67.2

6.67.1

6.67.0

6.66.13

6.66.12

6.66.11

6.66.10

6.66.9

the issue was originally found and reported for crop method

6.66.8

6.66.7

+ add os.path.sep automatically to the end of the source directory path in api.file.download_directory

6.66.6

6.66.5

6.66.4

6.66.3

6.66.2

6.66.1

6.66.0

6.65.0

6.64.4

6.64.3

6.64.2

6.64.1

6.64.0

6.63.12

6.63.11

6.63.10

6.63.9

6.63.8

6.63.7

6.63.6

6.63.5

6.63.4

6.63.3

6.63.2

6.63.1

6.63.0

- Add new package numerize to show number of video frames as a compact string
- New methods in utils to parse fields like updated_at, created_at and generate readable datetime strings from them
- Internal _set_id method to update ID received from server for ObjClass, TagMeta, Tag, VideoTag, etc
- ObjClassCollection - refresh_ids_from to update ids inplace
- DatasetInfo image_preview_url
- Improve function annotations in SDK
- Api.project.pull_meta_ids to update IDs from server to existing project meta object
- New methods in VideoInfo - duration (secs), duration_hms, frames_count_compact, frames_count_compact
- Add processing path in VideoInfo
- Add optional argument raise_error in get_info_by_id methods
- Api.video.tag.add / get_list by videoId
- Api.video.tag.remove
- Special exception to show in dialog window in UI apps (DialogWindowError)
- UI apps with favicon
- It is possible now to build UIs without HTML
- Automatic widget ids in UIs
- Widget Identity
- Widget DatasetThumbnail
- Widget SelectTagMeta
- Widget VideoThumbnail
- Improve button widget
- Improve Card widget - add slot widget and default lock message
- Fix cards height in container widget (flex)
- Add flexbox widget for horizontal layouts
- Improve ProjectThumbnail widget
- Add new widgets: SelectTeam, SelectWorkspace, SelectProject, SelectDataset, SelectItem, SelectTagMeta
- Improve table widget: better handle None cell values, new methods add/remove rows, update cell value
- Improve widget “video player”
- Add widget VideoThumbnail
- All widget can be hidden / disabled
- projectInfo.get_url

6.62.0

- api.workspace.get_info_by_id add optional flag raise_error if not found
- api.dataset.get_info_by_id add optional flag raise_error if not found
- api.module.get_list_all_pages - add optional limit
- api.images.get_list - add optional limit
- new widgets: SelectTeam / SelectWorkspace / SelectProject / SelectDataset / SelectItem
- improve Select widget

6.61.6

6.61.5

6.61.4

6.61.3

6.61.2

6.61.1

6.61.0

6.60.2

6.60.1

fill_rectangle param in draw_pretty()
get_thickness() in draw_pretty()
get_font() in label

6.60.0

6.59.2

6.59.1

6.59.0

6.58.4

6.58.3

6.58.2

6.58.1

6.58.0

6.57.0

6.56.9

6.56.8

6.56.7

6.56.6

6.56.5

6.56.4

6.56.3

6.56.2

6.56.1

6.56.0

6.55.4

6.55.3

6.55.2

6.55.1

6.55.0

6.54.0

6.53.0

6.52.2

6.52.1

6.52.0

6.51.3

6.51.2

6.51.1

6.51.0

6.50.1

6.50.0

6.49.0

6.48.0

6.47.5

6.47.4

6.47.3

6.47.2

6.47.1

6.47.0

6.46.0

6.45.0

6.44.0

6.43.0

6.42.5

6.42.4

6.42.3

6.42.2

6.42.1

6.42.0

6.41.0

6.40.2

6.40.1

6.40.0

6.39.1

6.39.0

6.38.0

6.37.1

6.37.0

6.36.0

usage in this tutorial https://developer.supervise.ly/getting-started/first-steps/into-to-python-sdk

6.35.2

6.35.1

6.35.0

6.34.7

6.34.6

6.34.5

6.34.4

6.34.3

6.34.2

6.34.1

6.34.0

6.33.0

6.32.1

6.32.0

6.31.0

6.30.0

6.29.0

6.28.0

6.27.2

6.27.1

6.27.0

6.26.0

6.25.0

6.24.0

6.23.1

6.23.0

will cover wider range of configurations for private instances of Supervisely

6.22.0

6.21.1

6.21.0

6.20.0

6.19.0

6.18.1

6.18.0

- fix protobuf
- download project without images
- new widgets for Apps Engine

6.17.4

6.17.3

6.17.2

6.17.1

6.17.0

6.16.0

6.15.0

6.14.0

6.13.0

6.12.0

6.11.2

6.11.1

6.11.0

6.10.1

6.10.0

6.9.2

6.9.1

6.9.0

6.8.5

6.8.4

6.8.3

6.8.2

6.8.1

6.8.0

6.7.22

Debug example:
py
image_id = 2844092
image = api.image.download_np(image_id)
sly.image.write("/Users/maxim/Downloads/2844092.nrrd", image)

bytes = sly.image.write_bytes(image, ".nrrd")

path = "/Users/maxim/Downloads/64.nrrd"
image = sly.image.read(path)
sly.image.write("/Users/maxim/Downloads/64_02.nrrd", image)

6.7.21

6.7.20

6.7.19

6.7.18

6.7.17

6.7.16

6.7.15

6.7.14

6.7.13

6.7.12

6.7.11

6.7.10

6.7.9

6.7.8

6.7.7

6.7.6

6.7.5

6.7.4

6.7.3

6.7.2

6.7.1

6.7.0

6.6.3

6.6.2

6.6.1

New field in video info tuple: `info.custom_data`
New method: `api.video.update_custom_data`

py
import supervisely as sly

server_address = "my-secret-name.com"
api_token = "api-token-copied-from-supervisely-account-settings"
api = sly.Api(server_address, api_token)
video_id = 2797204

info = api.video.get_info_by_id(video_id)
print(info.custom_data)

my_custom_json = {
"name": "max",
"mmm": 123
}
api.video.update_custom_data(video_id, my_custom_json)
info_new = api.video.get_info_by_id(video_id)
print(info_new.custom_data)

6.6.0

Usage (both cases are valid):
py
import supervisely_lib as sly


or

py
import supervisely as sly

6.5.0

6.4.10

6.4.9

6.4.8

6.4.7

6.4.6

6.4.5

6.4.4

How to reproduce:

bash
docker run --rm -it supervisely/base-py-sdk:6.1.83 python
import supervisely_lib as sly
from cv2 import _registerMatType


Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name '_registerMatType' from 'cv2.cv2' (/usr/local/lib/python3.8/dist-packages/cv2/cv2.cpython-38-x86_64-linux-gnu.so)


New versions lead to broken opencv upgrade

Info2022.01.21 09:15:30
cont_msg=Requirement already satisfied: scikit-image>=0.17.1 in /usr/local/lib/python3.8/dist-packages (from supervisely==6.1.83->-r /sessions/12812/repo/requirements.txt (line 1)) (0.17.1)
Info2022.01.21 09:15:30
cont_msg=Collecting opencv-python-headless>=4.1.1
Info2022.01.21 09:15:30
cont_msg= Using cached opencv_python_headless-4.5.5.62-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (47.7 MB)

6.4.3

6.4.2

6.4.1

for agent migration to `pip install supervisely` instead of copying SDK sourced during dockerimage build

6.4.0

6.3.2

6.3.1

6.3.0

* `AppService.periodic` functional added
* `update_fields` decorator added
* API method `video.add_tag` added
* API method `api.video_api.url` method added

6.2.9

6.2.8

6.2.7

6.2.6

6.2.5

6.2.4

6.2.3

6.2.2

Docker image: `supervisely/base-py-sdk:6.2.2`

6.2.1

Docker image: `supervisely/base-py-sdk:6.2.1`

6.2.0

Dockerimage: `supervisely/base-py-sdk:6.2.0`

1.1.4

None

1.1.3

None

1.1.2

None

1.1.1

None

1.1.0

1.0.9

1.0.8

1.0.7

1.0.6

None

1.0.5

None

1.0.4

1.0.3

1.0.2

1.0.1

1.0.0

0.1.7

0.1.6

0.1.5

0.1.4

0.1.3

0.1.2

0.1.1

0.1.0

0.0.9

0.0.8

0.0.7

0.0.6

0.0.5

0.0.4

0.0.3

0.0.2

0.0.1

Links

Releases

Has known vulnerabilities