- Install pymongo library
- Change the uri defined in line 13 by your own (after adding you to the database, you should be able to have access to it. Let me know if there are problems!:).
- Open the database overview site in MongoDB Atlas
- Click "connect"
- Click "MongoDB for VSCode"
- Replace the uri in our script by the link in the 3rd step indicated on the website.
- Place the script and folder of the asset in the same directory
- Change directory name in line 12 to the directory with the folders of the assets
- Run
python upload.py <assetName>and the asset should appear in the database.
- Change the uri defined in line 16 by by your own.
- Run
python download.py <assetName>and the asset should be downloaded into a separate folder named by assetName under current directory.