Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sails_sdk-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

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

Hashes for sails_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 311d08f97f1310c3b7470a85fa6acd1efece47d5a2326afbdf73f7eaf1ab94e6
MD5 38f3a3a69a78be06ea4b1a94ca5135b5
BLAKE2b-256 6403c7633c51bc6f37e62af2ab8c7f885c0cb157966439d8b82ef9a3216a1a29

See more details on using hashes here.

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

Hashes for sails_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf5de2e84a7e7de7aa88ff34f3e6089691a2058497450a52e5130fbc6a571644
MD5 7cf7eb078b474b1311f61a3890b0e17f
BLAKE2b-256 365f395ef8657f22c7a1118f7628c8abe3f563f9c73637ef99654c98f57dc37e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page