Skip to main content

fstring_to_format converts Python f-string expressions to .format() for backwards compatibility.

Project description

fstring_to_format

PyPI version PyPI pyversions Python package codecov Codacy Badge PyPI download month PyPI download week PyPI download day GitHub all releases GitHub contributors CodeFactor Codacy Badge PyPI license

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

GNU General Public License v3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fstring_to_format-0.1.1.tar.gz (15.9 kB view details)

Uploaded Source

Built Distributions

fstring_to_format-0.1.1-py3.10.egg (5.9 kB view details)

Uploaded Source

fstring_to_format-0.1.1-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file fstring_to_format-0.1.1.tar.gz.

File metadata

  • Download URL: fstring_to_format-0.1.1.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for fstring_to_format-0.1.1.tar.gz
Algorithm Hash digest
SHA256 84924059c311d36f68b3349bbfd5a0956709b7cc1f3941108a0578e010efbc36
MD5 b95ccad49ccf15bc680188378d693ba2
BLAKE2b-256 cf07ccb74e1070116f1a8063e845221ae0c884753370f5350d45558614600d69

See more details on using hashes here.

File details

Details for the file fstring_to_format-0.1.1-py3.10.egg.

File metadata

  • Download URL: fstring_to_format-0.1.1-py3.10.egg
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for fstring_to_format-0.1.1-py3.10.egg
Algorithm Hash digest
SHA256 6092b675aa03132657bed509ad82c2d42a6c5c3ef7779d574122b371d3395c16
MD5 90aee46b43642e4af92d029d7fa01415
BLAKE2b-256 fd2712925fc27bd6961783bbd361d10487008aff1552d4da83a105936d3df853

See more details on using hashes here.

File details

Details for the file fstring_to_format-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for fstring_to_format-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2fe472b11129fd69a8050bbb7dc1418bd58cc82c9b252e02e130547612f4d11a
MD5 157eb7dd35eed36be5854aa22b7f3664
BLAKE2b-256 1c15d85441924b9e66d6714c639c4af91931d4202b73376275bd27eff16e07b5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page