Skip to main content

Suite Standard Library

Project description

superb-ai-label

Build Version License: MIT

superb-ai-label is the Software Development Kit for managing Label with Superb Platform.

Installation

pip install --upgrade superb-ai-label

Requirements

Python 3.8+

Documentation

You can also find the documentation for superb-ai-label on the website.

Authentication

An Access Key is required to use the python client. This can be generated from the Settings > Access menu on the Superb AI Curate website. For more details on access key issuance and management, you can check the Access Key Management documentation. The Team Name refers to the organization name that your personal account belongs to.

import os
from spb_label import sdk

project_name="Project Name"
team_name = os.environ.get("TEAM_NAME")
access_key = os.environ.get("ACCESS_KEY")
client = sdk.Client(project_name=project_name, team_name=team_name, access_key=access_key)

Resource Description

Projects

from spb_label import sdk

client = sdk.Client()
# Get all projects
count, projects = client.get_projects()
# Set project to client what to handle
client.set_project(projects[0])
# Get project name and id
client.get_project_name()
client.get_project_id()

# Get all project users
count, users = client.get_project_users()

# Get project tags
count, tags = client.get_project_tags()

Labels

from spb_label import sdk
from spb_label.utils import SearchFilter

client = sdk.Client()
client.set_project(name="YOUR PROJECT NAME")

# Get labels
filter = SearchFilter(project=client.project)

# Status filter
filter.status_is_any_one_of = ["WORKING", "SKIPPED"]
# Assignee filter
filter.assignee_is_any_one_of = ["ASSIGNEE EMAIL"]
# Tag filter
filter.tag_name_all = ["TAG NAME"]

count, labels, next = client.get_labels(
  filter=filter,
  cursor=next
)

Contributing

Feel free to report issues and suggest improvements.
Please email us at support@superb-ai.com

License

The MIT License (MIT)

Copyright (c) 2020, Superb AI, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

superb-ai-label-0.22.1.tar.gz (55.0 kB view details)

Uploaded Source

File details

Details for the file superb-ai-label-0.22.1.tar.gz.

File metadata

  • Download URL: superb-ai-label-0.22.1.tar.gz
  • Upload date:
  • Size: 55.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for superb-ai-label-0.22.1.tar.gz
Algorithm Hash digest
SHA256 c4341e8ce34a70255ffd1ff42b1bc37942139c3229664f188bf6c24668c7b423
MD5 3fac81222164962e6278df74777d838d
BLAKE2b-256 43810d1b9dcb163d8374613617b1ae808caf515fb8a114eb918e24345d68b05a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page