Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
PyGoogleDrive is a wrapper library of
google-api-python-client <https://github.com/google/google-api-python-client>
_
that simplifies many common Google Drive API tasks You can just need to create credentials.json and place in your root directory.
https://pypi.python.org/pypi/PyGoogleDrive <https://pypi.python.org/pypi/PyGoogleDrive>
_https://github.com/fahadkhan09/pygoogledrive <https://github.com/fahadkhan09/PyGoogleDrive>
_Google Drive API <https://developers.google.com/drive/>
_ into
classes of each resource to make your program more object-oriented.You can install PyGoogleDrive with regular pip
command.
::
pip install PyGoogleDrive
When you create instance it will automatically open url for google authentication After successfully authentication token.pickle file is created in root directory
.. code:: python
from PyGoogleDrive.PyGoogleDrive import PyGoogleDrive
drive = PyGoogleDrive()
We can use drive
instance to create Folder
.. code:: python
drive.createfolder('folder_name')
createfolder function will return folder id that is created on Google drive
PyGoogleDrive handles custom file upload.
.. code:: python
drive.uploadfile(name, file_path, mimetype, folder_name)
uploadfile function will return file id created on google drive folder_name is optionals if you want to upload file in specific folder then add folder_name = 'document'
FAQs
Google Drive API made easy with PyGoogleDrive
We found that PyGoogleDrive demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.