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

Uploaded Source

Built Distribution

fluent.syntax-0.18.1-py2.py3-none-any.whl (16.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: fluent.syntax-0.18.1.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.9

File hashes

Hashes for fluent.syntax-0.18.1.tar.gz
Algorithm Hash digest
SHA256 3a55f5e605d1b029a65cc8b6492c86ec4608e15447e73db1495de11fd46c104f
MD5 1a8fb24994bd4de0a4d088c47bdfac13
BLAKE2b-256 69d042248d0fa176b3966af8d81b531cee3c9f15651c3c003aeedc0196a213a8

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fluent.syntax-0.18.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.9

File hashes

Hashes for fluent.syntax-0.18.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0e63679fa4f1b3042565220a5127b4bab842424f07d6a13c12299e3b3835486a
MD5 c2914b6362c3268828374d247b9e7b1f
BLAKE2b-256 2b3a057ce0e4cefdf54cb8b0aa2b7da9294d8e26703243004b60a90df95970b5

See more details on using hashes here.

Provenance

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