Skip to main content

Use the Dandelion API with Django

Project description

https://badge.fury.io/py/django-dandelion.svg https://travis-ci.org/AlessioBazzanella/django-dandelion.svg?branch=master https://codecov.io/gh/AlessioBazzanella/django-dandelion/branch/master/graph/badge.svg

Use the Dandelion API with Django

Documentation

The full documentation is at https://django-dandelion.readthedocs.io.

Quickstart

Install Django Dandelion:

$ pip install django-dandelion

Add django-dandelion to your INSTALLED_APPS

INSTALLED_APPS = [
    # ...
    'django-dandelion',
]

Add the entry DANDELION_TOKEN. The recommended method is to setup your production keys using environment variables. This helps to keep them more secure. Your test keys can be displayed in your code directly.

The following entry look for your DANDELION_TOKEN in your environment and, if it can’t find them,uses your test keys values instead:

DANDELION_TOKEN = os.environ.get("DANDELION_TOKEN", "<your dandelion token>")

Register on dandelion to obtain your authentication keys and enrich your application with our semantic intelligence.

You can also change the url of the host and decide whether to use the cache:

DANDELION_HOST = 'api.dandelion.eu'  # Default 'api.dandelion.eu'
DANDELION_USE_CACHE = True  # Default True

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Change Log

All notable changes to this project will be documented in this file.

The format is based on KeepAChangelog. and this project adheres to SemanticVersioning.

[0.1.0] - 2017-03-10

  • First release on PyPI.

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

django-dandelion-0.1.1.tar.gz (11.8 kB view hashes)

Uploaded Source

Built Distribution

django_dandelion-0.1.1-py2.py3-none-any.whl (13.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page