Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.

python 3.7+ f-strings converter for Python flavours with no f-strings support

License

Notifications You must be signed in to change notification settings

pmp-p/fstrings_helper

 
 

Repository files navigation

helper to convert f-strings before sending code to micropython or to the bytecode compiler mpy-cross

usage: python3.7 -mfstrings_helper filename

note: requires the tokenize_rt module from https://github.com/asottile/tokenize-rt

many thanks to original author since micropython is unlikely to support natively f-strings as it would increase its core size.

NEW! future-fstrings[rewrite] now provides a command line tool for code conversion check it there https://github.com/asottile/future-fstrings#transform-source-for-micropython

watch for: https://docs.python.org/3.8/whatsnew/3.8.html#f-strings-now-support-for-quick-and-easy-debugging and maybe it's future support asottile-archive#40

About

python 3.7+ f-strings converter for Python flavours with no f-strings support

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%