- legacy
OwnetProxy
class deleted - official support for Python 3.6 in
tox.ini
andsetup.py
- Python2 uses
str
instead ofunicode
for pathnames. (E.g. the return ofproxy().dir()
) - Support for Python 3.2 dropped (no more unit testing.)
v0.10.0 re-licensed under LGPL v3
Per call timeout
API implemented.
- restructure
proxy()
factory to avoid circular ref. on saved exception - modify
_OwnetConnection
to ensure that a persistent connection is closed on errors (relevant for timeouts and other connection errors) - implemented explicit timeout on ownet protocol methods;
raises
OwnetTimeout
socket
code reviewed and refactored- wrap calls to socket methods in
_OwnetConnection
and raiseConnError
in case ofOSerror
's (close #5) - deprecated classes moved to
pyownet.legacy
module
No major new features, API cleanup to ensure that connections are
properly closed. Functions that return binary data return bytes
.
- implement dummy context management protocol for
_Proxy
for consitency with _PersistentProxy OwnetProxy
class deprecated- create a diagnostics directory
./diags
- move test suite from
./test
to./tests
pyownet.protocol._OwnetConnection.req()
returnsbytes
and notbytearray
. This is due to a simplification inpyownet.protocol._OwnetConnection._read_socket()
method.- better connection logic in
pyownet.protocol.proxy()
factory: first connect or raiseprotocol.ConnError
, then test owserver protocol or raiseprotocol.ProtocolError
- use relative imports in
pyownet.protocol
./test
and./examples
minor code refactor.gitignore
cleanup (use only project specific ignores)- add
__del__
in_PersistentProxy
to ensure connection is closed - use
with _OwnetConnection
inside_Proxy
to shutdown sockets - implement context management protocol for
_OwnetConnection
to guarantee that connection is shutdown on exit - py26 testing via
unittest2
- transform
./test
directory in package, so that common code (used for reading configuration files) can be shared more easily - move
./pyownet
to./src/pyownet