Skip to content

Instantly share code, notes, and snippets.

@rrees
Created October 20, 2014 18:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rrees/8c1b7edd39f6fc8313e9 to your computer and use it in GitHub Desktop.
Save rrees/8c1b7edd39f6fc8313e9 to your computer and use it in GitHub Desktop.
base_data_sources = make_dict({
'business': BusinessDataSource(clientUS),
'money': USMoneyDataSource(clientUS),
'technology': TechnologyDataSource(clientUS),
'sport': SportUSDataSource(clientUS),
'comment': CommentIsFreeDataSource(clientUS),
'culture': CultureDataSource(clientUS),
'top_stories': TopStoriesDataSource(clientUS),
'video': VideoDataSource(clientUS),
})
data_sources = {
'v1' : base_data_sources,
'v3' : base_data_sources,
'v6' : base_data_sources.using(
most_shared_us = MostSharedDataSource(clientUS)
),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment