Coverage for aiocoap/numbers/__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

10 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"""Module in which all meaningful numbers are collected. Most of the submodules 

10correspond to IANA registries. 

11 

12The contents of the :mod:`.constants`, :mod:`.types` and :mod:`.codes` modules 

13are accessible through this module directly; :mod:`.contentformat`'s and 

14:mod:`.optionnumbers`' sole :class:`.contentformat.ContentFormat` and 

15:class:`.optionnumbers.OptionNumber` classes are accessible in the same way. 

16""" 

17 

18from . import constants, types, codes 

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

20from .constants import * # noqa: F401 F403 

21from .types import * # noqa: F401 F403 

22from .codes import * # noqa: F401 F403 

23from .contentformat import ContentFormat, _MediaTypes, _MediaTypesRev 

24from .optionnumbers import OptionNumber 

25 

26__all__ = constants.__all__ + types.__all__ + codes.__all__ + ['OptionNumber', 'ContentFormat'] 

27 

28media_types = _MediaTypes() 

29media_types_rev = _MediaTypesRev()