{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/6"}],"enrichment":{"capability":"Enables f-string syntax in Python versions before 3.6 by transparently rewriting f-strings to `.format()` calls at import time via a custom codec.","skillfed_tags":["legacy-python","syntax-transformation","codec"],"use_cases":["Maintain a single f-string codebase that runs on Python 2.7 and early Python 3 versions without duplicating syntax.","Pre-transform source code before deploying to micropython or other embedded platforms that lack f-string support.","Gradually migrate legacy Python 2.7 codebases to modern f-string syntax while maintaining backward compatibility during transition."],"what_it_does":"future-fstrings is a codec-based backport that allows you to write Python 3.6+ f-string syntax and run it on Python 2.7 and Python 3.4\u20133.5. You add a special encoding cookie to the top of your file, and the package intercepts the source at import time, rewriting f-strings into equivalent `.format()` calls before the Python interpreter sees them. This works by registering a custom UTF-8 codec on startup that uses tokenize-rt to perform the transformation.\n\nThe package also provides a command-line tool (`future-fstrings-show`) to pre-transform source files, useful for distributing code to platforms like micropython that don't support f-strings at all. However, the project is archived and no longer maintained, so it will not adapt to future Python changes or receive security updates.","worth_installing":"No. The package is abandoned (last updated 2022-01-15) and targets Python versions that are themselves end-of-life. If you need f-strings on older Python, this was useful historically, but new projects should target Python 3.6+. Existing projects still on unsupported Python versions should prioritize upgrading rather than relying on unmaintained backports."},"id":"future-fstrings","links":{"html":"https://skillfed.io/packages/future-fstrings","md":"https://skillfed.io/packages/future-fstrings.md","pypi":"https://pypi.org/project/future-fstrings/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2019-06-16","license_spdx":null,"license_treatment":"permissive","name":"future-fstrings","python_support":"supports_current","summary":"A backport of fstrings to python<3.6"},"popularity":{"monthly_downloads":749735,"position":5160,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.0"}
