Skip to main content

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.6
    • arabic_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


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)

Uploaded Source

Built Distribution

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

toolify-0.2.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

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

Hashes for toolify-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b42b142ecf009532a443dbe8585c15291cb56a853e6daa29bdabb5debbdcf6d8
MD5 204157907448f170538b1827684bb9a4
BLAKE2b-256 3ecde77c5725b9723171614bd7bffcf40c03b0d99d70a672e1991c370e0b015c

See more details on using hashes here.

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

Hashes for toolify-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e74d56f010bb4821348d1f729ef2f913cbbcde5f3d0ac3fc823ea6befecf00cf
MD5 cda43d64122fc8b1987d5cac254e5aef
BLAKE2b-256 7303058e787d0fa5fc63c49b96c78d5f281f94df5445132602ffbe5bb6c10b32

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