code: def upload(self):
          '''
          * Check if project already exists
              * if it doesn't, then create it
          * stage a new revision
          * upload
          * commit revision
          '''
          if not self.exists():
              self.create()
  
          data = self.stage().json()
          self.file_upload(data['post_url'], data)
          res = self.commit(data['dist_id'])
          data = res.json()
          return datf upload(self):
          '''
          * Check if project already exists
              * if it doesn't, then create it
          * stage a new revision
          * upload
          * commit revision
          '''
          if not self.exists():
              self.create()
  
          data = self.stage().json()
          self.file_upload(data['post_url'], data)
          res = self.commit(data['dist_id'])
          data = res.json()
          return data
docs: * Check if project already exists
              * if it doesn't, then create it
          * stage a new revision
          * upload
          * commit revision