Skip to main content

MqTLS client for python

Project description

MqTLS client for python

This repository contains the client of Message Queuing Telemetry over SSL/TLS for python. You can read more at: https://github.com/efrenbg1/gobroker

Install

$ pip3 install mqtls
or
$ pip install mqtls

PyPI link: https://pypi.org/project/mqtls/

Usage

Basic usage in master mode:

from mqtls import mqtls

broker = mqtls()

if broker.publish('mytopic', 0, 'hello from python'):
    print("Message sent!")

print(broker.retrieve('mytopic', 0))

You may also use it as a normal client:

from mqtls import mqtls

broker = mqtls(host='127.0.0.1', port=2443, user='myuser', pw='secret!')

if broker.publish('mytopic', 0, 'hello from python'):
    print("Message sent!")

print(broker.retrieve('mytopic', 0))

License

Copyright © 2020 Efrén Boyarizo efren@boyarizo.es
This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.

Project details


Download files

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

Files for mqtls, version 0.5
Filename, size File type Python version Upload date Hashes
Filename, size mqtls-0.5-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mqtls-0.5.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page