This template generates MQTT Python client module. Its purpose is to abstract for the application client technical information about the broker and the names of topics it should use. Instead, it generates a module that provides a set of indent-driven functions that one can invoke to send a message to the application through the message broker.
2
stars
1
forks
source link
At the moment generated client uses paho module that needs to be also installed to use client #6
In Nodejs we have package.json that enables us to specify dependencies for project. So user of client can do npm install and get all stuff installed, no need for separate installation of each dependency.
I bet there is something like this in Python, like requirements.txt or something else. We need nicer experience for the client user, so they can just do from client import CommentsServiceClient and somehow it works, they do not need to separately do pip installation of paho or anything else
In Nodejs we have
package.json
that enables us to specify dependencies for project. So user of client can donpm install
and get all stuff installed, no need for separate installation of each dependency.I bet there is something like this in Python, like
requirements.txt
or something else. We need nicer experience for the client user, so they can just dofrom client import CommentsServiceClient
and somehow it works, they do not need to separately do pip installation of paho or anything else