Giter Club home page Giter Club logo

superannotate-python-sdk's Introduction

SuperAnnotate Python SDK

Python Versions License Changelog

Welcome to the SuperAnnotate Python Software Development Kit (SDK), which enables Python programmers to create software that incorporates services of the platform and effortlessly integrates SuperAnnotate into their AI process.

Resources

Authentication

from superannotate import SAClient
# by environment variable SA_TOKEN
sa_client = SAClient()
# by token
sa_client = SAClient(token='<team token>')
# by config file
# default path is ~/.superannotate/config.json
sa_client = SAClient(config_path='~/.superannotate/dev_config.json')

Using superannotate

from superannotate import SAClient


sa_client =SAClient()

project = 'Dogs'

sa_client.create_project(
        project_name=project,
        project_description='Test project generated via SDK',
        project_type='Vector'
    )

sa_client.create_annotation_class(
    project=project,
    name='dog',
    color='#F9E0FA',
    class_type='tag'
)

sa_client.attach_items(
        project=project,
        attachments=[
            {
                'url': 'https://drive.google.com/uc?export=download&id=1ipOrZNSTlPUkI_hnrW9aUD5yULqqq5Vl',
                'name': 'dog.jpeg'
            }
        ]
    )

sa_client.upload_annotations(
        project=project,
        annotations=[
            {
                'metadata': {'name': 'dog.jpeg'},
                'instances': [
                    {'type': 'tag', 'className': 'dog'}
                ]
            }
        ]
    )

sa_client.get_annotations(project=project, items=['dog.jpeg'])

Installation

SuperAnnotate python SDK is available on PyPI:

pip install superannotate

The package officially supports Python 3.7+ and was tested under Linux and Windows (Anaconda ) platforms.

For more detailed installation steps and package usage please have a look at the tutorial

Supported Features

  • search/get/create/clone/update/delete projects
  • search/get/create/delete folders
  • assign folders to project contributors
  • upload items to a project from a local or AWS S3 folder
  • attach items by URL or from an integrated storage, meanwhile keeping them secure in your cloud provider
  • get integrated cloud storages
  • upload annotations (also from local or AWS S3 folder)
  • delete annotations
  • set items annotations statuses
  • get/download/export annotations from a project (also to a local or AWS S3 folder)
  • invite/search team contributors or add contributors to a specific project
  • search/get/copy/move items in a project
  • query items using SA Query Language
  • define custom metadata for items and upload custom values (query based on your custom metadata)
  • upload priority scores
  • get available subsets (sets of segregated items), query items in a subset or add items to a subset
  • assign or anassign items to project contributors
  • download an image that has been uploaded to project
  • search/create/download/delete project annotation classes
  • search/download models
  • run predictions
  • convert annotations from/to COCO format
  • convert annotation from VOC, SuperVisely, LabelBox, DataLoop, VGG, VoTT, SageMaker, GoogleCloud, YOLO formats
  • CLI commands for simple tasks

Questions and Issues

For questions and issues please use this repo’s issue tracker on GitHub or contact [email protected].

superannotate-python-sdk's People

Contributors

dshabin avatar vaghinakdev avatar hovnatan avatar agyurjin avatar vahagntka avatar ero1311 avatar tumanyanv avatar rcmangasaryan avatar davitavagyan avatar rcmanga avatar xalgorithm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.