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.

Source Distribution

mqtls-0.5.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

mqtls-0.5-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file mqtls-0.5.tar.gz.

File metadata

  • Download URL: mqtls-0.5.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for mqtls-0.5.tar.gz
Algorithm Hash digest
SHA256 7fb44c3a630d24c27da4c90054068d001a1e1015eee8f66380696974280e502e
MD5 4078c8b03c3cf41400e0b1ec34432756
BLAKE2b-256 20c6369139e0cdd885ab66d3fdb1bb977115d59fa9facd4a896468f446aa2346

See more details on using hashes here.

Provenance

File details

Details for the file mqtls-0.5-py3-none-any.whl.

File metadata

  • Download URL: mqtls-0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for mqtls-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b3e2fa40bb068e4e60fb8ef22286d8eca31c4195084e40cb3e56bf24d0216a2a
MD5 2f868ff13eb1212759bcabd8a960433d
BLAKE2b-256 61b4c7a0718ad8e6ff38eeb1a6964cb019017c2cc7c2d375a31df7ded48210ff

See more details on using hashes here.

Provenance

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