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"])
Product appraisal
response = client.appraise_product(
image_url="https://example.com/shoe.jpg",
description="Black Nike Air Max 90 on a white background",
country="US",
lens_mode="high",
max_items=20,
)
print(response["appraisal"]["price_lower"], response["appraisal"]["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-1.0.1.tar.gz
(4.0 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-1.0.1.tar.gz.
File metadata
- Download URL: sails_sdk-1.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
691c4e5535691cd8a2d8a97fcdac27ff76754e1f1362f10783312df4d4b8a5f2
|
|
| MD5 |
90d05e143b8e515390f1a7541b04a4d3
|
|
| BLAKE2b-256 |
87c338c6cc24c646128e483b833b9206a211d267e88233543e95174081fe7e3c
|
File details
Details for the file sails_sdk-1.0.1-py3-none-any.whl.
File metadata
- Download URL: sails_sdk-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 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 |
96fe69eaf07ef0d1bdbc81f09e43e8b254595510aa626cb6e184ce1734152018
|
|
| MD5 |
bc17aa2d4b6aed36b9ec9aadb826de51
|
|
| BLAKE2b-256 |
0cffde902ea7edaafd200e11adfb938680ebbf68a64683c9c41d2c6a83b0dc8c
|