Hasty API client library
Project description
Python library for the Hasty API.
Installation
pip install hasty
Usage Example
Establish initial connection with Hasty:
from hasty import Client
API_KEY = "your_key"
h = Client(api_key=API_KEY)
Get projects
projects = h.get_projects()
print(projects)
>> ['Project(id="9a5ac730-9b08-477d-8f20-e7245baf0e29", name="African Wildlife")']
Create dataset
buffalo_ds = project.create_dataset("buffalo")
print(buffalo_ds)
>> Dataset(id="66ee13d5-aaf7-4fac-862c-45f44eff802a", name="buffalo")
Upload image
img = project.upload_from_file(buffalo_ds,
"./buffalo/001.jpg")
print(img)
>> Image(id="ebf88007-134b-4bce-9799-995504b2b0ee", dataset_name="buffalo", name="001.jpg")
For more information check our documentation
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
hasty-0.3.12.tar.gz
(29.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
hasty-0.3.12-py3-none-any.whl
(35.9 kB
view details)
File details
Details for the file hasty-0.3.12.tar.gz.
File metadata
- Download URL: hasty-0.3.12.tar.gz
- Upload date:
- Size: 29.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad81803023723abc67aeaf6637c290d8a83e2eaf06e779cc0b4aca1b06e17d7f
|
|
| MD5 |
98cb1bb6aec63ddd57d5ca61d1f86fe1
|
|
| BLAKE2b-256 |
c0b0e0822b7368eaaf59cd957a486486afae95e9f5775398b8774bd0b412e034
|
File details
Details for the file hasty-0.3.12-py3-none-any.whl.
File metadata
- Download URL: hasty-0.3.12-py3-none-any.whl
- Upload date:
- Size: 35.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7259edbab0b70ab341a537868db276be7da144abec4d3fcde7c5fa26976a80e3
|
|
| MD5 |
9eec851fd768557ae59a7f17d7a1f0d6
|
|
| BLAKE2b-256 |
729fc1fa1cbcd358c87458c27b974d258b8e06eb533db01c2ab935017c2f618f
|