| title | created | modified |
|---|---|---|
Bootstrap |
2020-11-01T15:12:40.287Z |
2020-11-24T09:34:19.651Z |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # | |
| # Limits the maximal virtual memory for a subprocess in Python. | |
| # | |
| # Linux only. | |
| # | |
| import subprocess | |
| import resource |
This is a simple sample script for achieving the resumable upload to Google Drive using Python. In order to achieve the resumable upload, at first, it is required to retrieve the location, which is the endpoint of upload. The location is included in the response headers. After the location was retrieved, the file can be uploaded to the location URL.
In this sample, a PNG file is uploaded with the resumable upload using a single chunk.
Before you use this, please set the variables.