From 2dd3013839511e70e49910065bd175a4f73791e5 Mon Sep 17 00:00:00 2001 From: Keyur Khadka Date: Wed, 30 Jul 2025 18:12:24 +0545 Subject: [PATCH] docs(coco): update readme.md --- manager-dashboard/user_scripts/README.md | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 manager-dashboard/user_scripts/README.md diff --git a/manager-dashboard/user_scripts/README.md b/manager-dashboard/user_scripts/README.md new file mode 100644 index 00000000..fbc18dec --- /dev/null +++ b/manager-dashboard/user_scripts/README.md @@ -0,0 +1,36 @@ +## DropBox +### Prerequisites + +- Create account: https://www.dropbox.com/register +- Create new App: https://www.dropbox.com/developers/apps + - Choose an API: Scoped access + - Choose the type of access you need: Full Dropbox + - Name your app: Mapswipe COCO +- Update `Permission type` + - Go to the app settings + - Click **Scoped App** + - Select + - files.metadata.read + - files.content.write + - files.content.read + - sharing.write + - sharing.read + - Submit +- Generate new access token: + - Go to the app settings + - Click **Generated access token** +- Install uv on your system: https://docs.astral.sh/uv/getting-started/installation/ +- Download the [generate_coco_from_dropbox.py](user_scripts/generate_coco_from_dropbox.py) script + +- Run the script + ```bash + # Help + uv run generate_coco_dropbox.py --help + + # Sample + uv run generate_coco_dropbox.py "DROPBOX_ACCESS_TOKEN" "FOLDER_PATH_IN_DROPBOX" "DESTINATION_EXPORT_FILE_NAME_IN_DROPBOX" + + # Example + uv run generate_coco_dropbox.py sl.yourAccessTokenHere “/COCO TEST” “coco_export.json” + ``` +- Download the coco_export.json from the dropbox