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.9.tar.gz
(27.7 kB
view details)
Built Distribution
hasty-0.3.9-py3-none-any.whl
(34.3 kB
view details)
File details
Details for the file hasty-0.3.9.tar.gz
.
File metadata
- Download URL: hasty-0.3.9.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d85ffee2ce3160199ee5e9d5a549b30f27b34d7aa1573af661c40b42ac91d83d |
|
MD5 | 6fcbe610440c57d990fdc727697f55bb |
|
BLAKE2b-256 | 47f56a849ced334af494a49994676a9e53a6b38accda0dc837a3fab02954620a |
File details
Details for the file hasty-0.3.9-py3-none-any.whl
.
File metadata
- Download URL: hasty-0.3.9-py3-none-any.whl
- Upload date:
- Size: 34.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bb7ec02d320ad384ba1679b839527ce31a17550f4dce27102089a2a52f0b68c |
|
MD5 | 506b56de5a9d97282f27b184f0f31253 |
|
BLAKE2b-256 | a4ff1445ca5d89b0cd000c454efa1bc5cfacd5dd4718b6e177c393068e406b0b |