summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorDavid Wagner <david.wagner@intel.com>2015-01-19 14:30:43 +0100
committerDavid Wagner <david.wagner@intel.com>2015-01-28 20:02:57 +0100
commit708d1166897a1f2678273d2febbfa8b2d36f9bc4 (patch)
treef90db6c0fdd05ea246432b7e36a1c12345b825be /bindings
parent2a297b123c9d86bc95f26671b16422df6cb69f75 (diff)
downloadexternal_parameter-framework-708d1166897a1f2678273d2febbfa8b2d36f9bc4.zip
external_parameter-framework-708d1166897a1f2678273d2febbfa8b2d36f9bc4.tar.gz
external_parameter-framework-708d1166897a1f2678273d2febbfa8b2d36f9bc4.tar.bz2
python bindings: add a README
Change-Id: I361ef7ca42fb79f61164f227b8f7893f90332b62 Signed-off-by: David Wagner <david.wagner@intel.com>
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/README.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/bindings/python/README.md b/bindings/python/README.md
new file mode 100644
index 0000000..f2ad928
--- /dev/null
+++ b/bindings/python/README.md
@@ -0,0 +1,29 @@
+# Python bindings
+
+These are bindings on the `CParameterMgrFullConnector` class, its inner
+`Ilogger` class and both classes involved in the SelectionCriterion creation.
+
+They are complete enough to write a parameter-framework client in Python and
+also access most of the tuning interface.
+
+## Generation
+
+The bindings are defined unsing SWIG in the `pfw.i` file and the actual source
+files are generated by the command found in `regen_swig.sh`. This command must
+be re-run whenever any file in `parameter/include` is modified.
+
+Two things are generated:
+
+- A C++ source file providing a low-level wrapping of the parameter-framework
+ classes. When compiled as a shared library, it can be imported from Python as
+ a module called `_PyPfw` but this module is not for direct use.
+- A Python module called `PyPfw`, using `PyPfw`, providing proxy classes of the
+ parameter-framework's native classes. *Please not that in the context of the
+ Python bindings, the `CParameterMgrFullConnector` class is renamed
+ `ParameterFramework`.*
+
+## Usage
+
+`sample.py` provides an example of how to use the PyPfw module. Note that the
+PYTHONPATH env variable must contain the directory of both `_PyPfw.so` and
+`PyPfw.py`.