2025-06-11 16:43:25 +00:00
[](https://amqtt.readthedocs.io/en/latest/)
[](https://github.com/Yakifo/amqtt/actions/workflows/ci.yml)
2025-05-21 16:37:02 +00:00
[](https://github.com/Yakifo/amqtt/actions/workflows/codeql-analysis.yml)
2025-06-25 23:49:50 +00:00
[](https://amqtt.readthedocs.io/)
[](https://discord.gg/S3sP6dDaF3)
2025-06-11 16:43:25 +00:00


[](https://pypi.org/project/amqtt/)
2021-03-13 13:53:37 +00:00
2025-06-17 22:12:05 +00:00

2021-03-16 07:44:33 +00:00
2025-06-11 15:49:09 +00:00
`aMQTT` is an open source [MQTT ](http://www.mqtt.org ) broker and client[^1], natively implemented with Python's [asyncio ](https://docs.python.org/3/library/asyncio.html ).
2021-03-13 13:53:37 +00:00
2025-05-21 13:53:46 +00:00
## Features
2021-03-13 17:32:44 +00:00
2025-05-21 16:37:02 +00:00
- Full set of [MQTT 3.1.1 ](http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html ) protocol specifications
- Communication over TCP and/or websocket, including support for SSL/TLS
2015-11-04 21:32:21 +00:00
- Support QoS 0, QoS 1 and QoS 2 messages flow
2015-11-04 20:36:47 +00:00
- Client auto-reconnection on network lost
2025-06-12 18:28:50 +00:00
- Functionality expansion; plugins included: authentication and `$SYS` topic publishing
2015-11-04 20:36:47 +00:00
2025-05-22 01:59:12 +00:00
## Installation
2015-11-04 20:36:47 +00:00
2025-05-21 16:37:02 +00:00
`amqtt` is available on [PyPI ](https://pypi.python.org/pypi/amqtt )
2016-03-07 14:41:00 +00:00
2025-05-21 13:53:46 +00:00
```bash
$ pip install amqtt
```
2021-03-13 13:53:37 +00:00
2025-05-22 01:59:12 +00:00
## Documentation
2015-11-04 20:36:47 +00:00
2025-05-22 01:59:12 +00:00
Available on [Read the Docs ](http://amqtt.readthedocs.org/ ).
2025-06-09 18:32:55 +00:00
## Containerization
2025-06-11 15:49:09 +00:00
Launch from [DockerHub ](https://hub.docker.com/repositories/amqtt )
2025-06-09 18:32:55 +00:00
```shell
$ docker run -d -p 1883:1883 amqtt/amqtt:latest
```
2025-06-17 14:58:48 +00:00
## Testing
The `amqtt` project runs a test aMQTT broker/server at [test.amqtt.io ](https://test.amqtt.io ) which supports: MQTT, MQTT over TLS, websocket, secure websockets.
2025-05-22 01:59:12 +00:00
## Support
2025-05-21 15:46:46 +00:00
2025-06-11 16:43:25 +00:00
Bug reports, patches and suggestions welcome! Just [open an issue ](https://github.com/Yakifo/amqtt/issues/new ) or join the [discord community ](https://discord.gg/S3sP6dDaF3 ).
2025-05-21 15:46:46 +00:00
2025-05-22 01:59:12 +00:00
## Python Version Compatibility
2025-05-21 16:37:02 +00:00
2025-06-25 23:49:50 +00:00
| Version | hbmqtt compatibility | Supported Python Versions |
| ------- | -------------------- | ------------------------- |
| 0.10.x | yes [^2] | 3.7 - 3.9 |
| 0.11.x | no [^3] | 3.10 - 3.13 |
2025-05-21 16:37:02 +00:00
[^1]: Forked from [HBMQTT ](https://github.com/beerfactory/hbmqtt ) after it was deprecated by the original author.
2025-06-25 23:49:50 +00:00
2025-05-21 16:37:02 +00:00
[^2]: drop-in replacement
2025-06-25 23:49:50 +00:00
2025-05-21 16:37:02 +00:00
[^3]: module renamed and small API differences