Skip to content

Commit

Permalink
Add interface modules to __all__ (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
zariiii9003 authored Apr 16, 2023
1 parent 1f2f29c commit af52622
Show file tree
Hide file tree
Showing 13 changed files with 61 additions and 8 deletions.
1 change: 1 addition & 0 deletions can/interfaces/ics_neovi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"ICSInitializationError",
"ICSOperationError",
"NeoViBus",
"neovi_bus",
]

from .neovi_bus import ICSApiError, ICSInitializationError, ICSOperationError, NeoViBus
8 changes: 7 additions & 1 deletion can/interfaces/ixxat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
"""

__all__ = [
"get_ixxat_hwids",
"IXXATBus",
"canlib",
"canlib_vcinpl",
"canlib_vcinpl2",
"constants",
"exceptions",
"get_ixxat_hwids",
"structures",
]

from can.interfaces.ixxat.canlib import IXXATBus
Expand Down
10 changes: 10 additions & 0 deletions can/interfaces/kvaser/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
"""
"""

__all__ = [
"CANLIBInitializationError",
"CANLIBOperationError",
"KvaserBus",
"canlib",
"constants",
"get_channel_info",
"structures",
]

from can.interfaces.kvaser.canlib import *
5 changes: 4 additions & 1 deletion can/interfaces/neousys/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
""" Neousys CAN bus driver """

__all__ = ["NeousysBus"]
__all__ = [
"NeousysBus",
"neousys",
]

from can.interfaces.neousys.neousys import NeousysBus
2 changes: 2 additions & 0 deletions can/interfaces/pcan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
__all__ = [
"PcanBus",
"PcanError",
"basic",
"pcan",
]

from can.interfaces.pcan.pcan import PcanBus, PcanError
5 changes: 4 additions & 1 deletion can/interfaces/seeedstudio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
"""
"""

__all__ = ["SeeedBus"]
__all__ = [
"SeeedBus",
"seeedstudio",
]

from can.interfaces.seeedstudio.seeedstudio import SeeedBus
5 changes: 4 additions & 1 deletion can/interfaces/serial/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
"""
"""

__all__ = ["SerialBus"]
__all__ = [
"SerialBus",
"serial_can",
]

from can.interfaces.serial.serial_can import SerialBus
3 changes: 3 additions & 0 deletions can/interfaces/socketcan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"CyclicSendTask",
"MultiRateCyclicSendTask",
"SocketcanBus",
"constants",
"socketcan",
"utils",
]

from .socketcan import CyclicSendTask, MultiRateCyclicSendTask, SocketcanBus
5 changes: 4 additions & 1 deletion can/interfaces/socketcand/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
http://www.domologic.de
"""

__all__ = ["SocketCanDaemonBus"]
__all__ = [
"SocketCanDaemonBus",
"socketcand",
]

from .socketcand import SocketCanDaemonBus
9 changes: 8 additions & 1 deletion can/interfaces/systec/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
__all__ = ["UcanBus"]
__all__ = [
"UcanBus",
"constants",
"exceptions",
"structures",
"ucan",
"ucanbus",
]

from can.interfaces.systec.ucanbus import UcanBus
6 changes: 5 additions & 1 deletion can/interfaces/udp_multicast/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
"""A module to allow CAN over UDP on IPv4/IPv6 multicast."""

__all__ = ["UdpMulticastBus"]
__all__ = [
"UdpMulticastBus",
"bus",
"utils",
]

from .bus import UdpMulticastBus
3 changes: 3 additions & 0 deletions can/interfaces/usb2can/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
__all__ = [
"Usb2CanAbstractionLayer",
"Usb2canBus",
"serial_selector",
"usb2canabstractionlayer",
"usb2canInterface",
]

from .usb2canabstractionlayer import Usb2CanAbstractionLayer
Expand Down
7 changes: 6 additions & 1 deletion can/interfaces/vector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"""

__all__ = [
"get_channel_configs",
"VectorBus",
"VectorBusParams",
"VectorCanFdParams",
Expand All @@ -11,6 +10,12 @@
"VectorError",
"VectorInitializationError",
"VectorOperationError",
"canlib",
"exceptions",
"get_channel_configs",
"xlclass",
"xldefine",
"xldriver",
]

from .canlib import (
Expand Down

0 comments on commit af52622

Please sign in to comment.