Skip to main content

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

Project description

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).

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.

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

ziz_utils-5.0.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

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

ziz_utils-5.0.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file ziz_utils-5.0.0.tar.gz.

File metadata

  • Download URL: ziz_utils-5.0.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for ziz_utils-5.0.0.tar.gz
Algorithm Hash digest
SHA256 b92548f1f5141d292b5b4f018677bb1ab9dda0e39b9007bc5fb0bbbb3395d079
MD5 54efb5e575d46de66b08d04987ea7269
BLAKE2b-256 908291d74160a245e81224fddf13364dae834560c370a26ef8c84e2675bb2d8d

See more details on using hashes here.

File details

Details for the file ziz_utils-5.0.0-py3-none-any.whl.

File metadata

  • Download URL: ziz_utils-5.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for ziz_utils-5.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11851dc7e1fa7f61b7bd2a4e0b2431eec4336de4df477946e8be8a4925f77f92
MD5 41dc1242dbfbfecf69a4c68c665891c4
BLAKE2b-256 bbf0f725cf9d70e15cf5d7c67572ebcc5d18ec047794bdd62d50ce32754dd7db

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