Metadata-Version: 2.4
Name: iotpack
Version: 0.1.0
Summary: A simple Python generator for MQTT and CoAP IoT projects
Author: Konrad Zuse
License-Expression: MIT
Keywords: iot,mqtt,coap,supabase,streamlit
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# iotpack

A simple Python package that generates complete IoT projects using MQTT and CoAP.

## Installation

```
pip install iotpack
```

## Usage

```python
import iotpack

iotpack.mqtt()
iotpack.coap()
```

## Generated Files

Each protocol creates a folder (`mqtt/` or `coap/`) with four files:

- client.py
- server.py
- dashboard.py
- requirements.txt

## Quick start

```
cd mqtt
pip install -r requirements.txt
set SUPABASE_URL=your-url        (Windows)   |   export SUPABASE_URL=your-url   (Mac/Linux)
set SUPABASE_KEY=your-key        (Windows)   |   export SUPABASE_KEY=your-key   (Mac/Linux)
python server.py
python client.py
streamlit run dashboard.py
```

## Supabase table

Run this once in the Supabase SQL editor:

```sql
create table sensor_data (
  id bigint generated always as identity primary key,
  device_id text,
  temperature float,
  humidity float,
  created_at timestamptz default now()
);
```

## Features

- MQTT client and server
- CoAP client and server
- Supabase database integration
- Streamlit dashboard
- Automatic requirements generation

## License

MIT
