Debian Codegraph @

third_party/python/fluent.syntax/fluent.syntax-0.19.0.dist-info/METADATA

raw
1 Metadata-Version: 2.1
2 Name: fluent.syntax
3 Version: 0.19.0
4 Summary: Localization library for expressive translations.
5 Home-page: https://github.com/projectfluent/python-fluent
6 Author: Mozilla
7 Author-email: [email protected]
8 License: APL 2
9 Keywords: fluent,localization,l10n
10 Classifier: Development Status :: 3 - Alpha
11 Classifier: Intended Audience :: Developers
12 Classifier: License :: OSI Approved :: Apache Software License
13 Classifier: Programming Language :: Python :: 3.6
14 Classifier: Programming Language :: Python :: 3.7
15 Classifier: Programming Language :: Python :: 3.8
16 Classifier: Programming Language :: Python :: 3.9
17 Classifier: Programming Language :: Python :: 3 :: Only
18 Description-Content-Type: text/x-rst
19 Requires-Dist: typing-extensions (<5,>=3.7)
20
21 ``fluent.syntax`` |fluent.syntax|
22 ---------------------------------
23
24 Read, write, and transform `Fluent`_ files.
25
26 This package includes the parser, serializer, and traversal
27 utilities like Visitor and Transformer. You’re looking for this package
28 if you work on tooling for Fluent in Python.
29
30 .. code-block:: python
31
32 >>> from fluent.syntax import parse, ast, serialize
33 >>> resource = parse("a-key = String to localize")
34 >>> resource.body[0].value.elements[0].value = "Localized string"
35 >>> serialize(resource)
36 'a-key = Localized string\n'
37
38
39 Find the full documentation on https://projectfluent.org/python-fluent/fluent.syntax/.
40
41 .. _fluent: https://projectfluent.org/
42 .. |fluent.syntax| image:: https://github.com/projectfluent/python-fluent/workflows/fluent.syntax/badge.svg