Skip to content

Commit 2dc0a09

Browse files
authored
Merge pull request #622 from superannotateai/develop
Develop
2 parents 39d53ac + 79534f2 commit 2dc0a09

File tree

197 files changed

+45356
-1694
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+45356
-1694
lines changed

CHANGELOG.rst

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,33 @@ History
66

77
All release highlights of this project will be documented in this file.
88

9+
4.4.13 - June 04, 2023
10+
_______________________
11+
12+
**Updated**
13+
14+
- ``SAClient.download_annotations()`` Replaced `___objects.json` and `___pixel.json` postfixes to `.json`.
15+
- ``SAClient.set_approval_statuses()`` Added Document project support.
16+
- ``SAClient.convert_project_type()`` Added required argument `convert_to`.
17+
- ``SAClient.import_annotation()`` Replaced `___objects.json` and `___pixel.json` postfixes to `.json`.
18+
- ``SAClient.download_export()`` Replaced `___objects.json` and `___pixel.json` postfixes to `.json`.
19+
20+
**Removed**
21+
22+
- ``SAClient.convert_json_version()`` method.
23+
924
4.4.12 - April 23, 2023
10-
______________________
25+
_______________________
1126

1227
**Updated**
1328

1429
- ``SAClient.get_annotations_per_frame()`` Added interpolation of polygonal and polyline annotations.
15-
30+
1631
**Fixed**
1732

1833
- ``SAClient.add_contributors_to_project()`` method.
1934
- ``SAClient.run_prediction()`` method.
20-
35+
2136
**Removed**
2237

2338
- ``SAClient.create_project_from_metadata()`` method.

README.rst

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Welcome to the SuperAnnotate Python Software Development Kit (SDK), which enable
1818
Resources
1919
---------------
2020

21-
- API Reference and User Guide available on `Read the Docs <https://superannotate.readthedocs.io/en/stable/superannotate.sdk.html>`__
21+
- API Reference and User Guide available on `Read the Docs <https://superannotate.readthedocs.io/en/stable/index.html>`__
2222
- `Platform documentation <https://doc.superannotate.com/>`__
2323

2424

@@ -33,8 +33,18 @@ Authentication
3333
# by token
3434
sa_client = SAClient(token='<team token>')
3535
# by config file
36-
# default path is ~/.superannotate/config.json
37-
sa_client = SAClient(config_path='~/.superannotate/dev_config.json')
36+
# default path is ~/.superannotate/config.ini
37+
sa_client = SAClient(config_path='~/.superannotate/dev_config.ini')
38+
39+
40+
config.ini example
41+
------------------
42+
.. code-block:: python
43+
44+
[DEFAULT]
45+
SA_TOKEN = <Token>
46+
LOGGING_LEVEL = INFO
47+
3848
3949
Using superannotate
4050
-------------------

docs/source/api_reference/helpers.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ _________________________________________________________________
1313
.. autofunction:: superannotate.import_annotation
1414
.. autofunction:: superannotate.export_annotation
1515
.. autofunction:: superannotate.convert_project_type
16-
.. autofunction:: superannotate.convert_json_version
1716

1817
----------
1918

docs/source/cli_client.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,6 @@ To initialize CLI (and SDK) with team token:
3333
----------
3434

3535

36-
.. _ref_create_server:
37-
38-
Creating a server
39-
~~~~~~~~~~~~~~~~~~
40-
41-
This will create a directory by the given name in your current or provided directory:
42-
43-
.. code-block:: bash
44-
45-
superannotatecli create-server --name <directory_name> --path <directory_path>
46-
47-
----------
48-
49-
5036
.. _ref_create_project:
5137

5238
Creating a project

docs/source/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
User guide <userguide/index>
1616
API Reference <api_reference/index>
1717
CLI Reference <cli_client>
18-
SA Server <sa_server>
1918
History <changelog_link>
2019
LICENSE.rst
2120

docs/source/sa_server.rst

Lines changed: 0 additions & 118 deletions
This file was deleted.

requirements.txt

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
1-
pydicom>=2.0.0
2-
boto3>=1.14.53
3-
requests==2.28.2
4-
requests-toolbelt>=0.9.1
5-
aiohttp>=3.8.1
1+
pydantic~=1.10
2+
aiohttp~=3.8
3+
boto3~=1.26
4+
opencv-python~=4.7
5+
packaging~=23.1
6+
plotly~=5.14
7+
email-validator~=2.0
8+
pandas~=1.3
9+
ffmpeg-python~=0.2
10+
pillow~=9.5
11+
aiofiles==23.1.0
12+
requests==2.30.0
613
tqdm==4.64.0
7-
pillow==9.4.0
8-
matplotlib>=3.3.1
9-
xmltodict==0.12.0
10-
opencv-python>=4.4.0.42
11-
wheel>=0.40.0
12-
packaging>=20.4
13-
plotly>=4.1.0
14-
ffmpeg-python>=0.2.0
1514
fire==0.4.0
1615
mixpanel==4.8.3
17-
pydantic>=1.10.7
18-
setuptools>=57.4.0
19-
email-validator>=1.0.3
2016
jsonschema==3.2.0
21-
pandas>=1.1.4
22-
aiofiles==0.8.0
23-
Werkzeug==2.2.3
24-
Jinja2==3.1.2

requirements_extra.txt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
Sphinx==6.1.3
2-
Jinja2==3.1.2
3-
tox==4.4.5
1+
setuptools~=67.7
2+
wheel~=0.40
3+
Sphinx==6.2.1
4+
tox==4.5.1
45
sphinx_rtd_theme==1.2.0
5-
furo==2022.12.7
6-
jaraco.tidelift==1.5.0
6+
furo==2023.3.27
7+
jaraco.tidelift==1.5.1
78
sphinx-notfound-page==0.8.3
8-
sphinx_inline_tabs==2022.1.2b11
9-
pytest==7.2.1
10-
pytest-xdist==3.2.0
9+
sphinx_inline_tabs==2023.4.21
10+
pytest==7.3.1
11+
pytest-xdist==3.2.1
1112
pytest-parallel==0.1.1
1213
pytest-cov==4.0.0
13-
pytest-rerunfailures==10.2
14+
pytest-rerunfailures==11.1.2
15+
jsoncomparison==1.1.0

src/superannotate/__init__.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
import logging
22
import os
33
import sys
4-
import typing
5-
6-
__version__ = "4.4.12"
74

5+
__version__ = "4.4.13b1"
86

97
sys.path.append(os.path.split(os.path.realpath(__file__))[0])
108

119
import logging.config # noqa
1210
import requests # noqa
1311
from packaging.version import parse # noqa
14-
from superannotate.lib.app.input_converters import convert_json_version # noqa
1512
from superannotate.lib.app.input_converters import convert_project_type # noqa
1613
from superannotate.lib.app.exceptions import AppException # noqa
17-
from superannotate.lib.app.input_converters import convert_json_version # noqa
1814
from superannotate.lib.app.input_converters import convert_project_type # noqa
1915
from superannotate.lib.app.input_converters import export_annotation # noqa
2016
from superannotate.lib.app.input_converters import import_annotation # noqa
2117
from superannotate.lib.app.interface.sdk_interface import SAClient # noqa
22-
from superannotate.lib.app.server import SAServer # noqa
23-
from superannotate.lib.app.server.utils import setup_app # noqa
2418
from superannotate.lib.core import PACKAGE_VERSION_INFO_MESSAGE # noqa
2519
from superannotate.lib.core import PACKAGE_VERSION_MAJOR_UPGRADE # noqa
2620
from superannotate.lib.core import PACKAGE_VERSION_UPGRADE # noqa
@@ -29,22 +23,13 @@
2923
SESSIONS = {}
3024

3125

32-
def create_app(apps: typing.List[str] = None) -> SAServer:
33-
setup_app(apps)
34-
server = SAServer()
35-
return server
36-
37-
3826
__all__ = [
3927
"__version__",
4028
"SAClient",
41-
"SAServer",
42-
"create_app",
4329
# Utils
4430
"enums",
4531
"AppException",
4632
# converters
47-
"convert_json_version",
4833
"import_annotation",
4934
"export_annotation",
5035
"convert_project_type",

src/superannotate/lib/app/input_converters/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
from .conversion import convert_json_version
21
from .conversion import convert_project_type
32
from .conversion import export_annotation
43
from .conversion import import_annotation
54

65

76
__all__ = [
8-
"convert_json_version",
97
"convert_project_type",
108
"export_annotation",
119
"import_annotation",

0 commit comments

Comments
 (0)