Skip to main content

puffco-py 💨

PyPI Version Python Versions Docs License: MIT

A Python library and CLI for Puffco Peak Pro and Puffco Proxy smart vaporizers over Bluetooth Low Energy (BLE).

Stream live bowl temperatures and battery levels, control heating sessions and profiles, and build custom desktop widgets, home automations, or web apps.

🌐 Website & Live Docs: puffco-py.soymilkisok.com


Features

  • Real-Time Telemetry: Stream bowl temperature (~16 FPS active / 250ms idle), battery %, chamber status, and session countdowns.
  • Session Control: Start/stop heat cycles, trigger boosts, switch profiles, and tweak target temperatures.
  • Async & Thread-Safe: Built on asyncio (bleak), with a ThreadedPuffcoClient bridge for desktop GUIs (Tkinter, PyQt, rumps) and sync scripts.
  • Auto-Discovery: Automatically find and connect to nearby Puffco hardware.
  • Built-in CLI: Terminal commands for monitoring, scanning, and heat control right out of the box.

Installation

pip install puffco-py

For the terminal dashboard and desktop GUI extras:

pip install "puffco-py[cli,gui]"

Quickstart

import asyncio
from puffco_py import PuffcoClient


async def main():
    async with PuffcoClient() as client:
        print(f"Connected to {client.telemetry.device_name} ({client.telemetry.chamber_name})")

        # Stream real-time telemetry updates
        def on_update(telemetry):
            print(f"\rTemp: {telemetry.live_temp_f:.1f}°F | State: {telemetry.state_name}", end="")

        client.add_telemetry_listener(on_update)
        await client.start_telemetry_stream()

        # Stream for 15 seconds
        await asyncio.sleep(15)


asyncio.run(main())

Building a desktop GUI or synchronous script? Use ThreadedPuffcoClient so you don't have to juggle asyncio event loops. See examples/03_threaded_gui.py.


Command-Line Interface (CLI)

puffco-py installs a standalone terminal tool:

# Scan for nearby devices and signal strength
puffco-py scan

# Stream a live terminal telemetry dashboard
puffco-py monitor

# View hardware serial, firmware version, and heat profiles
puffco-py info

# Trigger or abort heat sessions
puffco-py sesh start
puffco-py sesh boost
puffco-py sesh stop

Examples & Integrations

The examples/ directory contains standalone, runnable scripts:

See examples/README.md for full descriptions and setup steps.


Documentation

Detailed documentation is available in docs/ and on the web:


Running Tests

Run the offline unit test suite:

python3 -m unittest discover tests/

Credits & Acknowledgments

puffco-py builds upon foundational protocol research and reverse-engineering from the community:


License

This project is licensed under the MIT License.


puffco-py is an independent, community-developed open-source reverse-engineering project. It is NOT affiliated with, authorized, maintained, sponsored, or endorsed by Puff Corp. or any of its affiliates. Puffco, Peak, Peak Pro, Proxy, 3D Chamber, and 3DXL are registered trademarks of Puff Corp. Nominative use of these names is strictly for identification and interoperability purposes under Fair Use.

Metadata

Release files for puffco-py 0.1.2

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

Source distribution (sdist)

Source distribution for puffco-py 0.1.2
File Size Uploaded Provenance Actions
puffco_py-0.1.2.tar.gz 37.9 kB With provenance Details for puffco_py-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for puffco-py 0.1.2
File Interpreter ABI Platform Actions
puffco_py-0.1.2-py3-none-any.whl Python 3 none any Details for puffco_py-0.1.2-py3-none-any.whl

Total release size: 70.7 kB

Release files / puffco_py-0.1.2.tar.gz

Download URL puffco_py-0.1.2.tar.gz
Size 37.9 kB
Tags Source
SHA-256 checksum
How to use checksums
04e30587f0c842d292a672fcb68f152ce4fd0966566b99f1bb2b3137b9afaad6
BLAKE2b-256 checksum
How to use checksums
cf21d06592ec493445da415559973df0080ea8190bc8ceb91fa024333651163e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Release files / puffco_py-0.1.2-py3-none-any.whl

Download URL puffco_py-0.1.2-py3-none-any.whl
Size 32.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d08de4ee5ce24db2c2eac6cf63172a78c639a2524d31dd9126d9227d1e9ad6dc
BLAKE2b-256 checksum
How to use checksums
52ea12462b391e1000ee4c3705fbee3fe5941c86265db56f3b21a07058ab9514
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Security for puffco-py 0.1.2

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for puffco_py-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

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.

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