Skip to main content

Project Logo

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 / colour overrides
  • Pretty-prints non-string values and formats datetime objects
  • Two idioms:
    • Procedural: divulge.info("message")
    • Chainable: Divulge("message").info()
  • 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/.

The Lupaxa Project Footer

Download files

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

Source Distribution

lupaxa_divulge-0.1.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

lupaxa_divulge-0.1.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file lupaxa_divulge-0.1.1.tar.gz.

File metadata

  • Download URL: lupaxa_divulge-0.1.1.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

Hashes for lupaxa_divulge-0.1.1.tar.gz
Algorithm Hash digest
SHA256 66fe12f94eec7406d588cf4da6d42266b642f546e12ac6d696942d58e685ebe4
MD5 bdd20a1058a2237a64e6623a3fd99466
BLAKE2b-256 9b7b2d1fee1d6f637a09c06040c8c6ba990109e20393912db1c9af1f2246f030

See more details on using hashes here.

Provenance

The following attestation bundles were made for lupaxa_divulge-0.1.1.tar.gz:

Publisher: generate-release.yml on lupaxa-developers-toolbox/divulge

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

File details

Details for the file lupaxa_divulge-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lupaxa_divulge-0.1.1-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

Hashes for lupaxa_divulge-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1aff10f9ceffcbf0d54670e812e5d9d28bf1fa41e004e671470fc7915ee924d
MD5 e1d391c4e9b3a26f677e7f997554771b
BLAKE2b-256 05ecaad19712ae1eaad50b07d428abdad129521d2c5ee5a1cc4343116df86ccd

See more details on using hashes here.

Provenance

The following attestation bundles were made for lupaxa_divulge-0.1.1-py3-none-any.whl:

Publisher: generate-release.yml on lupaxa-developers-toolbox/divulge

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

Release history Release notifications | RSS feed

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

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