Skip to main content

Python library for the Hasty API.

PyPI version Documentation Status CI

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

Metadata

Release files for hasty 0.3.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hasty 0.3.12
File Size Uploaded Provenance Actions
hasty-0.3.12.tar.gz 29.4 kB Without provenance Details for hasty-0.3.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hasty 0.3.12
File Interpreter ABI Platform Actions
hasty-0.3.12-py3-none-any.whl Python 3 none any Details for hasty-0.3.12-py3-none-any.whl

Total release size: 65.3 kB

Release files / hasty-0.3.12.tar.gz

Download URL hasty-0.3.12.tar.gz
Size 29.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ad81803023723abc67aeaf6637c290d8a83e2eaf06e779cc0b4aca1b06e17d7f
BLAKE2b-256 checksum
How to use checksums
c0b0e0822b7368eaaf59cd957a486486afae95e9f5775398b8774bd0b412e034
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / hasty-0.3.12-py3-none-any.whl

Download URL hasty-0.3.12-py3-none-any.whl
Size 35.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7259edbab0b70ab341a537868db276be7da144abec4d3fcde7c5fa26976a80e3
BLAKE2b-256 checksum
How to use checksums
729fc1fa1cbcd358c87458c27b974d258b8e06eb533db01c2ab935017c2f618f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for hasty 0.3.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page