Skip to main content

Blazing fast implementation of Fluent localization language.

Project description

This is a Python implementation of Project Fluent, a localization framework designed to unleash the entire expressive power of natural language translations.

It provides a different implementation from the official fluent.runtime implementation, distinguished mainly by:

  • strategy: we compile FTL files to Python AST
  • speed: as a result of the above, plus optimizations, we get blazing fast performance, especially when combined with PyPy which can further optimize.
  • compile-time checking and error reporting
  • ‘escapers’ feature for handling things like HTML escaping/embedding correctly.


This code was originally developed as part of fluent.runtime, as an alternative implementation of FluentBundle, but never got merged to the master branch. We are in the process of pulling it out as a separate package.

It has seen usage in production a dependency of django-ftl for a long time. However, now that we don’t need full compatibility with fluent.runtime it will be modified further in terms of interface.


To install:

pip install fluent_compiler

Project details

Download files

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

Files for fluent-compiler, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size fluent_compiler-0.1.1-py2-none-any.whl (35.1 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size fluent_compiler-0.1.1-py3-none-any.whl (33.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size fluent_compiler-0.1.1.tar.gz (70.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page