Debian Codegraph @

docs/api/messages/extract.rst

raw
1 Low-Level Extraction Interface
2 ==============================
3
4 .. module:: babel.messages.extract
5
6 The low level extraction interface can be used to extract from directories
7 or files directly. Normally this is not needed as the command line tools
8 can do that for you.
9
10 Extraction Functions
11 --------------------
12
13 The extraction functions are what the command line tools use internally to
14 extract strings.
15
16 .. autofunction:: extract_from_dir
17
18 .. autofunction:: extract_from_file
19
20 .. autofunction:: extract
21
22 Language Parsing
23 ----------------
24
25 The language parsing functions are used to extract strings out of source
26 files. These are automatically being used by the extraction functions but
27 sometimes it can be useful to register wrapper functions, then these low
28 level functions can be invoked.
29
30 New functions can be registered through the setuptools entrypoint system.
31
32 .. autofunction:: extract_python
33
34 .. autofunction:: extract_javascript
35
36 .. autofunction:: extract_nothing