Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Python wrapper for the Delighted API

Project description

Delighted Python

Python wrapper for the `Delighted API <>`_. Get
your pythonic NPS on!

Getting started is easy!

Install from pip::

sudo pip install DelightedPython

Basic Usage::

from delighted import Delighted

## Initialize with API Key
client = Delighted('<your_api_key_here>')

## Get a list of all survey responses
responses = client.survey_response.get()

Person Resource

See `the docs <>`_ for valid parameters and usage.

People Resource Examples::

## Create a new person on delighted

## Update a person record
properties={'location': 'Boston'})

## Delete upcoming survey request for the given person

Survey Response Resource

See `the docs <>`_ for valid parameters and usage.

Survey Response Resource Examples::

## Post new response
client.survey_response.create(person=123, score=10, comment='What a great app!')

## List all responses

Metrics Resource

See `the docs <>`_ for valid parameters and usage.

Metrics Resource Examples::

## Get NPS Metrics

## Get NPS Metrics by Trend

Unit Tests

To run unit test first add your test api key to delighted/test/

Then run the following::

python -m delighted.test.test_delighted

Important TODO's

1. Rework error throwing to be a bit more useful (see DelightedAPIError)


- The `Delighted <>`_ Team for creating a wonderful service and kick ass API
- Team `Testive <>`_ for supporting the creation and open source of the wrapper

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for DelightedPython, version
Filename, size File type Python version Upload date Hashes
Filename, size DelightedPython- (5.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page