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 37 38 39 40 41 42 43 44 45 46 47 48
|
Examples
********
The `examples` subdirectory contains examples (based on the simple C++
examples) showing how to use the Python bindings:
`simpleindex.py <examples/simpleindex.py>`_,
`simplesearch.py <examples/simplesearch.py>`_,
`simpleexpand.py <examples/simpleexpand.py>`_.
There's also
`simplematchdecider.py <examples/simplematchdecider.py>`_
which shows how to define a MatchDecider in Python.
.. _simplesearch:
simplesearch.py
===============
.. literalinclude :: examples/simplesearch.py
:language: python
:linenos:
.. _simpleindex:
simpleindex.py
==============
.. literalinclude :: examples/simpleindex.py
:language: python
:linenos:
.. _simpleexpand:
simpleexpand.py
===============
.. literalinclude :: examples/simpleexpand.py
:language: python
:linenos:
.. _simplematchdecider:
simplematchdecider.py
=====================
.. literalinclude :: examples/simplematchdecider.py
:language: python
:linenos:
|