I am with pyDrive to upload files to my Google Drive. I am able to upload files to any specific folder.
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
gauth = GoogleAuth()
gauth.LocalWebserverAuth()
drive = GoogleDrive(gauth)
file1 = drive.CreateFile({'title': 'myfile.txt', 'parents': [{"kind": "drive#fileLink","id": {FOLDER_ID}}]})
file1.SetContentFile('myfile.txt')
file1.Upload()
How can I share the uploaded file with other people and send a note to the recipients either using pyDrive or official Google Drive REST API?
This is available in pydrive via InsertPermission.
The act of creating a permission for a user or group email address will by default send a sharing email to that user or group.
See the Drive API documentation on creating permissions for more info.