Skip to main content

Easy access to windsor.ai APIs

Project description

pywindsorai

pywindsorai is a python package makes it easier to interact with windsor.ai's API via Python.

Features

✅ Easy access to windsor.ai APIs

✅ Lightweight (single dependency - requests)

✅ Supports both python 2.7+ and 3

Usage

Installation

pip install pywindsorai

Registration

You need an API key to access windsor.ai's APIs. Register your account first, and then get the API key. For more details check out our official API documentation and this article.

Minimal Example

from pywindsorai.client import Client
from pywindsorai.enums import LAST_7D
from pywindsorai.enums import FIELD_SOURCE, FIELD_CAMPAIGN, FIELD_CLICKS

api_key = 'xxx'  # Get it from your windsor.ai account. It's recommended to store and get this securely, for example an env variable.

# Setup a client object with the API key
client = Client(api_key)

# Call the /connectors API. Response will be a python dict (parsed from the json response recieved).
orders = client.connectors(date_preset=LAST_7D, fields=[FIELD_SOURCE, FIELD_CAMPAIGN, FIELD_CLICKS])

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

pywindsorai-0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

pywindsorai-0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pywindsorai-0.1.tar.gz.

File metadata

  • Download URL: pywindsorai-0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/54.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.2

File hashes

Hashes for pywindsorai-0.1.tar.gz
Algorithm Hash digest
SHA256 9c326cadc113bed3c8447432ee1b95bfb4bacc07f32721e4311cde210fc29e84
MD5 85cab60d44f15328cd1ead1fdc9aa55d
BLAKE2b-256 c9c6c3405ad8d2da7bb5d5fadeb5b8d37c70ff6de24fbf18dad452a8c6e011f6

See more details on using hashes here.

File details

Details for the file pywindsorai-0.1-py3-none-any.whl.

File metadata

  • Download URL: pywindsorai-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for pywindsorai-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe771161d1e4e6f6f6dd9b83358630d15383dde63fb2343fc51ae846ce5a2138
MD5 624014da7f519a196e0022ed76124709
BLAKE2b-256 b9017876d9e2e13e13878495c8b90affddf4849b7bbe2f5cf56ba549f4ba8f60

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