Aiocoap

Latest version: v0.4.9

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

Scan your dependencies

Page 1 of 3

0.4.9

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

This is a bugfix release to restore functionality when used through Jupyter and in Python's optimized mode.

Bug fixes
~~~~~~~~~

* enum: Fix visibility of _repr_html_ on Python versions < 3.13.
* numbers: Don't export _code, which is only present with __debug__.

0.4.8

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

Compatibility
~~~~~~~~~~~~~

* Block-wise requests now send Size1

Error handling
~~~~~~~~~~~~~~

* Errors raised through the udp6 interface now report name and description in
addition to their error number.
* Many errors now have an ``.extra_help()`` method, which is shown in
aiocoap-client to guide the user's debugging.
* Some non-aiocoap errors being raised as a result of network errors were
turned into error.NetworkError.
* All CoAP error response codes now have a corresponding
``ConstructionRenderableError`` and can thus be raised easily from handers.

Platform support
~~~~~~~~~~~~~~~~

* Support for Python versions below 3.10 was dropped.
* Inconsistent platform implementations of AI_V4MAPPED and AI_ADDRCONFIG are
now worked around by custom implementations of the lookup process.
* Android is now supported.
* Python 3.13 is now supported.
* Kivy examples were updated to current mainline Kivy.
* gbulb support is being phased out in favor of pygobject's upcoming native async support.

Infrastructure
~~~~~~~~~~~~~~

* Build system was modernized and migrated to pyproject.toml.
Tests are now run using tox or ``python3 -m unittest``
* Type annotations are now tested using mypy.
* The ``ExtensibleIntEnum`` type underlying ``ContentFormat`` and
``OptionNumber`` was altered to now use ``enum.IntEnum`` as its base.

Deprecations
~~~~~~~~~~~~

* The request.observation.register_callback / register_errback interface is
deprecated in favor of the asynchronous iteration interface (aiter).
* Setting media type and encoding on a ContentFormat is deprecated, use
``.define(...)`` instead.
* ``OptionNumber.OBJECT_SECURITY`` is deprecated; it is an alias for ``.OSCORE``.
(Same goes for the ``message.opt.object_security`` attribute).

Minor fixes
~~~~~~~~~~~

* aiocoap-client can now use the iPATCH method.
* aiocoap-client output colors were improved.
* cbor-diag is recognized as a prerequisite for pretty printing.
* Corner cases for SSL configuration for WebSockets were fixed.
* Documentation updates, including references to pyodide.
* Corner cases of implicit observation cancellation were fixed.
* Access to cryptography internals now uses the proper public interfaces.

0.4.7

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

Compatibility
~~~~~~~~~~~~~

* Group OSCORE updated to -17.

The setup of group contexts requires altered parameters, as the descriptions
of these contexts changed in the underlying specification.

Minor fixes
~~~~~~~~~~~

* Several minor documentation fixes.

0.4.6alpha3

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

Bug fixes
~~~~~~~~~

* Include vendored modules in sdist and wheels.

0.4.6alpha2

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

Bug fixes
~~~~~~~~~

* ``request.get_request_uri()`` in a server handler now reports the URI with
the correct path.
* Broken links fixed in documentation.

Meta
~~~~

* Updated copyright statements, now complying with reuse.software specs.
* LinkHeader dependency moved from unmaintained PyPI package into vendored copy
to avoid trouble with missing .whl (wheel) files.

0.4.6alpha1

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

CLI changes
~~~~~~~~~~~

* aiocoap-client now uses CBOR Diagnostic Notation both for pretty-printed
output and when adjusting a ``--payload`` argument to a CBOR
``--content-format``. This should be a compatible change for users who
previously used JSON for input, but needs adjustments for users who used
Python literals.

* CBOR sequences are now recognized for pretty-printing, and accepted (wrapped
in an array) for ``--payload`` format adjustment.

New features
~~~~~~~~~~~~

* Initial support for pyodide (eg. in Jupyter):

* The websockets client transport is made available through the browser's
APIs.
* Messages and other elements are available for HTML pretty-printing.

* Messages now have a ``.transport_tuning`` property, which may be overwritten
to influence transmission characteristics.

Bug fixes
~~~~~~~~~

* BERT blocks are now extracted correctly.
* oscore: Constant with typo renamed (``COSE_COUNTERSI(NG→GN)ATURE0``).

Deprecations
~~~~~~~~~~~~

* numbers.constants: Transport related parameters are deprecated, use
``.transport_tuning`` (see above).

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.