Skip to main content

Ziz's Utilities - Python Edition

A collection of Python function that I used in my projects.

Functionalities

Update 1.0.0

isInt(input: str) #Check if input of type str is an integer or not.
clear() #Clear the terminal.
num_to_roman(input: int) #Convert input of type int into the equivalent in Roman numerals.
menu(config: Container, start: int = 1, trailing_dot: bool = True, roman_numeral_mode: bool = False) #A menu generator, consult the docstring of this function for more information. This is the pre-3.0.0 version

Update 2.0.0

config_manager(def_config: dict, config_folder: str, config_file_name: str) #Consult the docstring of this function.
write_config(config_path: str, config: dict, def_config: dict) #Consult the docstring of this function.

Update 3.0.0

menu(config: Container,
     option_prefix: str = "".strip(),
     option_suffix: str = "".strip(),
     start: int = 1,
     trailing_dot: bool = True,
     roman_numeral_mode: bool = False
) #A menu generator, consult the docstring of this function for more information. This is the 3.0.0 version

Update 4.0.0

validate_param(param: object, name: str, expected_type: type) #Check the type of param and throw an error if not match the expected_type.

Update 5.0.0

is_prime(input: int) #Check if input (of type int) is a prime number or not.
first_n_primes(n: int) #Generate the first n prime number(s).

Update 6.0.0

config_manager(def_config: dict, config_folder: str, config_file_name: str, compare_keys: bool = True) #Consult the docstring of this function.
write_config(config_path: str, config: dict, def_config: dict, compare_keys: bool = True) #Consult the docstring of this function.

And more! (hopefully)

Installation

  1. Install Python 3.x from here. (Ignore if you already have Python 3.x installed)
  2. Open terminal, run:
    pip install ziz_utils
    

Usage

In a Python file:

import ziz_utils

Or:

from ziz_utils import <function_name> #With function_name as the, well, function name.

Requirement(s)

  1. Python 3.x

License

This project is licensed under the GNU General Public License 3.0, check LICENSE for more details.

Release files for ziz-utils 6.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ziz-utils 6.1.0
File Size Uploaded
ziz_utils-6.1.0.tar.gz 17.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ziz-utils 6.1.0
File Interpreter ABI Platform
ziz_utils-6.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.3 kB

Release files / ziz_utils-6.1.0.tar.gz

Download URL ziz_utils-6.1.0.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d8b5207b98204641098abd3ad2289210dcb987c73d61b337394e5e059cf832bc
BLAKE2b-256 checksum
How to use checksums
e485e8b50309b9feb6dbc4b8b85d185398ef3492c5f5092b11c673698b7de38b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.2

Release files / ziz_utils-6.1.0-py3-none-any.whl

Download URL ziz_utils-6.1.0-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5b90109cf9f0167c3a60e07ff762d60fa6c998fd2019f458deb5219b19a68bf
BLAKE2b-256 checksum
How to use checksums
67bdc653e29abb54e1e36aef71471702d06f06036598118a20e646a6ac6dad64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.2

Release history Release notifications | RSS feed

This release

6.1.0 This release

2 release files

6.0.0

2 release files

5.1.0

2 release files

5.0.0

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.1.0

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page