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.
Quickstart
import os
from iterable import Iterable
api = Iterable(os.environ.get('ITERABLE_API_KEY'))
api.events.track(event_name='hello_iterable', user_id=42, created_at=datetime.now().to_timestamp())
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')
Testing
The library uses pytest - you can run the tests by invoking the following:
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.1.1.tar.gz
(23.7 kB
view hashes)
Built Distribution
Close
Hashes for iterable_api-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a087119dd0aaa53c97efee0665e8fce463a87719728df72baeab28e928be009a |
|
MD5 | 693324b04bea831a6ccc92c08e8fb1d1 |
|
BLAKE2b-256 | 4588787031d587d5c73067138c688cb59103baefee2e10b98524399c031a10c2 |