summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2011-03-04 02:15:38 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2011-03-04 02:15:38 +0000
commit5c9bbd27f98f230d04d908d5b19b74c8399e5510 (patch)
tree592a14c7aa3a7d0ab8a141f061fdb0803de7a0e4
parent2a6d533e6f0a025c80ff43dbfbec68e675566307 (diff)
downloadpyserial-git-5c9bbd27f98f230d04d908d5b19b74c8399e5510.tar.gz
document the new possibilities for URL handlers, mention py2exe
-rw-r--r--pyserial/documentation/appendix.rst27
-rw-r--r--pyserial/documentation/index.rst2
2 files changed, 28 insertions, 1 deletions
diff --git a/pyserial/documentation/appendix.rst b/pyserial/documentation/appendix.rst
index 9c216f8..487a334 100644
--- a/pyserial/documentation/appendix.rst
+++ b/pyserial/documentation/appendix.rst
@@ -34,6 +34,33 @@ Test your setup.
though).
+URL handlers
+============
+``serial_for_url`` can be used to access "virtual" serial ports identified by
+an URL scheme. E.g. for the RFC 2217, ``rfc2217:://``.
+
+Custom URL handlers can be added in the ``serial.urlhandler`` directory.
+Modules must be named ``protocol_xxx.py`` where ``xxx`` is the part that is
+used in the URL (``xxx://``).
+
+This is possible starting from pySerial V2.6.
+
+
+py2exe
+======
+py2exe and similar packaging programs scan the sources for import statements
+and create a list of modules that they package. pySerial may create two issues
+with that:
+
+- implementations for other modules are found. On Windows, it's save to exclude
+ 'serialposix', 'serialjava' and 'serialcli' as these are not used.
+
+- ``serial_for_url`` does a dynamic lookup of protocol handlers at runtime.
+ If this function is used, the desired handlers have to be included manually
+ (e.g. 'serial.urlhandler.protocol_socket',
+ 'serial.urlhandler.protocol_rfc2217', etc.)
+
+
Related software
================
diff --git a/pyserial/documentation/index.rst b/pyserial/documentation/index.rst
index bfdd59f..ed306ba 100644
--- a/pyserial/documentation/index.rst
+++ b/pyserial/documentation/index.rst
@@ -13,7 +13,7 @@ Other pages (online)
- `project page on SourceForge`_
- `SVN repository`_
- `Download Page`_ with releases
-- This page, when viewed online is at http://pyserial.sf.net.
+- This page, when viewed online, is at http://pyserial.sf.net.
.. _`project page on SourceForge`: http://sourceforge.net/projects/pyserial/
.. _`SVN repository`: http://sourceforge.net/svn/?group_id=46487