Localization library for expressive translations.
Project description
Read, write, and transform Fluent files.
This package includes the parser, serializer, and traversal utilities like Visitor and Transformer. You’re looking for this package if you work on tooling for Fluent in Python.
>>> from fluent.syntax import parse, ast, serialize
>>> resource = parse("a-key = String to localize")
>>> resource.body[0].value.elements[0].value = "Localized string"
>>> serialize(resource)
'a-key = Localized string\n'
Find the full documentation on https://projectfluent.org/python-fluent/fluent.syntax/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fluent.syntax-0.19.0.tar.gz
(15.0 kB
view hashes)
Built Distribution
Close
Hashes for fluent.syntax-0.19.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b352b3475fac6c6ed5f06527921f432aac073d764445508ee5218aeccc7cc5c4 |
|
MD5 | b5b202fadcc9bc2ef7961725fab7d2a9 |
|
BLAKE2b-256 | 5428475734afb670bf7932caa1828183a4687cac51111950b9fb633c4f976afc |