Swap76 / Move_Assets_To_Google_Drive

Using this repo a beginner will be able move assets from databases or file systems onto Google Drive

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Move_Assets_To_Google_Drive

Using this repo a beginner will be able move assets from databases or file systems onto Google Drive

Getting started with the project

  • Fork the repository on GitHub.

  • Navigate to the folder of the repository.

  • To run this project, you should have python3 and pip installed on your system. If you don't have python3, MongoDB(If want to fetch records from DB) and pip, you can visit The official site of python3 to install them on your system.

  • Install python3 dependencies.

    pip install -r requirement.txt
    
  • Enable Google Drive API for your account and obtain credentials for the same. Please follow the Codelab for all this

  • Now run following command for generating token for our python app to use Google Drive API.

    python3 GoogleDriveSetup.py
    

    This command will create a token.pickle file in the root directory

  • Setup MongoDB connection by providing Database URL, Database Name, Collection name in the respective program. Then in one terminal run

    mongod
    

    Keep this terminal running

  • Then Add a new key in the DB for Tracking Upload for this refer Mongo Help. Run this commands in mongoshell

  • Use following commands for running the programmes:- For running a single thread program (Please make sure you create temp folder before running the program)

    python3 singleThread_Upload.py
    

    For running a multi thread program (Please make sure you create folders for downloading files)

    python3 multiThread_Upload.py
    

About

Using this repo a beginner will be able move assets from databases or file systems onto Google Drive

License:GNU Affero General Public License v3.0


Languages

Language:Python 100.0%