Skip to content

Add progress bar in the put method of Files class#93

Open
94929 wants to merge 2 commits into
scientifichackers:masterfrom
94929:put-progress-bar
Open

Add progress bar in the put method of Files class#93
94929 wants to merge 2 commits into
scientifichackers:masterfrom
94929:put-progress-bar

Conversation

@94929
Copy link
Copy Markdown

@94929 94929 commented Aug 22, 2020

Problem

When uploading a file using ampy put method, I want to check if the file is being uploaded to the board. Thus, tracking the progress of the uploading process is desired.

Proposed Solution

Use progress package which is fully compatible with the python versions of adafruit-ampy package in the put method of Files class to show its progress.

@curiouswala
Copy link
Copy Markdown
Member

It doesn't show the progress bar in my test. Can you please attach a screenshot?

@94929
Copy link
Copy Markdown
Author

94929 commented Feb 10, 2021

@curiouswala Hi, I've attached the screenshot:
Screen Shot 2021-02-10 at 3 55 26 PM

The code can be found here.

curiouswala added a commit that referenced this pull request Apr 16, 2026
…ii fallback

- PR #111: fall back from ubinascii to binascii in the MicroPython-side
  get command, for forward compatibility with firmware that removes ubinascii
- PR #109: add auto_envvar_prefix='AMPY' to the Click group so any future
  option automatically gets an AMPY_* env var without explicit envvar= params
- PR #107: get now accepts multiple remote files via nargs=-1 and saves them
  to a local directory with --output/-o; rm now accepts multiple files
- PR #93: put shows a click progress bar by default; suppress with --no-progress.
  Progress callback added to files.Files.put() for library users

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants