Python client for the Sails Developer API
Project description
Sails Python SDK
Python client for the Sails Developer API.
Install
pip install sails-sdk
Usage
from sails_sdk import SailsClient
client = SailsClient(api_key="sails_sk_...")
response = client.predict(
image_url="https://example.com/shoe.jpg",
description="Black Nike Air Max 90 on a white background",
limit=10,
)
print(response["price_lower"], response["price_upper"])
By default the client targets https://sails.live/api/v1. Override it if needed:
client = SailsClient(
api_key="sails_sk_...",
base_url="https://sails.live/api/v1",
)
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
sails_sdk-0.1.0.tar.gz
(3.5 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
File details
Details for the file sails_sdk-0.1.0.tar.gz.
File metadata
- Download URL: sails_sdk-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
311d08f97f1310c3b7470a85fa6acd1efece47d5a2326afbdf73f7eaf1ab94e6
|
|
| MD5 |
38f3a3a69a78be06ea4b1a94ca5135b5
|
|
| BLAKE2b-256 |
6403c7633c51bc6f37e62af2ab8c7f885c0cb157966439d8b82ef9a3216a1a29
|
File details
Details for the file sails_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sails_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf5de2e84a7e7de7aa88ff34f3e6089691a2058497450a52e5130fbc6a571644
|
|
| MD5 |
7cf7eb078b474b1311f61a3890b0e17f
|
|
| BLAKE2b-256 |
365f395ef8657f22c7a1118f7628c8abe3f563f9c73637ef99654c98f57dc37e
|