semvec/pypi-packages huggingface dataset:
hbtools 0.4.3
Package containing a few python utils functions.
License: MIT
Requires Python: >=3.10

# hbtools

[![PyPI](https://img.shields.io/pypi/v/hbtools?color=green&style=flat)](https://pypi.org/project/hbtools)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hbtools?style=flat)](https://pypi.org/project/hbtools)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/hbtools?style=flat-square)](https://pypistats.org/packages/hbtools)
[![License](https://img.shields.io/pypi/l/hbtools?style=flat)](https://opensource.org/licenses/MIT)
![Linting](https://github.com/hoel-bagard/hbtools/actions/workflows/pre-commit.yaml/badge.svg)
![Tests](https://github.com/hoel-bagard/hbtools/actions/workflows/nox.yaml/badge.svg)

Package containing a few python utils functions.

## Installation

The package is available on pypi [here](https://pypi.org/project/hbtools/) you can install it with:

```
pip install "hbtools[opencv]"
```

(or simply `pip install hbtools` if not using the image part of the package / `pip install "hbtools[opencv-headless]"` if using opencv-headless)

## Usage

### Logger
```python
from hbtools import create_logger
logger = hbtools.create_logger("MyLogger", verbose_level="debug")
logger.debug("Debug message")
```

### Prints
```python
from hbtools import clean_print
clean_print("Processing sample (1/10)", end = "\r")
clean_print("Processing sample (10/10)", end = "\n")

from hbtools import yes_no_prompt
yes_no_prompt("Would you like to continue ?")
```

### Image
```python
import numpy as np
from hbtools import show_img
img = np.zeros((200, 200, 3))
show_img(img)
```

Additionally, if using a server through ssh, you can install this package with extras for displaying images to the terminal:
```
pip install "hbtools[opencv, terminal]"
```
nl-dotter 0.2.2
A dotfile link farm manager.
License: MIT
Requires Python: <4.0,>=3.11

# A Dotfile Link Farm Manager

[Example Dotfile Repo](https://github.com/NonLogicalDev/conf.dotfiles)

## Example Usage:

```
git clone https://github.com/NonLogicalDev/conf.dotfiles ~/.config/dotter
python3 -m pip install --user nl-dotter
dotter link
```

## Usage Output:

### Root Command:

```
usage: dotter [-h] {version,link,config} ...

A dotfile linker. This utility creates a link farm from a data root to users home directory.
It's intended use is to keep dotfiles neatly organized and separated by topics.

optional arguments:
  -h, --help            show this help message and exit

command:
  {version,link,config}
    version             print version and exit
    link                link dotfiles from $HOME/.config/dotter
    config              query configuration values
```

### Link Command:
```
usage: dotter link [-h] [--root ROOT_DIR] [--conf-dir CONF_DIR] [-c CATEGORY]
                   [-t TOPIC] [-f] [-d] [-b]

links files into the home directory from the data root.

optional arguments:
  -h, --help           show this help message and exit
  --root ROOT_DIR      Alternative root location (for testing configuration)
  --conf-dir CONF_DIR  Alternative configuration location (for testing configuration)
  -c CATEGORY          Specify a category to sync (defaults to common)
  -t TOPIC             Specify a topic to sync (inside a category)
  -f                   Force execution
  -d                   Dry run current setup
  -b                   Backup files and place new ones in place, appends ".backup"
```