mercedes-benz / odxtools

odxtools is a collection of utilities to interact with the diagnostic functionality of automotive electronic control units using python
MIT License
171 stars 70 forks source link

Import all classes in the toplevel `__init__.py` #287

Open andlaus opened 5 months ago

andlaus commented 5 months ago

this would allow to import all classes directly in external code instead of having to know the sub-module where the class of interest is defined. example: With this,

from odxtools.diaglayer import DiagLayer

could be replaced by

from odxtools import DiagLayer

On the flipside, this increases the effort required for maintenance, because all classes provided by the project would need to be imported to __init__.py.