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
Release history Release notifications | RSS feed
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)
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90b300b7daad537d33d297fb642f731d72e1a1eb16283eb92d7e9734f1ad2324
|
|
| MD5 |
c8b4db8ab6f5651082af20f24e7a7c82
|
|
| BLAKE2b-256 |
9faee0c372e4e567503d9bd92193a1c8161fe165113ed5fb5bd7f05462d12f85
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a219580d181bb5260ef563d0cdbc48d3e655f76e0596f327deb253074cf8f5a8
|
|
| MD5 |
5ead17b700f2a2760f79dae568fcf880
|
|
| BLAKE2b-256 |
01bb33554a7ab447e24da631c21fbf203d585998b57b6a9e3eee94146fedd50f
|