Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 634 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 634 Bytes

f2format-codec

Codec registry for f2format, a back-port compiler for Python 3.6 f-string literals.

Installation

pip install f2format-codec

Usage

Include the following encoding cookie at the top of your file (this replaces the UTF-8 cookie if you already have it):

# -*- coding: f2format -*-

And then write Python 3.6 f-string literals as usual 🍺

Acknowledgement

This project leverages APIs provided by f2format, and concepts inspired from future-fstrings.