$npx skillfedfor your agent

flynt

CLI tool to convert a python project's %-formatted strings to f-strings.

Worth itPyPI Python ModulesReleased Jul 2025134.5K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — flynt-1.0.6-py3-none-any.whl
v1.0.6 · released 2025-07-29 · Python >=3.9 · 1 runtime deps: tomli

Yes. Flynt is a low-friction, actively maintained tool with no security vulnerabilities, permissive licensing, and a clear, single purpose: automating string formatting modernization. It's well-suited for teams wanting to standardize on f-strings or for one-time codebase refactoring. The documented edge cases (tuple formatting, format specifier differences) are manageable with adequate test coverage and are not blockers for most projects.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later.
  • Files will be modified in-place; version control is strongly recommended before running.
  • Installation is straightforward with low friction—a single pure-Python wheel with one lightweight dependency (tomli).

License · maintenance · safety

MIT (permissive) — Flynt is released under the MIT license, a permissive open-source license that allows free use, modification, and distribution with minimal restrictions—suitable for both commercial and personal projects.

last release 2025-07-29 (381 days) · last repo commit 2026-07-19 · 733 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 134,527 downloads/mo, #11,472 on PyPI

Verify before relying

pip install flynt

# Convert all .py files in a directory recursively
flynt /path/to/project

# Or convert a single file
flynt script.py

# Dry-run to see changes without modifying
flynt --dry-run /path/to/project
  • Whether the tool correctly handles all edge cases in tuple formatting (the fact sheet documents one known case where behavior differs).
  • Performance characteristics on very large codebases or projects with thousands of files.
  • Maturity and reliability of the Jupyter notebook transformation feature, which is noted as alpha.
Same gist for agents: .md · .json

What it is and what it does

Flynt is a command-line refactoring tool that scans Python source files and automatically rewrites string formatting expressions into f-strings. It processes %-style formatting (e.g., `'%s' % var`) and .format() calls (e.g., `'{}'.format(var)`) into their f-string equivalents (e.g., `f'{var}'`), modernizing code to use Python 3.6+ syntax. The tool can operate on single files or recursively traverse directories, skipping common non-source folders like venv and site-packages.

Flynt is designed as a safe, automated refactoring pass for existing projects. It offers dry-run and linting modes, configuration via pyproject.toml, and integration with pre-commit hooks. The tool depends only on tomli for configuration parsing and uses Python's built-in ast module for code transformation. While it handles the vast majority of formatting conversions, the fact sheet documents a known edge case where single-element tuples format differently under f-strings, and some format specifiers (like %d with floats) may raise different exceptions than before.

Use it for

  • Modernize a legacy Python codebase by converting all string formatting to f-strings in a single automated pass.
  • Enforce f-string usage in a project via a pre-commit hook to ensure consistent formatting style across all commits.
  • Dry-run conversion on a project to review what changes would be made before applying them to version control.
  • Integrate into a CI/CD pipeline as a linting check to fail builds if non-f-string formatting is detected.
  • Convert string concatenations or static joins to f-strings when using Python 3.9+ with the --transform-concats or --transform-joins flags.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Flynt is a low-friction, actively maintained tool with no security vulnerabilities, permissive licensing, and a clear, single purpose: automating string formatting modernization. It's well-suited for teams wanting to standardize on f-strings or for one-time codebase refactoring. The documented edge cases (tuple formatting, format specifier differences) are manageable with adequate test coverage and are not blockers for most projects.

Install

flynt on PyPI

Before you install

Installation is straightforward with low friction—a single pure-Python wheel with one lightweight dependency (tomli). The project is actively maintained with recent commits and has been stable since its initial release in 2019.

Requires Python 3.9 or later. Files will be modified in-place; version control is strongly recommended before running.

License in practice

Flynt is released under the MIT license, a permissive open-source license that allows free use, modification, and distribution with minimal restrictions—suitable for both commercial and personal projects.

Quickstart

pip install flynt

# Convert all .py files in a directory recursively
flynt /path/to/project

# Or convert a single file
flynt script.py

# Dry-run to see changes without modifying
flynt --dry-run /path/to/project

Verify before relying

  • Whether the tool correctly handles all edge cases in tuple formatting (the fact sheet documents one known case where behavior differs).
  • Performance characteristics on very large codebases or projects with thousands of files.
  • Maturity and reliability of the Jupyter notebook transformation feature, which is noted as alpha.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
tomli
MaintenanceActively maintained 381 days since the last release
Last repo commit
First released
Downloads134,527 / month, #11,472 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Programming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities

Evidence: flynt-1.0.6-py3-none-any.whl

Tags

Capabilities
python string formatting converterf-string migration toolconvert format strings to f-stringspython code modernizationautomatic string refactoring%-format to f-stringpython formatting automation
Topics
code-modernizationrefactoring-toolcli
PyPI keywords
stringsutility

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “f-string migration tool”

  • flyntFlynt is a command-line tool that automatically converts Python…
  • flake8-use-fstringA flake8 plugin that detects and flags old-style string formatting (%…
  • future-fstringsEnables f-string syntax in Python versions before 3.6 by…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also flake8-use-fstring · future-fstrings · flake8-pep3101 · fissix · docopt · docstrfmt · darker · shandy-sqlfmt · flake8-literal · mdformat-black