Skip to content

ae5au/vscode-circuitpython-webupload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vscode-circuitpython-webupload

Task definition and Python script to upload from VS Code to CircuitPython board via web workflow REST API.

CircuitPython 8.x adds web workflow allowing code to be edited/uploaded via the local network. There is built-in browser support and also a Web REST API. This project utilizes the latter to upload a file directly from VS Code.

NOTE: This is very rough and you will find some bugs. No major bugs so far, but PRs for improvement appreciated!

Setup

Notes

  • Directories in the file's path are created if they don't exist.
  • Only single files can be uploaded.
  • Moved files will be recreated in the new location but the old file/directories will not be removed.
  • Existing files will be overwritten, even if they haven't changed.

TODO

  • get password from /.env
  • set/get URL from /.env
  • Get timestamp from source file and set on new file
  • use argparse

About

VS Code Task to upload to CircuitPython board via web workflow

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published