Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
Creates a new object based on serialized (dict) struct. 

src/s/t/stravalib-0.2.2/stravalib/client.py   stravalib(Download)
        """
        raw = self.protocol.get('/activities/{id}', id=activity_id)
        return model.Activity.deserialize(raw, bind_client=self)
 
    def get_friend_activities(self, limit=None):
        raw_activity = self.protocol.post('/activities', **params)
 
        return model.Activity.deserialize(raw_activity, bind_client=self)
 
    def update_activity(self, activity_id, name=None, activity_type=None, private=None, commute=None, trainer=None, gear_id=None, description=None):
 
        raw_activity = self.protocol.put('/activities/{activity_id}', **params)
        return model.Activity.deserialize(raw_activity, bind_client=self)
 
    def upload_activity(self, activity_file, data_type, name=None, activity_type=None, private=None, external_id=None):

src/s/t/stravalib-HEAD/stravalib/client.py   stravalib(Download)
        """
        raw = self.protocol.get('/activities/{id}', id=activity_id)
        return model.Activity.deserialize(raw, bind_client=self)
 
    def get_friend_activities(self, limit=None):
        raw_activity = self.protocol.post('/activities', **params)
 
        return model.Activity.deserialize(raw_activity, bind_client=self)
 
    def update_activity(self, activity_id, name=None, activity_type=None, private=None, commute=None, trainer=None, gear_id=None, description=None):
 
        raw_activity = self.protocol.put('/activities/{activity_id}', **params)
        return model.Activity.deserialize(raw_activity, bind_client=self)
 
    def upload_activity(self, activity_file, data_type, name=None, activity_type=None, private=None, external_id=None):