• 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.
        class MyStatus(Status):
            """A extended Status model"""
        class MyModelFactory(ModelFactory):
            status = MyStatus
        api = API(model_factory=MyModelFactory)
parsers.py 5.67 KB