Coverage for aiocoap/__init__.py: 100%
5 statements
« prev ^ index » next coverage.py v7.6.8, created at 2024-11-28 12:34 +0000
« prev ^ index » next coverage.py v7.6.8, created at 2024-11-28 12:34 +0000
1# SPDX-FileCopyrightText: Christian Amsüss and the aiocoap contributors
2#
3# SPDX-License-Identifier: MIT
5"""
6The aiocoap package is a library that implements CoAP, the `Constrained
7Application Protocol`_.
9If you are reading this through the Python documentation, be aware that there
10is additional documentation available online_ and in the source code's ``doc``
11directory.
13.. _`Constrained Application Protocol`: http://coap.technology/
14.. _online: http://aiocoap.readthedocs.io/
16Module contents
17---------------
19This root module re-exports the most commonly used classes in aiocoap:
20:class:`.Context`, :class:`.Message` as well as all commonly used numeric
21constants from :mod:`.numbers`; see their respective documentation entries.
23The presence of :class:`.Message` and :class:`.Context` in the root module is
24stable.
26Submodules are described in the :doc:`the API overview <../api>`.
27"""
29import numbers
31# flake8 doesn't see through the global re-export
32from .numbers import * # noqa: F401, F403
33from .message import Message, NoResponse
34from .protocol import Context
36__all__ = numbers.__all__ + ["Message", "NoResponse", "Context"]