Skip to main content

pymbrewclient: A Python library and CLI for readonly access to Minibrew's API

Project description

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 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.
  • Retrieve session information.
  • 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 brewery-overview
pymbrewclient session-info --username <USERNAME> --password <PASSWORD> --session-id <SESSION_ID>

Library Usage

from pymbrewclient.client import BreweryClient

# Initialize the client
client = pymbrewclient(username,password)

# Fetch brewery overview
brewery_overview = client.get_brewery_overview()
print(brewery_overview)
from pymbrewclient.client import BreweryClient

# Initialize the client
client = pymbrewclient(username,password)

# Fetch session info
session_id = 12345
session_info = client.get_session_info(session_id)
print(session_info)

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymbrewclient-1.8.1.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymbrewclient-1.8.1-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file pymbrewclient-1.8.1.tar.gz.

File metadata

  • Download URL: pymbrewclient-1.8.1.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pymbrewclient-1.8.1.tar.gz
Algorithm Hash digest
SHA256 535e92384bfbc25145d9a3586f6b31bc99c133af6fa877bb1af5a9cc0d421c1f
MD5 5a5f4b12e516142b4e7464c829631198
BLAKE2b-256 37a9277db1961b17c31576a7bb43b1888dfea404add307f118c43c7cced20fd0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymbrewclient-1.8.1.tar.gz:

Publisher: test-and-release.yml on stuartp44/pymbrewclient

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pymbrewclient-1.8.1-py3-none-any.whl.

File metadata

  • Download URL: pymbrewclient-1.8.1-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pymbrewclient-1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9575baacc50b1bcd6141996af19d3f04cd475a6976bb319cb514389a607dd996
MD5 4ea775c7d5e1c421c0464d351183bf29
BLAKE2b-256 ace53e0e605a37f92f4db1fcb2fd2526e1645e1458d008d235fb7cc6eb7c687b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymbrewclient-1.8.1-py3-none-any.whl:

Publisher: test-and-release.yml on stuartp44/pymbrewclient

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page