Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sparkai

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sparkai

SparkAI official Python client library

  • 0.3.0
  • PyPI
  • Socket score

Maintainers
1

sparkai-python-client

The official SparkAI Python client

Installation

$ pip install --upgrade sparkai

Usage

import sparkai.SparkAIClient
client = SparkAIClient('PROVIDED_API_KEY')
url = https://picsum.photos/200/300
instructions = 'Annotate any object in the photo'
token = client.create_engagement_from_image_url(url, instructions=instructions)

Validating webhook signature

client.validate_webhook_secret(request_secret_header, request_body, self_secret)
  • request_secret_header: the whole header Spark-Signature sent with the webhook request
  • request_body: the whole JSON object body sent witth the webhook request
  • self_secret: customer's webhook token

Returns True if the signature is valid

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc