The Lupaxa Developers Toolbox
Part of The Lupaxa Project
lupaxa-divulge
Opinionated console messaging helper for Python — coloured, prefixed
info / success / warning / error / system lines.
Built for scripts and tools used by The Lupaxa Project.
Features
- Simple functions for common message types: info, success, warning, error, and system
- Optional colours (via termcolor)
and prefixes (for example
[ Info ],[ System ]) - Optional bold via
use_bold(off by default) - Global configuration and per-call
prefix/colouroverrides - Pretty-prints non-string values and formats
datetimeobjects - Two idioms:
- Procedural:
divulge.info("message") - Chainable:
Divulge("message").info()
- Procedural:
- Fully typed, linted, formatted, and tested
Installation
From PyPI
pip install lupaxa-divulge
From source (development mode)
pip install -e ".[dev]"
Requires Python 3.10+. Runtime dependency: termcolor.
Usage
import lupaxa.divulge as divulge
divulge.info("Server starting")
divulge.success("Operation completed")
divulge.warning("Disk usage high")
divulge.error("Connection failed")
divulge.system("Starting backup job")
divulge.Divulge("done").success()
divulge.divulge({"id": 1}).warning()
Turn colours or prefixes off for the process:
divulge.configure(use_colours=False, use_prefixes=False)
Bold is off by default. Enable it for one call or for the process:
divulge.info("this line is bold", use_bold=True)
divulge.configure(use_bold=True)
A walkthrough of the API is in demo.py in the
source repository.
Development
Clone the repository and install with Make:
make init # first-time makefile-skills checkout
make python-install-dev # editable install with [dev]
make python-check # lint, type-check, and test
make mkdocs-serve # local docs site
Documentation: https://divulge.thelupaxaproject.org/.
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 lupaxa_divulge-0.1.0.tar.gz.
File metadata
- Download URL: lupaxa_divulge-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a48e6bba65d3af46cb4c619207accf14cffb9e663c1f64dc74d81d82bffb9e4d
|
|
| MD5 |
1c238904f852b5fdf752cb132c79a5d3
|
|
| BLAKE2b-256 |
6a82800c18c6cf0dcf56157c48b78c205820ef5666ae818d95776f9601d0122d
|
Provenance
The following attestation bundles were made for lupaxa_divulge-0.1.0.tar.gz:
Publisher:
generate-release.yml on lupaxa-developers-toolbox/divulge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lupaxa_divulge-0.1.0.tar.gz -
Subject digest:
a48e6bba65d3af46cb4c619207accf14cffb9e663c1f64dc74d81d82bffb9e4d - Sigstore transparency entry: 2550267023
- Sigstore integration time:
-
Permalink:
lupaxa-developers-toolbox/divulge@47633d1251ea13f7d27d23ebb5ea6027b490123b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/lupaxa-developers-toolbox
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
generate-release.yml@47633d1251ea13f7d27d23ebb5ea6027b490123b -
Trigger Event:
push
-
Statement type:
File details
Details for the file lupaxa_divulge-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lupaxa_divulge-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f93e9bc1a9d72df460d96791b925509749ba6085cbfe26ecadd1063faff52311
|
|
| MD5 |
3cfbb12ec7af789f3b1dff70899a7892
|
|
| BLAKE2b-256 |
730795e8825578b79622c7ce1b5482ffa283eb28b0fb71424d32e0df6bd7a0e1
|
Provenance
The following attestation bundles were made for lupaxa_divulge-0.1.0-py3-none-any.whl:
Publisher:
generate-release.yml on lupaxa-developers-toolbox/divulge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lupaxa_divulge-0.1.0-py3-none-any.whl -
Subject digest:
f93e9bc1a9d72df460d96791b925509749ba6085cbfe26ecadd1063faff52311 - Sigstore transparency entry: 2550267079
- Sigstore integration time:
-
Permalink:
lupaxa-developers-toolbox/divulge@47633d1251ea13f7d27d23ebb5ea6027b490123b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/lupaxa-developers-toolbox
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
generate-release.yml@47633d1251ea13f7d27d23ebb5ea6027b490123b -
Trigger Event:
push
-
Statement type: