Ncplib

Latest version: v6.1.0

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

Scan your dependencies

Page 2 of 6

4.0.0

------------------

- **Breaking:** Renamed :class:`ConnectionError` to :class:`NetworkError` to avoid conflicts with stdlib.
- Added `timeout` parameter to :meth:`connect`, :meth:`start_server` and :class:`Connection`. This is the network
timeout (in seconds). If `None`, no timeout is used, which can lead to deadlocks. The default timeout is 15 seconds.
A :class:`NetworkTimeoutError` error will be raised if a timeout is exceeded.

3.0.0

------------------

This release requires a minimum Python version of 3.7.

- **Breaking:** Python 3.7 is now the minimum supported Python version.
- **Breaking:** Removed ``app`` framework.
- **Breaking:** Removed ``run_client`` and ``run_app``.
- Added :meth:`Connection.wait_closed` to ensure that the connection is fully closed (needed since Python 3.7).
- Added full PEP 484 type hints, allowing tools like `mypy` to be used to statically-verify `ncplib` programs.

2.3.3

------------------

- Only applying wait_for compatibility shim to Python 3.4.2 and below.

2.3.2

------------------

- Forcing cancellation of timed out connection in ``run_client`` in Python 3.4.2.
- Added `examples`_.

2.3.1

------------------

- Using ``remote_hostname`` in connect errors messages generated by ``run_client``.
- Fixed issues with mixing coroutines and async defs.
- Fixed issues with logging connection errors in ``run_client``.

2.3.0

------------------

- Added :attr:`Field.connection`.
- Added ``app``.
- Added :class`NCPError`, :class:`ConnectionError` and :class`ConnectionClosed` exceptions.
- Added ``run_client``.
- :func:`connect`, :meth:`Connection.recv`, :meth:`Connection.recv_field`, :meth:`Response.recv` and
:meth:`Response.recv_field` no longer raise :class:`EOFError` or :class:`OSError`, but a subclass of
:class:`NCPError`.
- Micro-optimizations, roughly doubling the performance of encode/decode.
- Connection open and close log messages promoted from ``DEBUG`` to ``INFO`` level.

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.