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 75 14 81%
gen_mqtt_service/pro/__init__.py 62 2 97%
gen_mqtt_service/pro/read_template.py 58 8 86%
gen_mqtt_service/pro/write_template.py 54 4 93%
Total 249 28 89%

Docs

Documentation Status

More documentation and info at

Contributing

Contributing to gen_mqtt_service

Copyright and Licence

License: GPL v3 License

Copyright (C) 2020 - 2024 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.3.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

gen_mqtt_service-1.1.3-py3-none-any.whl (36.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gen_mqtt_service-1.1.3.tar.gz
Algorithm Hash digest
SHA256 1165aef5a6fcb0b7ad89381827f234831148bf14f5f911268bb68d95ef472d83
MD5 c6279aaf22e145a9371a0511a7c8ae52
BLAKE2b-256 c03854207a4a34c1b86b6acb9be46f812705845f619981865355bded099349b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gen_mqtt_service-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5394b54c83daac5e26fac95d2eff31f48c688f6238c3fee758459bfb4536e251
MD5 f348aa022a634437e1ab51253edc170f
BLAKE2b-256 64e9360001f322ab51ae061406e18ce5fdd43e267089bbba74b3efe75e877fa0

See more details on using hashes here.

Supported by

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