Coverage for aiocoap/__init__.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.5.4, created at 2024-07-10 11:47 +0000

1# SPDX-FileCopyrightText: Christian Amsüss and the aiocoap contributors 

2# 

3# SPDX-License-Identifier: MIT 

4 

5""" 

6The aiocoap package is a library that implements CoAP, the `Constrained 

7Application Protocol`_. 

8 

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. 

12 

13.. _`Constrained Application Protocol`: http://coap.technology/ 

14.. _online: http://aiocoap.readthedocs.io/ 

15 

16Module contents 

17--------------- 

18 

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. 

22 

23The presence of :class:`.Message` and :class:`.Context` in the root module is 

24stable. 

25 

26Submodules are described in the :doc:`the API overview <../api>`. 

27""" 

28 

29import numbers 

30 

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 

35 

36__all__ = numbers.__all__ + ["Message", "NoResponse", "Context"]