Skip to main content

Ultralytics HUB Client SDK.

Project description


🚀 Ultralytics HUB-SDK

Welcome to the Ultralytics HUB-SDK documentation! 📖 Our aim is to guide you through the installation process and help you get started with using HUB-SDK for your machine learning endeavors.

🛠 Quickstart: Installing HUB-SDK

Ready to dive into HUB-SDK? Follow these steps to set it up on your machine.

Prerequisites

Ensure you have the following requirements met before proceeding:

  • Python: HUB-SDK requires Python. Download and install Python from python.org if it's not already installed on your system.

  • Git (Optional): If you're looking to install HUB-SDK via the GitHub repository, you'll need Git. Grab Git from git-scm.com if you don't have it.

Installation Methods

Choose from the following options to install HUB-SDK:

Installing from PyPI

For the latest stable release of HUB-SDK, use PyPI by running the following command:

pip install hub-sdk

🚀 Usage

Let's begin using the HUB-SDK to perform CRUD operations for Models, Datasets, and Projects.

1. Import HUB-SDK

Start by importing the HUBClient from the hub_sdk module:

from hub_sdk import HUBClient

2. Authenticate with Credentials

Set your credentials using one of the following methods:

Using API Key
# Authenticate using an API key
credentials = {"api_key": "YOUR_API_KEY"}

or

Using Email and Password
# Authenticate using your email and password
credentials = {"email": "YOUR_EMAIL", "password": "YOUR_PASSWORD"}

3. Initialize the HUBClient

With your credentials ready, initialize the HUBClient:

# Initialize the client with your credentials
client = HUBClient(credentials)

CRUD Operations

Below are code snippets demonstrating CRUD operations for Projects, Models, and Datasets.

Project Operations

Managing projects is simple:

# Manipulate a project with the given ID
project = client.project("PROJECT_ID")

# Create a new project with the specified data
create_project = project.create_project("PROJECT_DATA")

# Update the existing project with new data
update_project = project.update("UPDATE_DATA")

# Delete the project
deleted_project = project.delete()

Model Operations

Handle models effortlessly:

# Engage with a model using the given ID
model = client.model("MODEL_ID")

# Create a new model providing the necessary data
create_model = model.create_project("MODEL_DATA")

# Update the model using provided data
update_model = model.update("UPDATE_DATA")

# Remove the model from the system
deleted_model = model.delete()

Dataset Operations

Datasets operations are straightforward:

# Interact with a dataset using the specified ID
dataset = client.dataset("DATASET_ID")

# Establish a new dataset given the data
create_dataset = dataset.create_project("DATASET_DATA")

# Adjust the dataset with updated information
update_dataset = dataset.update("UPDATE_DATA")

# Erase the dataset
deleted_dataset = dataset.delete()

💡 Contribute

We're thrilled to have you contribute to Ultralytics' open-source projects! Your support and contributions make a world of difference. Get involved by checking out our Contributing Guide, and share your feedback through our Survey. A massive thank you 🙏 to everyone who contributes!

Ultralytics open-source contributors

📄 License

Ultralytics provides two types of licensing options:

  • AGPL-3.0 License: An OSI-approved open-source license. Ideal for academics, researchers, and enthusiasts, this license promotes sharing knowledge and collaboration. See the LICENSE file for details.

  • Enterprise License: Tailored for commercial applications, this license allows for the integration of Ultralytics software into proprietary products and services. If you're considering using our solutions commercially, please get in touch through Ultralytics Licensing.

🤝 Contact

  • Submit Ultralytics bug reports and feature requests via GitHub Issues.
  • Join our Discord for assistance, questions, and discussions with the community and team!

Ultralytics GitHub space Ultralytics LinkedIn space Ultralytics Twitter space Ultralytics YouTube space Ultralytics TikTok space Ultralytics Instagram space Ultralytics Discord

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

hub-sdk-0.0.3.tar.gz (34.5 kB view details)

Uploaded Source

Built Distribution

hub_sdk-0.0.3-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

Details for the file hub-sdk-0.0.3.tar.gz.

File metadata

  • Download URL: hub-sdk-0.0.3.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for hub-sdk-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8a125e0ee0e0e1673447b727f9035530a6ffea6a6db290013563bb448ac841e5
MD5 c20b67f7643c5c999c1d72adca15c34b
BLAKE2b-256 150a1db24824f40a18c16d91659ffea968d12b6b95dcbe9fd5100cd90d21ac64

See more details on using hashes here.

File details

Details for the file hub_sdk-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: hub_sdk-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 37.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for hub_sdk-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 91021a41307faeb695ef808beb770c90195609832d036cabb75284b068022936
MD5 5dad5ff2ebca606571b6632107708e1e
BLAKE2b-256 2fe0b3db53becb3c0fa6ad9ddf4d047f4b7dbe85987594bcdd4d1b247f951522

See more details on using hashes here.

Supported by

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