fstring_to_format
fstring_to_format converts Python f-string expressions to .format() for backwards compatibility.
There are other packages for this too, but this is a regular expression based cleaner solution.
Installation
Use the package manager pip to install fstring_to_format.
$ pip install fstring_to_format
# to make sure you have the latest version
$ pip install -U fstring_to_format
# latest available code base
$ pip install -U git+https://github.com/eftalgezer/fstring_to_format.git
Usage
$ python -m fstring_to_format filename.py # for a single file
$ python -m fstring_to_format *.py # for all Python files in a directory
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Metadata
Release files for fstring-to-format 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fstring_to_format-0.1.2.tar.gz | 15.9 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| fstring_to_format-0.1.2-py3.10.egg | Legacy Egg format | - | - | Details |
| fstring_to_format-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
| fstring_to_format-0.1.2-py2.7.egg | Legacy Egg format | - | - | Details |
| fstring_to_format-0.1.2-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 60.6 kB
Release files / fstring_to_format-0.1.2.tar.gz
| Download URL | fstring_to_format-0.1.2.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
346e9d7ded5b2053258c8449db50f9c0255570baa191eed013cb6cfded6d7d39
|
|
BLAKE2b-256 checksum How to use checksums |
1827d622748b04c708e55cc3a05fbff8706435a924557ad36a9d6f0f14a613bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / fstring_to_format-0.1.2-py3.10.egg
| Download URL | fstring_to_format-0.1.2-py3.10.egg |
|---|---|
| Size | 6.1 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
40d8dc24c5102b1d0e9f3777b38535f15abf482e0f9719a0cc3a39e734192e6a
|
|
BLAKE2b-256 checksum How to use checksums |
1ab3147efc90f00d05348c7fdec3748dd658902588008405f05aac8a01c64bd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / fstring_to_format-0.1.2-py3-none-any.whl
| Download URL | fstring_to_format-0.1.2-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0a2e7f3a7197a025ebd12a3ad7847490cb8c239fd5cb2f0b2b532e1580938ca
|
|
BLAKE2b-256 checksum How to use checksums |
e0cd998fd625ed2764589539acb05229825ea1a9da06a01f4d835914723fe06e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / fstring_to_format-0.1.2-py2.7.egg
| Download URL | fstring_to_format-0.1.2-py2.7.egg |
|---|---|
| Size | 5.9 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
77b959d53f72bccc85a9bd45350718ddc610cba9790ca15884d5bb82d707d1f2
|
|
BLAKE2b-256 checksum How to use checksums |
88fc5a1afb99bc35c632f957ab3109b3dd7002ab97c0560c06bb255adf5cffeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / fstring_to_format-0.1.2-py2-none-any.whl
| Download URL | fstring_to_format-0.1.2-py2-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
805141ab0a578a47ba86ec6f7d190b7664c2995f729f595bcbb6fdfd178a6f33
|
|
BLAKE2b-256 checksum How to use checksums |
bb86b16a7ccd9307d07e8089466101c6417a1eb06466b962481fad86996d6940
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|