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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
535e92384bfbc25145d9a3586f6b31bc99c133af6fa877bb1af5a9cc0d421c1f
|
|
| MD5 |
5a5f4b12e516142b4e7464c829631198
|
|
| BLAKE2b-256 |
37a9277db1961b17c31576a7bb43b1888dfea404add307f118c43c7cced20fd0
|
Provenance
The following attestation bundles were made for pymbrewclient-1.8.1.tar.gz:
Publisher:
test-and-release.yml on stuartp44/pymbrewclient
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymbrewclient-1.8.1.tar.gz -
Subject digest:
535e92384bfbc25145d9a3586f6b31bc99c133af6fa877bb1af5a9cc0d421c1f - Sigstore transparency entry: 1683860725
- Sigstore integration time:
-
Permalink:
stuartp44/pymbrewclient@60c5d246cd061cb1d03773e72a1abeb195061dc0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/stuartp44
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test-and-release.yml@60c5d246cd061cb1d03773e72a1abeb195061dc0 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9575baacc50b1bcd6141996af19d3f04cd475a6976bb319cb514389a607dd996
|
|
| MD5 |
4ea775c7d5e1c421c0464d351183bf29
|
|
| BLAKE2b-256 |
ace53e0e605a37f92f4db1fcb2fd2526e1645e1458d008d235fb7cc6eb7c687b
|
Provenance
The following attestation bundles were made for pymbrewclient-1.8.1-py3-none-any.whl:
Publisher:
test-and-release.yml on stuartp44/pymbrewclient
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymbrewclient-1.8.1-py3-none-any.whl -
Subject digest:
9575baacc50b1bcd6141996af19d3f04cd475a6976bb319cb514389a607dd996 - Sigstore transparency entry: 1683860875
- Sigstore integration time:
-
Permalink:
stuartp44/pymbrewclient@60c5d246cd061cb1d03773e72a1abeb195061dc0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/stuartp44
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test-and-release.yml@60c5d246cd061cb1d03773e72a1abeb195061dc0 -
Trigger Event:
push
-
Statement type: