A library that provide helper function and tools.
Project description
toolify
A Python library that provides helper functions and tools for developers.
Installation
Install toolify from PyPI:
pip install toolify
Requirements
- Python >= 3.8
- Dependencies:
python-bidi==0.6.6arabic_reshaper==3.0.0
Usage
Import and use the functions from the toolify.tools module:
from toolify.tools import pct, pat, print_package_info
# Print colored text
pct("Hello, World!", color="green", emoji="star")
# Print Arabic text
pat("مرحبا بالعالم", color="blue", emoji="heart")
# Print package information
print_package_info()
Functions
| Function | Description |
|---|---|
pct |
Prints text in a specified color with an optional emoji. |
pat |
Prints Arabic text with proper reshaping and bidirectional display. |
setup_logger |
Configures a logger for logging messages to a file. |
save_text_list |
Saves a list of text arrays to a file. |
save_text |
Saves a single text string to a file. |
line_plotter |
Saves a line plot for multiple data lists. |
strip_tashkeel |
Removes Arabic diacritics and specific characters from text. |
get_available_gpus |
Prints information about available CUDA GPUs. |
print_package_info |
Prints information about the package and its functions. |
Example: Plotting Data
from toolify.tools import line_plotter
data = [[1, 2, 3], [4, 5, 6]]
line_plotter(
data_list=data,
save_name="plot.png",
legend_list=["Line 1", "Line 2"],
x_label="X Axis",
y_label="Y Axis",
title="Sample Plot"
)
License
This project is licensed under the MIT License. See the LICENSE file for details.
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
toolify-0.2.0.tar.gz
(7.7 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 toolify-0.2.0.tar.gz.
File metadata
- Download URL: toolify-0.2.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b42b142ecf009532a443dbe8585c15291cb56a853e6daa29bdabb5debbdcf6d8
|
|
| MD5 |
204157907448f170538b1827684bb9a4
|
|
| BLAKE2b-256 |
3ecde77c5725b9723171614bd7bffcf40c03b0d99d70a672e1991c370e0b015c
|
File details
Details for the file toolify-0.2.0-py3-none-any.whl.
File metadata
- Download URL: toolify-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e74d56f010bb4821348d1f729ef2f913cbbcde5f3d0ac3fc823ea6befecf00cf
|
|
| MD5 |
cda43d64122fc8b1987d5cac254e5aef
|
|
| BLAKE2b-256 |
7303058e787d0fa5fc63c49b96c78d5f281f94df5445132602ffbe5bb6c10b32
|