File: extract.rst

package info (click to toggle)
python-babel 2.6.0%2Bdfsg.1-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 164,640 kB
  • sloc: xml: 1,848,178; python: 11,849; makefile: 213; sh: 44
file content (36 lines) | stat: -rw-r--r-- 976 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Low-Level Extraction Interface
==============================

.. module:: babel.messages.extract

The low level extraction interface can be used to extract from directories
or files directly.  Normally this is not needed as the command line tools
can do that for you.

Extraction Functions
--------------------

The extraction functions are what the command line tools use internally to
extract strings.

.. autofunction:: extract_from_dir

.. autofunction:: extract_from_file

.. autofunction:: extract

Language Parsing
----------------

The language parsing functions are used to extract strings out of source
files.  These are automatically being used by the extraction functions but
sometimes it can be useful to register wrapper functions, then these low
level functions can be invoked.

New functions can be registered through the setuptools entrypoint system.

.. autofunction:: extract_python

.. autofunction:: extract_javascript

.. autofunction:: extract_nothing