Skip to main content

iotpack

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

Installation

pip install iotpack

Usage

import iotpack

iotpack.mqtt()     # asks for table name and fields
iotpack.coap()

You can also pass them directly (no questions asked):

iotpack.mqtt("weather", "temperature,humidity")
iotpack.coap("farm", "soil_moisture,ph,pump:bool")

Fields are comma separated. Default type is float; add :int, :text or :bool to change it (e.g. status:text,count:int). id and created_at are added automatically.

Optional arguments: topic= (MQTT), resource= (CoAP), folder=.

Command line:

iotpack mqtt --table weather --fields temperature,humidity

Generated Files

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

  • client.py
  • server.py
  • dashboard.py
  • requirements.txt
  • schema.sql (the Supabase table matching your fields)

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 the generated schema.sql once in the Supabase SQL editor (it is also printed when you run iotpack.mqtt() / iotpack.coap()).

Features

  • MQTT client and server
  • CoAP client and server
  • Supabase database integration
  • Streamlit dashboard
  • Custom table name and fields
  • Automatic requirements and SQL generation

License

MIT

Metadata

Release files for iotpack 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iotpack 0.2.0
File Size Uploaded Provenance Actions
iotpack-0.2.0.tar.gz 6.6 kB Without provenance Details for iotpack-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for iotpack 0.2.0
File Interpreter ABI Platform Actions
iotpack-0.2.0-py3-none-any.whl Python 3 none any Details for iotpack-0.2.0-py3-none-any.whl

Total release size: 14.0 kB

Release files / iotpack-0.2.0.tar.gz

Download URL iotpack-0.2.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8b533bb00da73d2c14ddac8a128e83af4fd0d8c8d69bdaff5cfdb05a83333493
BLAKE2b-256 checksum
How to use checksums
2c4a0a23489ea1098c7607ec4c5ed4393a4b6d088789713be9648939bde40e85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / iotpack-0.2.0-py3-none-any.whl

Download URL iotpack-0.2.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5153220b00f3eeb8ff24bbfb9d1d8bcf6385eca8e9a64d19af11984dbb291f0c
BLAKE2b-256 checksum
How to use checksums
88e28f38ba4eb8e59abf18c572eaada98a918414dc462a679ecbe4d215c3e39b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for iotpack 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page