Metadata-Version: 2.4
Name: aiomqtt
Version: 3.0.0a1
Summary: The idiomatic asyncio MQTT client
Project-URL: Source, https://github.com/empicano/aiomqtt
Project-URL: Documentation, https://github.com/empicano/aiomqtt/tree/main/docs
Project-URL: Issue tracker, https://github.com/empicano/aiomqtt/issues
Author-email: Frederik Aalund <fpa@sbtinstruments.com>, Felix Böhm <f@bo3hm.com>, Jonathan Plasse <jonathan.plasse@live.fr>
License: BSD 3-Clause License
        
        Copyright (c) 2020, SBT Instruments
        
        Redistribution and use in source and binary forms, with or without
        modification, are permitted provided that the following conditions are met:
        
        1. Redistributions of source code must retain the above copyright notice, this
           list of conditions and the following disclaimer.
        
        2. Redistributions in binary form must reproduce the above copyright notice,
           this list of conditions and the following disclaimer in the documentation
           and/or other materials provided with the distribution.
        
        3. Neither the name of the copyright holder nor the names of its
           contributors may be used to endorse or promote products derived from
           this software without specific prior written permission.
        
        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
        AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
        IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
        DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
        FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
        DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
        SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
        CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
        OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
        OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: <4.0,>=3.11
Requires-Dist: mqtt5~=0.5.0
Description-Content-Type: text/markdown

# aiomqtt

<a href="https://pypi.org/project/aiomqtt"><img alt="PyPI downloads" src="https://img.shields.io/pypi/dm/aiomqtt"></a> <a href="https://pypi.org/project/aiomqtt"><img alt="PyPI version" src="https://img.shields.io/pypi/v/aiomqtt"></a> <a href="https://pypi.org/project/aiomqtt"><img alt="Supported Python versions" src="https://img.shields.io/pypi/pyversions/aiomqtt.svg"></a>

The idiomatic asyncio MQTT client. Write code like this:

**Publish**

```python
async with aiomqtt.Client(hostname="test.mosquitto.org") as client:
    await client.publish("ducks/louie/status", b"quack")
```

**Subscribe**

```python
async with aiomqtt.Client(hostname="test.mosquitto.org") as client:
    await client.subscribe("ducks/#", max_qos=aiomqtt.QoS.AT_MOST_ONCE)
    async for message in client.messages():
        print(message.payload)
```

## Key features

- No callbacks! 👍
- Complete MQTTv5 support (flow control, user properties, ...)
- Automatic reconnection
- Fine-grained control over acknowledgments
- Fully type-hinted

## Installation

```
pip install aiomqtt
```

The only dependency is [mqtt5](https://github.com/empicano/mqtt5).

## Documentation

To get started, see [the guides](https://github.com/empicano/aiomqtt/tree/main/docs).

If you're new to MQTT, we recommend reading [HiveMQ's MQTT essentials](https://www.hivemq.com/mqtt/) as an introduction. Afterward, the [MQTTv5 specification](https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html) is a great reference.

The [RealPython walkthrough](https://realpython.com/async-io-python/) is a nice introduction to Python's asyncio.

## Contributing

We're happy about contributions! See [CONTRIBUTING.md](https://github.com/empicano/aiomqtt/blob/main/CONTRIBUTING.md) to get started.

## Versioning

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Changelog

See [CHANGELOG.md](https://github.com/empicano/aiomqtt/blob/main/CHANGELOG.md), which follows the principles of [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
