Coverage for aiocoap/__init__.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-06-16 16:09 +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""" 

26 

27import numbers 

28# flake8 doesn't see through the global re-export 

29from .numbers import * # noqa: F401, F403 

30from .message import Message, NoResponse 

31from .protocol import Context 

32 

33__all__ = numbers.__all__ + ['Message', 'NoResponse', 'Context']