|
1 | 1 | """ |
2 | 2 | Snap7 client used for connection to a siemens 7 server. |
3 | 3 | """ |
4 | | -import logging |
5 | 4 | import re |
6 | | -from ctypes import c_int, c_char_p, byref, sizeof, c_uint16, c_int32, c_byte, c_ulong, Array |
7 | | -from ctypes import c_void_p, create_string_buffer |
| 5 | +import logging |
| 6 | +from ctypes import byref, create_string_buffer, sizeof |
| 7 | +from ctypes import Array, c_byte, c_char_p, c_int, c_int32, c_uint16, c_ulong, c_void_p |
8 | 8 | from datetime import datetime |
9 | | -from typing import Union, Tuple, Optional, List |
| 9 | +from typing import List, Optional, Tuple, Union |
10 | 10 |
|
11 | 11 | import snap7 |
12 | | -from snap7.common import check_error, load_library, ipv4 |
| 12 | +from snap7.common import check_error, ipv4, load_library |
13 | 13 | from snap7.exceptions import Snap7Exception |
14 | | -from snap7.types import Areas, WordLen, S7Object, buffer_type, buffer_size, BlocksList, S7CpuInfo, S7DataItem, S7SZL, S7OrderCode, \ |
15 | | - S7Protection, S7SZLList, S7CpInfo |
16 | | -from snap7.types import TS7BlockInfo, param_types, cpu_statuses |
17 | | - |
| 14 | +from snap7.types import S7SZL, Areas, BlocksList, S7CpInfo, S7CpuInfo, S7DataItem |
| 15 | +from snap7.types import S7OrderCode, S7Protection, S7SZLList, TS7BlockInfo, WordLen |
| 16 | +from snap7.types import S7Object, buffer_size, buffer_type, cpu_statuses, param_types |
18 | 17 | logger = logging.getLogger(__name__) |
19 | 18 |
|
20 | 19 |
|
|
0 commit comments