semvec/pypi-packages huggingface dataset:
ziz-utils 6.1.0
A collection of Python function that I used in my projects.

# Ziz's Utilities - Python Edition

A collection of Python function that I used in my projects.

## Functionalities
### Update 1.0.0
```python
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
```py
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
```py
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
```py
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
```py
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
```py
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
<ol type="1">
    <li>
        Install Python 3.x from <a href="https://www.python.org/downloads/" target="_blank">here</a>. (Ignore if you already have Python 3.x installed)
    </li>
    <li>
    Open terminal, run:
    
```shell
pip install ziz_utils
```
</li>
</ol>

## Usage
In a Python file:
```python
import ziz_utils
```
Or:
```python
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](LICENSE) for more details.
pxsstray 1.2
A small utility that controls dpms and screensaver status from the tray
Requires Python: >=3.12

# pxsstray : Python XSet S Tray 

This is a small utility that provides a `pxsstray` script command which creates a tray icon with right click context menu you can use to enable or disable the X display screensaver or DPMS.

![Screenshot of the tray context menu](doc/screenshot.png "Tray Context Menu")

## Installation

```
pip install --upgrade pxsstray
```

### pyenv

If using pyenv, you can use the following command to find the location of pxsstray on your system

```
pyenv which pxsstray
```

Then add the following line (adjusting based on output from above) to the end of your `~/.config/i3/config` configuration file

```
exec --no-startup-id ~/.pyenv/versions/3.12.3/bin/pxsstray
```