Skip to main content

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


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 details)

Uploaded Source

Built Distribution

fluent.syntax-0.19.0-py2.py3-none-any.whl (16.4 kB view details)

Uploaded Python 2 Python 3

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

Hashes for fluent.syntax-0.19.0.tar.gz
Algorithm Hash digest
SHA256 920326d7f46864b9758f0044e9968e3112198bc826acee16ddd8f11d359004fd
MD5 a54844653f2757573ff0a3e5579c57c8
BLAKE2b-256 5152de75f2faf499ed5a089acff2ab8bda5fc3b8db8a3f1615428ef9ccbf1917

See more details on using hashes here.

File details

Details for the file fluent.syntax-0.19.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for fluent.syntax-0.19.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b352b3475fac6c6ed5f06527921f432aac073d764445508ee5218aeccc7cc5c4
MD5 b5b202fadcc9bc2ef7961725fab7d2a9
BLAKE2b-256 5428475734afb670bf7932caa1828183a4687cac51111950b9fb633c4f976afc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page