Skip to content

[Feature] Google Drive upload and download (includes a working demo) #1876

@scatwang

Description

@scatwang

I just implemented some Google Drive integration. Check out this demo here:

https://scatwang.github.io/pybricks-code/
video

WX20241012-215438@2x

Basically, it use Google Drive API to upload and download files. The react app get oauth token and talk to Google API directly ( hope this will be easier for GDPR).

A very basic version control just works, it should be good enough for small projects.

  • When the downloaded file has a name conflicts, the ReplaceImportDialog dialog will ask if user want to overwrite or rename.
  • For uploaded files, it's easy to check historical version on Google Drive.

I will work on unit tests and documents if this looks good to you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    software: pybricks-codeIssues with https://code.pybricks.com application
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions