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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fluent.syntax-0.19.0.tar.gz.
File metadata
- Download URL: fluent.syntax-0.19.0.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
920326d7f46864b9758f0044e9968e3112198bc826acee16ddd8f11d359004fd
|
|
| MD5 |
a54844653f2757573ff0a3e5579c57c8
|
|
| BLAKE2b-256 |
5152de75f2faf499ed5a089acff2ab8bda5fc3b8db8a3f1615428ef9ccbf1917
|
File details
Details for the file fluent.syntax-0.19.0-py2.py3-none-any.whl.
File metadata
- Download URL: fluent.syntax-0.19.0-py2.py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b352b3475fac6c6ed5f06527921f432aac073d764445508ee5218aeccc7cc5c4
|
|
| MD5 |
b5b202fadcc9bc2ef7961725fab7d2a9
|
|
| BLAKE2b-256 |
5428475734afb670bf7932caa1828183a4687cac51111950b9fb633c4f976afc
|