Skip to main content

Generating MQTT modules

Project description

Generate MQTT Service

gen_mqtt_service is toolset for generation of MQTT service.

Developed in python code: 100%.

The README is used to introduce the modules and provide instructions on how to install the modules, any machine dependencies it may have and any other information that should be provided before the modules are installed.

gen_mqtt_service python checker gen_mqtt_service package checker GitHub issues open GitHub contributors

Table of Contents

Installation

debian linux os

gen_mqtt_service python3 build

Currently there are three ways to install package

  • Install process based on using pip mechanism
  • Install process based on build mechanism
  • Install process based on setup.py mechanism
  • Install process based on docker mechanism
Install using pip

Python package is located at pypi.org.

You can install by using pip

# python3
pip3 install gen-mqtt-service
Install using build

Navigate to release page download and extract release archive.

To install gen_mqtt_service type the following

tar xvzf gen_mqtt_service-x.y.z.tar.gz
cd gen_mqtt_service-x.y.z/
# python3
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py 
python3 -m pip install --upgrade setuptools
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
pip3 install -r requirements.txt
python3 -m build --no-isolation --wheel
pip3 install ./dist/gen_mqtt_service-*-py3-none-any.whl
rm -f get-pip.py
chmod 755 /usr/local/lib/python3.10/dist-packages/usr/local/bin/gen_mqtt_service_run.py
ln -s /usr/local/lib/python3.10/dist-packages/usr/local/bin/gen_mqtt_service_run.py /usr/local/bin/gen_mqtt_service_run.py
Install using py setup

Navigate to release page download and extract release archive.

To install modules, locate and run setup.py with arguments

tar xvzf gen_mqtt_service-x.y.z.tar.gz
cd gen_mqtt_service-x.y.z/
# python3
pip3 install -r requirements.txt
python3 setup.py install_lib
python3 setup.py install_data
python3 setup.py install_egg_info
Install using docker

You can use docker to create image/container.

Dependencies

gen_mqtt_service requires next modules and libraries

Tool structure

gen_mqtt_service is based on OOP.

Generator structure

    gen_mqtt_service/
            ├── conf/
               ├── gen_mqtt_service.cfg
               ├── gen_mqtt_service.logo
               ├── gen_mqtt_service_util.cfg
               ├── project.yaml
               └── template/
                   ├── mosquitto/
                      ├── publisher.template
                      └── subscriber.template
                   ├── node/
                      ├── publisher.template
                      └── subscriber.template
                   ├── node_ws/
                      ├── client.template
                      └── server.template
                   └── paho/
                       ├── publisher.template
                       └── subscriber.template
            ├── __init__.py
            ├── log/
               └── gen_mqtt_service.log
            ├── pro/
               ├── __init__.py
               ├── read_template.py
               └── write_template.py
            └── run/
                └── gen_mqtt_service_run.py

        10 directories, 18 files

Code coverage

Name Stmts Miss Cover
gen_mqtt_service/__init__.py 73 12 84%
gen_mqtt_service/pro/__init__.py 60 0 100%
gen_mqtt_service/pro/read_template.py 56 6 89%
gen_mqtt_service/pro/write_template.py 52 2 96%
Total 241 20 92%

Docs

Documentation Status

More documentation and info at

Contributing

Contributing to gen_mqtt_service

Copyright and Licence

License: GPL v3 License

Copyright (C) 2020 - 2026 by vroncevic.github.io/gen_mqtt_service

gen_mqtt_service is free software; you can redistribute it and/or modify it under the same terms as Python itself, either Python version 3.x or, at your option, any later version of Python 3 you may have available.

Lets help and support PSF.

Python Software Foundation

Donate

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gen_mqtt_service-1.1.4.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gen_mqtt_service-1.1.4-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file gen_mqtt_service-1.1.4.tar.gz.

File metadata

  • Download URL: gen_mqtt_service-1.1.4.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.0 CPython/3.12.3

File hashes

Hashes for gen_mqtt_service-1.1.4.tar.gz
Algorithm Hash digest
SHA256 c56cee422b3132930fd2f836609a80f51f2bdb1cd26fc69ab7b3d8094fe470af
MD5 97133b301e70b516889aca5840b040f2
BLAKE2b-256 e2665fa269ff148ef83d65fd749df7cedb4a0db79a03a3a83f84a6b7b272ce99

See more details on using hashes here.

File details

Details for the file gen_mqtt_service-1.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for gen_mqtt_service-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 67576b26e0da64821775700c6d97fcc3254a3018a13e50996e54552238a8487b
MD5 d2fc05724ae2d7c0917ec581c746f217
BLAKE2b-256 4bfb78d1d776a82123dbca6d5b833b3edc0d867ef9c6cb159cdb2f4ed7f94a30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page