Skip to main content

A Python SDK for Sayari

Project description

Sayari-analytics Python Library

fern shield

The Sayari Python SDK provides convenient access to the Sayari API from applications written in Python.

Documentation

Please see our docs site for more info and or to get in touch with us.

Installation

pip install --upgrade sayari

Usage

from sayari.client import Sayari

client = Sayari(
    client_id="YOUR_CLIENT_ID",
    client_secret="YOUR_CLIENT_SECRET",
)

Async Client

from sayari.client import AsyncSayari

client = AsyncSayari(
    client_id="YOUR_CLIENT_ID",
    client_secret="YOUR_CLIENT_SECRET",
)

OAuth

The Sayari client includes automatic OAuth access token retrieval, refreshing it as needed. Simply specify the client_id and client_secret (shown above) and your access token will be used for every authenticated request.

Beta Status

This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning the package version to a specific version. This way, you can install the same version each time without breaking changes.

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

sayari-0.0.275.tar.gz (106.7 kB view hashes)

Uploaded Source

Built Distribution

sayari-0.0.275-py3-none-any.whl (260.5 kB view hashes)

Uploaded Python 3

Supported by

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