Coverage for aiocoap/__init__.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

6 statements  

1# This file is part of the Python aiocoap library project. 

2# 

3# Copyright (c) 2012-2014 Maciej Wasilak <http://sixpinetrees.blogspot.com/>, 

4# 2013-2014 Christian Amsüss <c.amsuess@energyharvesting.at> 

5# 

6# aiocoap is free software, this file is published under the MIT license as 

7# described in the accompanying LICENSE file. 

8 

9""" 

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

11Application Protocol`_. 

12 

13If you are reading this through the Python documentation, be aware that there 

14is additional documentation available online_ and in the source code's ``doc`` 

15directory. 

16 

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

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

19 

20Module contents 

21--------------- 

22 

23This root module re-exports the most commonly used classes in aiocoap: 

24:class:`.Context`, :class:`.Message` as well as all commonly used numeric 

25constants from :mod:`.numbers`; see their respective documentation entries. 

26 

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

28stable. 

29""" 

30 

31import numbers 

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

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

34from .message import Message, NoResponse 

35from .protocol import Context 

36 

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