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.18.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

fluent.syntax-0.18.0-py2.py3-none-any.whl (15.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file fluent.syntax-0.18.0.tar.gz.

File metadata

  • Download URL: fluent.syntax-0.18.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for fluent.syntax-0.18.0.tar.gz
Algorithm Hash digest
SHA256 202890bce8be17afd225374a29a9dae7e09edab54aca0dcb47495ba9a5ea72e9
MD5 5eac4c69ba321524a6053e11c2b5b242
BLAKE2b-256 b154d01ac339fd5d396531880548ba5b01055fa7b28f80441051b6e55faeeb82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fluent.syntax-0.18.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for fluent.syntax-0.18.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e2df446e102824472768c04d24348247f7d8b08813cd29f3c39815796cb8821e
MD5 6aa0fa62e5cb3461e34d39b0a5a69a68
BLAKE2b-256 1750aa23b38a4735e261ec90fd7aee59aa01fed825c81a2e046400d5ad904431

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