PageRenderTime 21ms CodeModel.GetById 13ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/src/pyechonest/pyechonest/config.py

http://echo-nest-remix.googlecode.com/
Python | 49 lines | 16 code | 12 blank | 21 comment | 2 complexity | 5ee92172a9ed7160b29740a3b49904ca MD5 | raw file
 1#!/usr/bin/env python
 2# encoding: utf-8
 3
 4"""
 5Copyright (c) 2010 The Echo Nest. All rights reserved.
 6Created by Tyler Williams on 2010-04-25.
 7
 8Global configuration variables for accessing the Echo Nest web API.
 9"""
10
11__version__ = "4.2.15"
12
13import os
14
15if('ECHO_NEST_API_KEY' in os.environ):
16    ECHO_NEST_API_KEY = os.environ['ECHO_NEST_API_KEY']
17else:
18    ECHO_NEST_API_KEY = None
19
20
21API_HOST = 'developer.echonest.com'
22"The API endpoint you're talking to"
23
24API_SELECTOR = 'api'
25"API selector... just 'api' for now"
26
27API_VERSION = 'v4'
28"Version of api to use... only 4 for now"
29
30HTTP_USER_AGENT = 'PyEchonest'
31"""
32You may change this to be a user agent string of your
33own choosing
34"""
35
36TRACE_API_CALLS = False
37"""
38If true, API calls will be traced to the console
39"""
40
41CALL_TIMEOUT = 10
42"""
43The API call timeout (seconds)
44"""
45
46CODEGEN_BINARY_OVERRIDE = None
47"""
48Location of your codegen binary. If not given, we will guess codegen.platform-architecture on your system path, e.g. codegen.Darwin, codegen.Linux-i386
49"""