-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDK Timeline #4827
Comments
Hi! Thank you for the interest for this part of CVAT. I cannot provide any time estimates, but we are actively working on this feature, and a big part of functionality is already covered in the existing PRs: #4813, #4819. We'll publish PyPI packages as soon as we can. Are there any specific requirements or other thoughts from your side, that you would like to discuss? Related: #4637 |
Hi there, I have seen that there is active development on the SDK in those branches, but the (understandable) lack of documentation makes installation difficult. I think for my particular case we will just end up writing our own wrapper around the API to do what we need, but if any help is needed with documentation I would be glad to help. |
You can find development installation instructions here: https://github.com/opencv/cvat/blob/develop/cvat-sdk/developer_guide.md#how-to-generate-api . Basically, you need to know that there is a handwritten and an auto-generated parts. To generate the code, you need to do the following: git clone https://github.com/opencv/cvat
cd cvat/
# Set up python
python -m virtualenv venv
. venv/bin/activate
# Install server and generator requirements
pip install -r cvat/requirements/development.txt
pip install -r cvat-sdk/gen/requirements.txt
# Obtain REST API schema
python manage.py spectacular --file schema.yml && mkdir -p cvat-sdk/schema/ && mv schema.yml cvat-sdk/schema/
# Generate SDK API code
cd cvat-sdk/
gen/generate.sh
# Install packages
cd ../
pip install -e cvat-sdk/ # '-e' if you want to edit the code without reinstalling the package
pip install -e cvat-cli/ After this, you'll be able to use both updated CLI and SDK. SDK tests and code examples are here: https://github.com/opencv/cvat/blob/develop/tests/python/sdk/test_tasks.py#L86 If you have an opportunity, please share what you think about the SDK API - both generated REST API wrappers (at |
Thank you very much! Is there a base image from which I can start from and run the above? |
No, currently there is no such image. The generated code relies on the latest develop branch changes on the server schema output, so you need to pull the develop branch. |
Awesome, thank you very much. We will try it out today. |
I was wondering if there is a status/timeline for the SDK?
The text was updated successfully, but these errors were encountered: