Skip to main content

pymbrewclient

pymbrewclient is a Python library and CLI tool for interacting with MiniBrew's API. It provides both programmatic access and a command-line interface for fetching brewery, device, and session information.

Disclaimer

This project is an independent, community-driven tool and is not affiliated with, endorsed by, or supported by Minibrew. It is developed and maintained by independent contributors.

Requirements

This library will only work if you have access to Minibrew's Pro Portal subscription.


Features

  • Fetch brewery overview data.
  • Fetch authenticated device data from /v1/devices/.
  • Retrieve session information.
  • Retrieve MiniBrew's REST process estimate as an absolute UTC timestamp.
  • Calculate remaining seconds and a human-readable duration locally.
  • Easy-to-use CLI for quick access.
  • Python library for programmatic integration.
  • Uses standard Python logging and stays silent by default unless your application enables DEBUG for pymbrewclient.

Installation

You can install pymbrewclient using pip:

CLI

pip install pymbrewclient
pymbrewclient get-token --username <USERNAME> --password <PASSWORD>
pymbrewclient get-brewery-overview --username <USERNAME> --password <PASSWORD>
pymbrewclient get-session-info --username <USERNAME> --password <PASSWORD> --sessionid <SESSION_ID>
pymbrewclient get-minibrew-devices --username <USERNAME> --password <PASSWORD>
pymbrewclient process-estimate --username <USERNAME> --password <PASSWORD> --session-id 80675
pymbrewclient process-estimate --username <USERNAME> --password <PASSWORD> --device-uuid <UUID> --format json

Library Usage

from pymbrewclient.client import BreweryClient

client = BreweryClient(username, password)

brewery_overview = client.get_brewery_overview()
print(brewery_overview)
from pymbrewclient.client import BreweryClient

client = BreweryClient(username, password)

session_id = 12345
session_info = client.get_session_info(session_id)
print(session_info)
from pymbrewclient.client import BreweryClient

client = BreweryClient(username, password)

devices = client.get_devices()
device = devices[0]

print(device.process_estimate_remaining)
print(device.process_estimate_remaining_seconds)
print(device.process_estimate_remaining_formatted)
from pymbrewclient.client import BreweryClient

client = BreweryClient(username, password)

estimate = client.get_process_estimate(device_uuid="your-device-uuid")
remaining_seconds = client.get_process_estimate_remaining_seconds(device_uuid="your-device-uuid")

print(estimate)
print(remaining_seconds)
from pymbrewclient.client import BreweryClient

client = BreweryClient(username, password)

estimate = client.get_process_estimate(session_id=80675)
remaining_seconds = client.get_process_estimate_remaining_seconds(session_id=80675)

print(estimate)
print(remaining_seconds)

Process Estimate Notes

process_estimate_remaining is an absolute UTC timestamp returned by MiniBrew's REST API.

  • The library parses REST timestamps into timezone-aware Python datetime objects.
  • process_estimate_remaining_seconds and process_estimate_remaining_formatted are calculated locally from the REST timestamp, so they are point-in-time snapshots and naturally become stale.
  • MiniBrew can return an estimate that is already in the past when a device is paused, needs user attention, has stopped reporting, or when the backend estimate has not refreshed yet.
  • This feature exposes the REST estimate only. It is not MiniBrew's live MQTT countdown.

Development

Clone the repository:

git clone https://github.com/yourusername/pymbrewclient.git
cd pymbrewclient

Install dependencies:

pip install .[dev]

Run tests:

pytest

Lint the code:

make lint

Metadata

Release files for pymbrewclient 1.10.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 pymbrewclient 1.10.0
File Size Uploaded Provenance Actions
pymbrewclient-1.10.0.tar.gz 48.5 kB With provenance Details for pymbrewclient-1.10.0.tar.gz

Built distribution (wheel)

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

Total release size: 83.7 kB

Release files / pymbrewclient-1.10.0.tar.gz

Download URL pymbrewclient-1.10.0.tar.gz
Size 48.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f1f72cdde18d4a76167161860a59ebc1ff6550b3e59df250793f393993ee30ca
BLAKE2b-256 checksum
How to use checksums
ace7e04a3bbe3ec34bd8ef4af44d018749261927348fa8f01e600e771e20877e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 Jul 25, 2026.

Transparency log

Release files / pymbrewclient-1.10.0-py3-none-any.whl

Download URL pymbrewclient-1.10.0-py3-none-any.whl
Size 35.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83a5204c84bf08c9efe59ff5f2c343b51e2819e029c77f657c491e5a44c1ffda
BLAKE2b-256 checksum
How to use checksums
66bb3f1d4d8cf5146a15155063eadf376fe044552cb27dff1d578a6dd14b228e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 Jul 25, 2026.

Transparency log

Security for pymbrewclient 1.10.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pymbrewclient-1.10.0.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 Jul 25, 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