Skip to main content

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.

Metadata

Release files for picsha 0.2.1

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

Source distribution (sdist)

Source distribution for picsha 0.2.1
File Size Uploaded Provenance Actions
picsha-0.2.1.tar.gz 4.1 kB Without provenance Details for picsha-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 9.6 kB

Release files / picsha-0.2.1.tar.gz

Download URL picsha-0.2.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
57fe76b8ffb5ae745c6bdc37d5dac5cae95d1345413cb7f0ecb08fd61cdf9542
BLAKE2b-256 checksum
How to use checksums
8353402d4ddbe06956aa041a963cae22ec1bbe9a6c5e61fd2209b4c2f8196a43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.14.5 Darwin/25.5.0

Release files / picsha-0.2.1-py3-none-any.whl

Download URL picsha-0.2.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8406951dd4fbdbf63c6ab81e3bf2b76bb74132daefab5c09ce1d473b75c4002c
BLAKE2b-256 checksum
How to use checksums
33132fd70f43c6b0d9fa7af1b6a576015adfeea1a4b7aef896f893b78f590e92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.14.5 Darwin/25.5.0

Security for picsha 0.2.1

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