@@ -0,0 +1,1711 @@
+from __future__ import print_function%0Aimport pickle%0Aimport os.path%0Afrom googleapiclient.discovery import build%0Afrom google_auth_oauthlib.flow import InstalledAppFlow%0Afrom google.auth.transport.requests import Request%0A%0Afrom googleapiclient.http import MediaFileUpload%0A%0ASCOPES = %5B'https://www.googleapis.com/auth/drive.file'%5D%0A%0A%0Adef main():%0A    %22%22%22Shows basic usage of the Drive v3 API.%0A    Prints the names and ids of the first 10 files the user has access to.%0A    %22%22%22%0A    creds = None%0A    # The file token.pickle stores the user's access and refresh tokens, and is%0A    # created automatically when the authorization flow completes for the first%0A    # time.%0A    if os.path.exists('token.pickle'):%0A        with open('token.pickle', 'rb') as token:%0A            creds = pickle.load(token)%0A    # If there are no (valid) credentials available, let the user log in.%0A    if not creds or not creds.valid:%0A        if creds and creds.expired and creds.refresh_token:%0A            creds.refresh(Request())%0A        else:%0A            flow = InstalledAppFlow.from_client_secrets_file(%0A                'credentials.json', SCOPES)%0A            creds = flow.run_local_server(port=8000)%0A        # Save the credentials for the next run%0A        with open('token.pickle', 'wb') as token:%0A            pickle.dump(creds, token)%0A%0A    service = build('drive', 'v3', credentials=creds)%0A%0A    file_metadata = %7B%0A        'name': 'db.dump',%0A        'parents': ('1h-5yWWISEOBbc9l-kNZrTiGCwxP0oj-Y',)%0A    %7D%0A    media = MediaFileUpload('db.dump', mimetype='application/octet-stream')%0A    file = service.files().create(%0A        body=file_metadata,%0A        media_body=media,%0A        fields='id'%0A    ).execute()%0A%0A%0Aif __name__ == '__main__':%0A    main()%0A

Add drive integration