FTL-Extract
FTL-Extract keeps the Fluent translation files of a Python project in sync with the
code that uses them. It finds every translation key in your .py files and writes the .ftl files for each locale:
new keys are added, keys the code no longer uses are commented out, and existing translations are left alone.
The ftl CLI is written in Rust and ships as a native binary inside the Python wheel.
📖 Documentation: https://ftl-extract.readthedocs.io/
Installation
uv add --dev FTL-Extract
# or
pip install FTL-Extract
Quick start
# app/handlers.py
async def start(i18n, name: str) -> str:
return i18n.get("welcome", name=name)
async def menu(i18n) -> str:
return i18n.menu.title()
ftl extract app app/locales -l en -l uk
# app/locales/en/_default.ftl
menu-title = menu-title
welcome = welcome{ $name }
Translate the placeholders, then keep everything in sync:
ftl extract app app/locales -l en -l uk # update .ftl files after code changes
ftl stub app/locales/en app/stub.pyi # generate a .pyi stub for autocompletion
ftl check app/locales --code-path app # validate translations in CI
The options can live in pyproject.toml, so the commands need no arguments:
[tool.ftl-extract.extract]
code-path = "app"
locales-path = "app/locales"
languages = ["en", "uk"]
[tool.ftl-extract.stub]
locales-path = "app/locales/en"
stub-path = "app/stub.pyi"
[tool.ftl-extract.check]
locales-path = "app/locales"
code-path = "app"
Learn more
- Getting started
- Configuration reference
ftl extract,ftl stub,ftl check- CI integration
- FAQ
- Changelog
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. See the contributing guide.
Metadata
Release files for FTL-Extract 0.12.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ftl_extract-0.12.3.tar.gz | 131.0 kB | With provenance | Details for ftl_extract-0.12.3.tar.gz |
Built distributions (wheels)
Total release size: 16.0 MB
Release files / ftl_extract-0.12.3.tar.gz
| Download URL | ftl_extract-0.12.3.tar.gz |
|---|---|
| Size | 131.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7cbd7aca698e457cfd76680ac6e6b4c0492d7fcb80fe3271b5c88d4a38b0e24
|
|
BLAKE2b-256 checksum How to use checksums |
ee96e8851af56561ebbd8053b8e15c8befabccee3f0350784ed21e49bbf0d722
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / ftl_extract-0.12.3-py3-none-win_amd64.whl
| Download URL | ftl_extract-0.12.3-py3-none-win_amd64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
40abafcd6b3122516de5c1a22b093ca2fa846df3b509a8b63124e3648dbccb43
|
|
BLAKE2b-256 checksum How to use checksums |
f6678e28bb609b3da75733b93004f93dbe589d8e8db294614b209b621f74ad84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / ftl_extract-0.12.3-py3-none-musllinux_1_2_x86_64.whl
| Download URL | ftl_extract-0.12.3-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
85a6d6d4719a810e6e6a699ab8bb6ef7dc0ef78fc16a596c760b94b77761f6a7
|
|
BLAKE2b-256 checksum How to use checksums |
0ca00b989b8b896495da6c4725898c0538016a6c9fcda5cb6a1176ac69a13605
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / ftl_extract-0.12.3-py3-none-musllinux_1_2_aarch64.whl
| Download URL | ftl_extract-0.12.3-py3-none-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | Linux musl 1.2+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
4dcc3ddaa3031d89b382673a1014a7cd382503f6e18fa9cf02aeb1643a92f783
|
|
BLAKE2b-256 checksum How to use checksums |
1c550c192e2edc0b42f232d8c0b6accc850027630fbf9ee84d78f3b38dc868bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / ftl_extract-0.12.3-py3-none-manylinux_2_28_x86_64.whl
| Download URL | ftl_extract-0.12.3-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
ac5d8590df9506ffb9ea8ccc7f0888e8d0aa4683e4b20561cd104daf631d0079
|
|
BLAKE2b-256 checksum How to use checksums |
50119ff9b8897468047c43ef630d7f82b56d316b50c6f8b87227d30f2e92f252
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / ftl_extract-0.12.3-py3-none-manylinux_2_28_aarch64.whl
| Download URL | ftl_extract-0.12.3-py3-none-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
19b310878708090f637e33707189f1b10f923662e911cbf219c88b0f64037105
|
|
BLAKE2b-256 checksum How to use checksums |
b900b22314f0705984a4189f2b3fc50b0fd98bfdadf039353862b78b9e0bf520
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / ftl_extract-0.12.3-py3-none-macosx_11_0_arm64.whl
| Download URL | ftl_extract-0.12.3-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e86d34cd42a9ce7ee5e94b823bf3966fcc609beaa3d388049f88f7a6c090c06b
|
|
BLAKE2b-256 checksum How to use checksums |
4cc6f34053a412ba372e5462f32e8d7ee73c95d3ab048cf9bb41a71b17b21b90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / ftl_extract-0.12.3-py3-none-macosx_10_15_x86_64.whl
| Download URL | ftl_extract-0.12.3-py3-none-macosx_10_15_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | Python 3 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
51020fde0ce0f3b6ec1e43b0f7c20cbea88e58e76c220484a51376da05f9ae9d
|
|
BLAKE2b-256 checksum How to use checksums |
dc3dfc3d13f95e352a7151ef95e6378148731191e3e221ad2da108693c83ed1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logSecurity for FTL-Extract 0.12.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 8 files in this release have been uploaded with provenance metadata.
Attestation for ftl_extract-0.12.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.