nyamuk : python mqtt client library based on libmosquitto

400 views
Skip to first unread message

Iwan Budi Kusnanto

unread,
Mar 8, 2012, 9:16:32 PM3/8/12
to mq...@googlegroups.com
Hi All,
I'm happy to annouce nyamyuk [1], my python mqqt client library based on
libmosquitto.
This library is heavily used in my hobby project, but not in production yet.
The development of nyamuk is currently suspended because of
the project that needed it is also suspended.

Current Features:
- CONNECT
with Username
with Password
- PUBLISH
- SUBSCRIBE
- PINGREQ
- QoS = 0

TODO:
----
- SSL
- QoS 1
- QoS 2
- Proper Docstring


If people have interest or find it useful, i will be very happy to
improve this library


[1]https://github.com/iwanbk/nyamuk


Best Regards,

Iwan Budi Kusnanto

Iwan Budi Kusnanto

unread,
Mar 8, 2012, 9:43:53 PM3/8/12
to mq...@googlegroups.com
Why i developed nyamuk while python-mosquitto existed?
Because python-mosquitto is only a python binding for libmosquitto.
Pure python library will be helpfull for debugging purpose,
at least for me.

Best Regards,

Iwan Budi Kusnanto

Dariusz Suchojad

unread,
Mar 9, 2012, 6:02:12 AM3/9/12
to mq...@googlegroups.com, Iwan Budi Kusnanto
Iwan Budi Kusnanto wrote:

Hi Iwan,

> Why i developed nyamuk while python-mosquitto existed?
> Because python-mosquitto is only a python binding for libmosquitto.
> Pure python library will be helpfull for debugging purpose,
> at least for me.

This will certainly come in handy for people using monkey-patching
asynchronous servers like gevent, being written in Python it will be
able to offer a non-blocking interface to MQTT brokers.

cheers,

--
Dariusz Suchojad

andyp...@gmail.com

unread,
Mar 11, 2012, 3:39:15 PM3/11/12
to mq...@googlegroups.com
Thanks for making us aware of this. I've quickly tested on OS X with your test clients talking to the new Eclipse test broker (m2m.eclipse.org) and it seems to work ok.

I've included this news in the latest mqtt.org blog post and I will add it to the Software page of the website soon.
--
To learn more about MQTT please visit http://mqtt.org

To post to this group, send email to mq...@googlegroups.com
To unsubscribe from this group, send email to
mqtt+unsubscribe@googlegroups.com

For more options, visit this group at
http://groups.google.com/group/mqtt



--
Andy Piper | Farnborough, Hampshire (UK)
blog: http://andypiper.co.uk   |   skype: andypiperuk
twitter: @andypiper  |  images: http://www.flickr.com/photos/andypiper

Iwan Budi Kusnanto

unread,
Mar 12, 2012, 4:21:25 AM3/12/12
to Dariusz Suchojad, mq...@googlegroups.com

Actually i have developed very simple mqtt server for my hoby project
using nyamuk and gevent.

It is very simple that it doesn't support hierarchial topic, so you
can't subscribe using # and +. And of course it only suport QOS 0, like
nyamuk.

I have not published the server as it is still in early stage (developed
only in one week) and i don't think that someone will need my server.
But if someone have interest or want to make contribution, i will happy
to share it.

>
> cheers,
>


--
Iwan Budi Kusnanto

Dariusz Suchojad

unread,
Mar 12, 2012, 7:15:12 AM3/12/12
to mq...@googlegroups.com
Iwan Budi Kusnanto wrote:

> I have not published the server as it is still in early stage (developed
> only in one week) and i don't think that someone will need my server.
> But if someone have interest or want to make contribution, i will happy
> to share it.

Such things are always useful. You did need it so there's a high chance
there are likewise-minded people scratching the same itch. You'll never
know if you don't release it :-)

cheers,

--
Dariusz Suchojad

Iwan Budi Kusnanto

unread,
Mar 15, 2012, 10:47:59 AM3/15/12
to mq...@googlegroups.com
On 03/09/2012 09:16 AM, Iwan Budi Kusnanto wrote:

> This library is heavily used in my hobby project, but not in production
> yet.
> The development of nyamuk is currently suspended because of
> the project that needed it is also suspended.

I started another more serious project that will use nyamuk as mqtt library.
So, this library is not suspended anymore.
Please expect some changes in the API of nyamuk v0.1

Warm Regards

--
Iwan Budi Kusnanto

Iwan Budi Kusnanto

unread,
Apr 19, 2012, 5:04:41 AM4/19/12
to mq...@googlegroups.com
Some updates about this library.
I just released v0.1 of this library and upload it to pypi.
Now, you can install it with pip:
pip install nyamuk

Best Regards,

--
Iwan Budi Kusnanto

Andy Piper

unread,
Apr 19, 2012, 2:39:30 PM4/19/12
to mq...@googlegroups.com
Seems to work nicely - successfully installed using pip on OS X and tested the demos.

What level of completeness is this at - does it support more than QoS 0?

-- 
Andy Piper
Sent with Sparrow

--
To learn more about MQTT please visit http://mqtt.org

To post to this group, send email to mq...@googlegroups.com
To unsubscribe from this group, send email to

Iwan Budi Kusnanto

unread,
Apr 20, 2012, 6:30:14 AM4/20/12
to mq...@googlegroups.com
On 04/20/2012 01:39 AM, Andy Piper wrote:
> Seems to work nicely - successfully installed using pip on OS X and
> tested the demos.

Thanks for trying :)

>
> What level of completeness is this at - does it support more than QoS 0?

No feature addition since my first announcement in this mailing list.
Most of change is refactoring and some checking using pylint and pychecker.

>
> --
> Andy Piper
> Sent with Sparrow <http://www.sparrowmailapp.com/?sig>


>
> On Thursday, 19 April 2012 at 10:04, Iwan Budi Kusnanto wrote:
>
>> Some updates about this library.
>> I just released v0.1 of this library and upload it to pypi.
>> Now, you can install it with pip:
>> pip install nyamuk
>>
>> Best Regards,
>>
>> --
>> Iwan Budi Kusnanto
>>
>> --
>> To learn more about MQTT please visit http://mqtt.org
>>
>> To post to this group, send email to mq...@googlegroups.com
>> To unsubscribe from this group, send email to
>> mqtt+uns...@googlegroups.com
>>
>> For more options, visit this group at
>> http://groups.google.com/group/mqtt
>
> --
> To learn more about MQTT please visit http://mqtt.org
>
> To post to this group, send email to mq...@googlegroups.com
> To unsubscribe from this group, send email to
> mqtt+uns...@googlegroups.com
>
> For more options, visit this group at
> http://groups.google.com/group/mqtt


--
Iwan Budi Kusnanto

Reply all
Reply to author
Forward
0 new messages