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:


$ pip3 install mqtls
$ pip install mqtls

PyPI link:


Basic usage in master mode:

from mqtls import mqtls

broker = mqtls()

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

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

You may also use it as a normal client:

from mqtls import mqtls

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

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

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


Copyright © 2020 Efrén Boyarizo
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 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.

Source Distribution

mqtls-0.3.tar.gz (2.9 kB view hashes)

Uploaded source

Supported by

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