Skip to main content

A small package with useful simple tools

Project description

pytoolbox: a simple Python utilities pool

pytoolbox is a simple Python projects that aims to regroup some utilities I often use in my other Python projects. Project's source is available here.

This project currently includes the following modules:

  • colortxt: offers a convenient way to customize text with color, background and blink.
  • confirm: a dialog wrapper that asks for user's choice in the infamous [Y/n], [y/N] way.

Installation

pip install pytoolbox-talw3g

Usage

colortxt:
from pytoolbox import colortxt
print(colortxt.ctxt('foobar', 'red', blink=True, bgcol='wht'))
print(colortxt.ctxt('foobar', 'blue', 'grn'))
print(colortxt.ctxt('foobar', 'yel'))
confirm:
from pytoolbox import confirm
question = 'foobar ?'
confirm.confirm(question, 'no')

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

pytoolbox_talw3g-0.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

pytoolbox_talw3g-0.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pytoolbox_talw3g-0.2.tar.gz.

File metadata

  • Download URL: pytoolbox_talw3g-0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pytoolbox_talw3g-0.2.tar.gz
Algorithm Hash digest
SHA256 90b300b7daad537d33d297fb642f731d72e1a1eb16283eb92d7e9734f1ad2324
MD5 c8b4db8ab6f5651082af20f24e7a7c82
BLAKE2b-256 9faee0c372e4e567503d9bd92193a1c8161fe165113ed5fb5bd7f05462d12f85

See more details on using hashes here.

File details

Details for the file pytoolbox_talw3g-0.2-py3-none-any.whl.

File metadata

  • Download URL: pytoolbox_talw3g-0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pytoolbox_talw3g-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a219580d181bb5260ef563d0cdbc48d3e655f76e0596f327deb253074cf8f5a8
MD5 5ead17b700f2a2760f79dae568fcf880
BLAKE2b-256 01bb33554a7ab447e24da631c21fbf203d585998b57b6a9e3eee94146fedd50f

See more details on using hashes here.

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