Skip to main content

Django Epsilon

Epsilon.com API integration for Django applications

Installation

pip install django-epsilon

Usage

from epsilon.models import Epsilon

profile = {
    'first_name': 'John',
    'last_name': 'Smith',
    'date_of_birth': '1990-01-01',
    'zip_code': '12345',
    'email': 'john.smith@example.com'
}

promotion_id = Epsilon.addProfile(profile, add_survey=True)

Configuration

Add these variables to your Django settings

from os import getenv

# If set to False, API will never be called
EPSILON_ON = getenv('EPSILON_ON', True)
# Enables django signals
EPSILON_AUTO_PUSH = getenv('EPSILON_AUTO_PUSH', False)

# Epsilon.com client settings
EPSILON_CLIENT_ID = ''
EPSILON_CLIENT_SECRET = ''
EPSILON_API_ENDPOINT = 'https://your_url.epsilon.com/CPGWebServices'
EPSILON_CAMPAIGN_CONTROL_ID = ''
EPSILON_QUESTION_ANSWER_ID = ''

# Epsilon.com campaign settings
EPSILON_TRACKING_INFO_DOMAIN_HASH = ''
EPSILON_TRACKING_INFO_TIMESTAMP = ''
EPSILON_TRACKING_UTM_SOURCE = ''
EPSILON_TRACKING_UTM_MEDIUM = ''
EPSILON_TRACKING_UTM_TERM = ''
EPSILON_TRACKING_UTM_CONTENT = ''
EPSILON_TRACKING_UTM_CAMPAIGN = ''

Metadata

Release files for django-epsilon 0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-epsilon 0.8
File Size Uploaded
django-epsilon-0.8.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-epsilon 0.8
File Interpreter ABI Platform
django_epsilon-0.8-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / django-epsilon-0.8.tar.gz

Download URL django-epsilon-0.8.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
42f261969cc77106bd8bed5b15d72bd3c73941bd9a40996ce9a46dc3728d16ac
BLAKE2b-256 checksum
How to use checksums
7c8091aed09796a8b711efd03747b0bb878370844e657e995dfa1821439c063b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

Release files / django_epsilon-0.8-py3-none-any.whl

Download URL django_epsilon-0.8-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
caf83830ab23022e83935480a23de38eb3a4e7f54ccd53737646a7c38eff42d3
BLAKE2b-256 checksum
How to use checksums
c780d3ed620a4feed995e82c399eb6ff1e6b8c22e20df7d517e5090b47cb1f4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.8 This release

2 release files

0.7

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page