Module naming may cause issues & clashes with other python packages
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by inspecting the package layout and references to init.py, sdk_utils.py, tb_device_http.py, tb_device_mqtt.py, tb_gateway_mqtt.py, and utils.py, then check how tb-mqtt-client installs them into site-packages. Done means the SDK files are contained under a unique top-level module or use unique names, without breaking package imports or installation.
Written by the indexing model from the issue text.
Description
Installing tb-mqtt-client results in the following files in python's site-packages directory:
__init__.py
sdk_utils.py
tb_device_http.py
tb_device_mqtt.py
tb_gateway_mqtt.py
utils.py
This gives me a few concerns:
- The
__init__.pyfile at the top-level of site-packages may be imported automatically when anything else from that directory is imported. This could lead to issues if any content is added to this file. - The names
__init__.py,sdk_utils.pyandutils.pyare not very unique and may easily clash with modules from other Python packages.
I recommend moving these files into a single top-level module or prefixing the file names with something unique to prevent issues.
- Dominant language
- Python
- Stars
- 130
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from thingsboard/thingsboard-python-client-sdk
-
Add software OTA Openenhancement
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
verification
Difficulty 3/5 1-2 days Newbie friendliness 35/100
thingsboard/thingsboard-python-client-sdk#85 · 1 comment ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 38/100
-
Roadmap Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
thingsboard/thingsboard-python-client-sdk#19 · 1 comment ·
All issues in thingsboard/thingsboard-python-client-sdk
Similar issues
-
bug ci good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
documentation
Difficulty 2/5 Half a day Newbie friendliness 62/100
inmanta/inmanta-core#10835 ·
-
sponsored
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Diaoul/subliminal#1382 ·