Add progress bar in the put method of Files class#93
Open
94929 wants to merge 2 commits into
Open
Conversation
Member
|
It doesn't show the progress bar in my test. Can you please attach a screenshot? |
Author
|
@curiouswala Hi, I've attached the screenshot: 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
When uploading a file using
ampy putmethod, 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
putmethod of Files class to show its progress.