Coverage for src/bluetooth_sig/gatt/__init__.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2025-10-30 00:10 +0000

1"""GATT package initialization.""" 

2 

3from __future__ import annotations 

4 

5from .characteristics.base import BaseCharacteristic 

6from .constants import ( 

7 ABSOLUTE_ZERO_CELSIUS, 

8 PERCENTAGE_MAX, 

9 SINT8_MAX, 

10 SINT8_MIN, 

11 SINT16_MAX, 

12 TEMPERATURE_RESOLUTION, 

13 UINT8_MAX, 

14 UINT16_MAX, 

15) 

16from .exceptions import ( 

17 BluetoothSIGError, 

18 CharacteristicError, 

19 DataParsingError, 

20 ServiceError, 

21 UUIDResolutionError, 

22 ValueRangeError, 

23) 

24from .services.base import BaseGattService 

25from .uuid_registry import ( 

26 CharacteristicSpec, 

27 CustomUuidEntry, 

28 FieldInfo, 

29 UnitInfo, 

30 UuidInfo, 

31 UuidOrigin, 

32 UuidRegistry, 

33 uuid_registry, 

34) 

35 

36__all__ = [ 

37 "BaseGattService", 

38 "BaseCharacteristic", 

39 "CharacteristicSpec", 

40 "CustomUuidEntry", 

41 "FieldInfo", 

42 "UnitInfo", 

43 "UuidInfo", 

44 "UuidOrigin", 

45 "UuidRegistry", 

46 "uuid_registry", 

47 # Constants 

48 "ABSOLUTE_ZERO_CELSIUS", 

49 "PERCENTAGE_MAX", 

50 "SINT16_MAX", 

51 "SINT8_MAX", 

52 "SINT8_MIN", 

53 "TEMPERATURE_RESOLUTION", 

54 "UINT16_MAX", 

55 "UINT8_MAX", 

56 # Exceptions 

57 "BluetoothSIGError", 

58 "CharacteristicError", 

59 "DataParsingError", 

60 "ServiceError", 

61 "UUIDResolutionError", 

62 "ValueRangeError", 

63]