← index #14218Issue #14200
Off-topic · high · value 4.626
QUERY · ISSUE

Support RemoteFile.tell

openby IanLondonopened 2024-03-30updated 2024-03-30
enhancement

Checks

  • I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.

  • I've searched for existing issues regarding this feature, and didn't find any.

Description

It would be nice if RemoteFile implemented tell() -- https://docs.python.org/3/library/io.html#io.IOBase.tell

I ran into this using a 3rd-party library written to support Micropython. Its use of files works fine when you mpremote fs cp the files on to your board, but if you use mpremote mount, it fails with AttributeError: 'RemoteFile' object has no attribute 'tell'. See: https://github.com/bixb922/umidiparser/issues/6

This feature request is somewhat related to #7534, adding an argument for seek

Code Size

I'm not sure

Implementation

  • I intend to implement this feature and would submit a Pull Request if desirable.
  • I hope the MicroPython maintainers or community will implement this feature.
  • I would like to Sponsor development of this feature.
CANDIDATE · ISSUE

Watch mode for mpremote

openby dustinlacewellopened 2024-03-27updated 2025-09-05
enhancementtools

Checks

  • I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.

  • I've searched for existing issues regarding this feature, and didn't find any.

Description

Please consider adding a "watch" mode for mpremote, which will watch a root directory for changes and sync those changes to the micropython filesystem. This would make me much more efficient during heavy cycles of development.

Code Size

I think the efficiency gains for MicroPython developers would be great.

Implementation

  • I intend to implement this feature and would submit a Pull Request if desirable.
  • I hope the MicroPython maintainers or community will implement this feature.
  • I would like to Sponsor development of this feature.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied