• Joshua's avatar
    Added ModelFactory. This replaces the 'models' dict in the tweepy.models module. · b58ea115
    Joshua authored
    This will allow for more flexible plug 'n play for developers that need
    to extend Tweepy's models. To use custom models, they will extend the ModelFactory
    and then pass this new factory into the API constructor.
    
    Example:
        class MyStatus(Status):
            """A extended Status model"""
    
        class MyModelFactory(ModelFactory):
            status = MyStatus
    
        api = API(model_factory=MyModelFactory)
    b58ea115
__init__.py 687 Bytes