-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsettings.py
More file actions
37 lines (34 loc) · 962 Bytes
/
settings.py
File metadata and controls
37 lines (34 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import pdb
class SettingsBunch(dict):
def __getattr__(self, name):
return self[name]
def __setattr__(self, name, value):
self[name] = value
settings = SettingsBunch(
local_box = dict(lat=(29,30.5),lng=(-96,-94.5)),
region = "houtx",
slaves = 12,
gisgraphy_url = "http://services.gisgraphy.com",
beanstalk_host = 'localhost',
beanstalk_port = 11300,
couchdb_root = 'http://localhost:5984/',
mention_weight = .5,
crawl_ratio = .1,
non_local_cutoff = 8,
unknown_cutoff = 9,
min_cutoff = 2,
lookup_in = 'lookup.in',
lookup_out = 'lookup.out',
log_dir = 'logs',
beanstalkd_ttr = 3600,
tweets_per_hour = .04, # 1 tweet/day is median
tweets_per_crawl = 200,
max_hours = 360, # 15 days
pdb = pdb.set_trace,
min_tweet_id = 'T27882000000',
)
try:
from settings_prod import settings as s
except:
from settings_dev import settings as s
settings.update(s)