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 with 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
:
from hub_sdk import HUBClient
# Initialize the client with your credentials
client = HUBClient(credentials)
Operations
Below are code snippets demonstrating create, read, update, and delete (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()
🚀 Ultralytics HUB
Experience seamless AI with Ultralytics HUB ⭐, the all-in-one platform for data visualization, model training, and deployment using YOLO11 🚀. Effortlessly transform images into actionable insights without writing any code. Bring your AI visions to life with our user-friendly Ultralytics App and cutting-edge tools. Start your journey for Free today!
💡 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!
📄 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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hub_sdk-0.0.20.tar.gz
.
File metadata
- Download URL: hub_sdk-0.0.20.tar.gz
- Upload date:
- Size: 39.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fe48a6baf280fe8bf6aa872b6d51395a32557c066dfbc5af4e81dc6d0289f2f |
|
MD5 | f970843ec75bd1b1acb268788b349903 |
|
BLAKE2b-256 | 2d2fb6b5728938f4fda03031f6b2d8d1a20deeaafed2672179359e9ff1e167d9 |
Provenance
The following attestation bundles were made for hub_sdk-0.0.20.tar.gz
:
Publisher:
publish.yml
on ultralytics/hub-sdk
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
hub_sdk-0.0.20.tar.gz
- Subject digest:
0fe48a6baf280fe8bf6aa872b6d51395a32557c066dfbc5af4e81dc6d0289f2f
- Sigstore transparency entry: 184843973
- Sigstore integration time:
- Permalink:
ultralytics/hub-sdk@764d8b80770871cefbdf55a737dfc44cf95402a1
- Branch / Tag:
refs/heads/main
- Owner: https://github.com/ultralytics
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
publish.yml@764d8b80770871cefbdf55a737dfc44cf95402a1
- Trigger Event:
push
- Statement type:
File details
Details for the file hub_sdk-0.0.20-py3-none-any.whl
.
File metadata
- Download URL: hub_sdk-0.0.20-py3-none-any.whl
- Upload date:
- Size: 44.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28f03470306fd4b08fc322f065840e5f37a9c72867e971d24b12c535e8704a8d |
|
MD5 | f4bff43fd8a3d7178164128de496c6d4 |
|
BLAKE2b-256 | eefbc326860844beb4ef2bc02e40322be02e2fdb228f31366773039af82f5365 |
Provenance
The following attestation bundles were made for hub_sdk-0.0.20-py3-none-any.whl
:
Publisher:
publish.yml
on ultralytics/hub-sdk
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
hub_sdk-0.0.20-py3-none-any.whl
- Subject digest:
28f03470306fd4b08fc322f065840e5f37a9c72867e971d24b12c535e8704a8d
- Sigstore transparency entry: 184843981
- Sigstore integration time:
- Permalink:
ultralytics/hub-sdk@764d8b80770871cefbdf55a737dfc44cf95402a1
- Branch / Tag:
refs/heads/main
- Owner: https://github.com/ultralytics
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
publish.yml@764d8b80770871cefbdf55a737dfc44cf95402a1
- Trigger Event:
push
- Statement type: