Msl-loadlib

Latest version: v0.10.0

Safety actively analyzes 629639 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.5.0

==========================

* Added

- support for loading a Component Object Model (COM) library on Windows
- the `requires_pythonnet` and `requires_comtypes` kwargs to ``freeze_server32.main()``
- ``'clr'`` as an alias for ``'net'`` for the `libtype` parameter in `LoadLibrary`
- the ``utils.get_com_info()`` function
- support for unicode paths in Python 2
- examples for working with numpy arrays and C++ structs

* Changed

- the frozen server32 executable (for Windows/Linux) now runs on Python 3.6.8
- if loading a .NET assembly succeeds but calling `GetTypes()` fails then a detailed error
message is logged rather than raising the exception - the value of `lib` will be `None`
- the default timeout value when waiting for the 32-bit server to start is now 10 seconds
- the `Client64` class now raises `Server32Error` if the 32-bit server raises an exception
- the `Client64` class now inherits from `object` and the reference to `HTTPConnection`
is now a property value
- the `__repr__` methods no longer include the id as a hex number

* Fixed

- set ``sys.stdout = io.StringIO()`` if `quiet=True` on the server

0.4.1

==========================

* Added

- the ``version_info`` namedtuple now includes a *releaselevel*
- Support for Python 3.7

* Fixed

- Issue `11 <https://github.com/MSLNZ/msl-loadlib/issues/11>`_
- ``utils.wait_for_server()`` raised `NameError: name 'TimeoutError' is not defined` for Python 2.7
- ``utils.port_in_use()`` raised `UnicodeDecodeError` (`PR 9 <https://github.com/MSLNZ/msl-loadlib/pull/9>`_)
- ``setup.py`` is now also compatible with Sphinx 1.7+

* Changed

- the frozen server32 executable (for Windows/Linux) now runs on Python 3.6.6
- pythonnet is now an optional dependency on Windows and py4j is now optional for all OS
- rename `Dummy` example to `Echo`

* Removed

- Support for Python 3.3

0.4.0

==========================

* Added

- `Py4J <https://www.py4j.org/>`_ wrapper for loading ``.jar`` and ``.class`` Java files
- example on how to load a library that was built with LabVIEW

* Fixed

- Issue `8 <https://github.com/MSLNZ/msl-loadlib/issues/8>`_
- Issue `7 <https://github.com/MSLNZ/msl-loadlib/issues/7>`_
- ``AttributeError("'LoadLibrary' object has no attribute '_lib'") raised in repr()``

* Changed

- rename ``DotNetContainer`` to ``DotNet``
- use ``socket.socket.bind`` to select an available port instead of checking of
calling ``utils.port_in_use``
- moved the static methods to the ``msl.loadlib.utils`` module:
+ Client64.port_in_use -> utils.port_in_use
+ Client64.get_available_port -> utils.get_available_port
+ Client64.wait_for_server -> utils.wait_for_server
+ LoadLibrary.check_dot_net_config -> utils.check_dot_net_config
+ LoadLibrary.is_pythonnet_installed -> utils.is_pythonnet_installed

0.3.2

==========================

* Added

- include ``os.environ['PATH']`` as a search path when loading a shared library
- the frozen server32 executable (for Windows/Linux) now runs on Python 3.6.3
- support that the package can now be installed by ``pip install msl-loadlib``

* Fixed

- remove ``sys.getsitepackages()`` error for virtualenv (`issue 5 <https://github.com/MSLNZ/msl-loadlib/issues/5>`_)
- received ``RecursionError`` when freezing freeze_server32.py with PyInstaller 3.3
- replaced ``FileNotFoundError`` with ``IOError`` (for Python 2.7 support)
- recompile cpp_lib\*.dll and fortran_lib\*.dll to not depend on external dependencies

0.3.1

==========================
- fix ReadTheDocs build error -- AttributeError: module 'site' has no attribute 'getsitepackages'
- strip whitespace from append_sys_path and append_environ_path
- make pythonnet a required dependency only for Windows

0.3.0

==========================
*NOTE: This release breaks backward compatibility*

- can now pass \*\*kwargs from the Client64 constructor to the Server32-subclass constructor
- new command line arguments for starting the 32-bit server: --kwargs, --append_environ_path
- renamed the --append_path command line argument to --append_sys_path
- Server32.interactive_console() works on Windows and Linux
- edit documentation (thanks to karna48 for the pull request)

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.