Official Python SDK for Picsha AI - Store, Encode, Understand.
Project description
Picsha AI Python SDK 🐍
The official Python client for Picsha AI. Designed specifically for data scientists, computational biologists, and ML engineers.
Installation
We recommend using poetry:
poetry add picsha
Or pip:
pip install picsha
Quickstart
import picsha
client = picsha.Client(api_key="sk_your_key_here")
# 1. Semantic Search
results = client.search(
query="fluorescent cancer cell cultures",
mode="ai" # Hybrid Vector Search
)
# 2. Get transformed URLs for ML pipelines
for asset in results.assets:
url = asset.generate_url(width=512, height=512, format="webp")
print(url)
Asynchronous Support
For high-throughput workloads, an AsyncClient is included out-of-the-box:
import picsha
import asyncio
async def main():
async with picsha.AsyncClient(api_key="sk_your_key_here") as client:
result = await client.search(query="cancer cells", mode="ai")
print(f"Found {result.total_count} assets.")
asyncio.run(main())
See the notebooks/ directory for full examples integrating with Pandas, PyTorch, and SciPy.
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
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
File details
Details for the file picsha-0.2.0.tar.gz.
File metadata
- Download URL: picsha-0.2.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.14.5 Darwin/25.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ce0d26490503e056e606e7ee5127a2547cd9b04d80fd128a5a4b66c2826d3d2
|
|
| MD5 |
ef4bd7f76f35141695acd3e6ac76b6fd
|
|
| BLAKE2b-256 |
6632d375a4077210c8a7f5f471ffe1d692de72e29dfc44fc4c7633b83d8f2710
|
File details
Details for the file picsha-0.2.0-py3-none-any.whl.
File metadata
- Download URL: picsha-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.14.5 Darwin/25.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcfae72d8fbe86c27a9d5af01af39415e57a1ca13d58332ae71630e35b2908be
|
|
| MD5 |
833932d9a8e0b817fb04469a2182d2a1
|
|
| BLAKE2b-256 |
cf8252469227d2f3695239a73854610c50d3e5478ebc524f3b901d1b1bf2b40c
|