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

Currently, only installation via Github is supported.

Using Github:

git clone https://github.com/Talw3g/pytoolbox
cd pytoolbox
sudo python3 setup.py install

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.1.tar.gz (3.1 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.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytoolbox_talw3g-0.1.tar.gz
  • Upload date:
  • Size: 3.1 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.1.tar.gz
Algorithm Hash digest
SHA256 3655fc11bd004a1a00197940033b1ff66b8889c984e06fa3333940afa5fa6262
MD5 37dc2de0a3a5ad11bf58f2c02319ed34
BLAKE2b-256 b20269edfc73e256f47f24278b20012227bb086abdd5944448a116fee13d7871

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytoolbox_talw3g-0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de0009943cd4f4a1e021920843d07e0282dd1eb489e6b075453be981566cabf0
MD5 d18d32718d640035d1470f01e3c423b7
BLAKE2b-256 058b105bbbb216b4859ac84e31d76aa573e1bff752e90170fed438b0af3e4ae3

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