Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from datetime import datetime, timedelta
class Repository:
"""Abstract base class for the repositories.
The sub classes should implement the get_data method."""
def date_formatted(date):
return date.strftime('%d %b %H:%M')
def get_data(self,topic_name, numdays):
raise NotImplementedError( "Should have implemented this" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment