Skip to main content

Iterable API wrapper

Project description

Iterable API

This is a mostly complete wrapper of the Iterable API built with Python.

The interface is still in a state of flux, some methods will be renamed but the signatures should stay the same.

User Docs

This is a pure python development kit for interacting with the Iterable API. If you find anything to be out of date or are looking for support, you can file an issue on Github.

Installation

You can download and install the package from the Python Package Index with:

pip install iterable-api

Quickstart

from iterable import Iterable

api = Iterable('YOUR_API_KEY')

api.events.track(event_name='hello_iterable', user_id=42, created_at=datetime.now().to_timestamp())

If you're familiar with environment variables, you can set ITERABLE_API_KEY. In that case you can set up the api client like so:

from os import getenv
from iterable import Iterable

api = Iterable(getenv('ITERABLE_API_KEY'))

Data exports

If you're interested in getting data out of your Iterable account, you can use the export_data_api method on the API client.

Dropping down

The API client is a requests.Session under the hood with HTTP method names as top level functions in the wrapper.

If you want to drop down to the client, you only need to provide the resource path, e.g.:

api.get('/events/track')

This might be useful for exploring the API or debugging an issue.

Development Docs

If you're interested in extending this library, please follow these guidelines:

  1. Please file an issue first describing what you want to add or change.
  2. Fork the repository and submit a pull request.

Installation for development

This project uses poetry for now, so follow your preferred procedure for that.

poetry install

Testing

The library uses pytest - you can run the tests by invoking the following:

poetry run pytest

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

iterable_api-0.3.0.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

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

iterable_api-0.3.0-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

Details for the file iterable_api-0.3.0.tar.gz.

File metadata

  • Download URL: iterable_api-0.3.0.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for iterable_api-0.3.0.tar.gz
Algorithm Hash digest
SHA256 730a542e6d4a23b013f0dbca2fb1a5fa9313445a8a8a7e9652f72f175a35d390
MD5 0995055844e6efb203e5300bf4018284
BLAKE2b-256 a8942844475b11accaf4605125cc4c0c1f977d40f02666c01e27009bbc85ed46

See more details on using hashes here.

File details

Details for the file iterable_api-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: iterable_api-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 30.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for iterable_api-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3978aaa8e6e3ab02bf3abe2ce3002b69a6527b1b791cdfb2e40b733e32f9aa46
MD5 4e1f17c0d4dbb7a5b70427f9f3b9158d
BLAKE2b-256 ac645757b21b53628d50da19d1322576b33c0fd0068f9f661accf92243c8db6f

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