semvec/pypi-packages huggingface dataset:
term-tz 0.1.1b0
A Python library for enhanced terminal display.
Requires Python: >=3.9

<div align="center">

<h2 id="title">term-tz</h2>

[![Build](https://github.com/tinchen777/term-tz/actions/workflows/tests.yml/badge.svg)](https://github.com/tinchen777/term-tz/actions/workflows/tests.yml)
[![PyPI version](https://img.shields.io/pypi/v/term-tz.svg)](https://pypi.org/project/term-tz/)
![Python Versions](https://img.shields.io/pypi/pyversions/term-tz.svg)
![License](https://img.shields.io/github/license/tinchen777/term-tz.svg)
[![Pull Requests Welcome](https://img.shields.io/badge/pull%20requests-welcome-brightgreen.svg)](https://github.com/tinchen777/term-tz/pulls)

</div>

## About

A lightweight Python library for enhanced terminal display: simple text color/style conventions and image-to-terminal rendering.

- Python: 3.9+
- Runtime deps: Pillow (>=9,<11), NumPy (>=1.21,<2)

## Features

- :rocket Concise color/style names for terminal text.
- :rocket Image rendering in multiple modes: ASCII, color, half-color, gray, half-gray.
- :rocket Minimal dependencies and easy integration.

## Installation

Stable (once published):

```bash
pip install term-tz
```

## Quick Start

- Render an image in the terminal:

    ```python
    from term_tz import printable_image

    # ASCII art
    print(printable_image("example.jpg", width=80, mode="ascii"))

    # Half-block color (recommended for truecolor terminals)
    print(printable_image("example.jpg", width=80, mode="half-color"))
    ```

- Render some text with fonts in the terminal:

    ```python
    from term_tz import color_font, FontName

    # Borderless grayscale font
    print(color_font("Hello World!", font=FontName.LLDISCO,, mode="half-gray", trim_border=True))
    ```

## Image Modes

- ascii: monochrome ASCII using a density charset.
- color: colorized character fill.
- half-color: half-block characters with color (higher density, good visual quality).
- gray: grayscale characters.
- half-gray: half-block grayscale.

Tip: For best results, use a TrueColor-capable terminal and a monospaced font.

## Requirements

- Python >= 3.9
- Pillow >= 9.0, < 11
- NumPy >= 1.21, < 2.0

## License

See LICENSE in the repository.

## Links

- Homepage/Repo: https://github.com/tinchen777/term-tz.git
- Issues: https://github.com/tinchen777/term-tz.git/issues
brtp 0.0.17
Collection of personal Python utilities.
Requires Python: >=3.11

![shields.io-python-versions](https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13-blue)
![genbadge-test-count](https://bertpl.github.io/brtp/version_artifacts/release/v0.0.17/badge-test-count.svg)
![genbadge-test-coverage](https://bertpl.github.io/brtp/version_artifacts/release/v0.0.17/badge-coverage.svg)
![brtp logo](https://bertpl.github.io/brtp/version_artifacts/release/v0.0.17/splash.webp)

# brtp
Collection of Python utilities for personal use.
ml-auto-trainer 0.1.0
A simple auto machine learning trainer that builds models with one function call.
Requires Python: >=3.7

# ml_auto_trainer ðŸš€

A one-function AutoML package that builds, trains, and evaluates ML models automatically.

## âœ¨ Features
- Automatically detects problem type (classification or regression)
- Supports popular models (RandomForest, XGBoost, Logistic, Linear, KNN, GBM)
- Prints metrics automatically

## ðŸ§  Usage

```python
from ml_auto_trainer.auto_trainer import auto_train
import pandas as pd
from sklearn.datasets import load_iris

# Load data
data = load_iris()
X = pd.DataFrame(data.data, columns=data.feature_names)
y = data.target

# Train model
model = auto_train(X, y, model_name='xgboost')
mkdocstrings-crystal 0.3.9
Crystal language doc generator for MkDocs, via mkdocstrings
Requires Python: >=3.9
Keywords: crystal, mkdocs, mkdocs-plugin, mkdocstrings

# mkdocstrings-crystal

**[Crystal][] language doc generator for [MkDocs][], via [mkdocstrings][]**

[![PyPI](https://img.shields.io/pypi/v/mkdocstrings-crystal)](https://pypi.org/project/mkdocstrings-crystal/)
[![License](https://img.shields.io/github/license/mkdocstrings/crystal)](https://github.com/mkdocstrings/crystal/blob/master/LICENSE.md)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/mkdocstrings/crystal/ci.yml.svg)](https://github.com/mkdocstrings/crystal/actions?query=event%3Apush+branch%3Amaster)

## Introduction

*mkdocstrings-crystal* allows you to insert API documentation (generated from [Crystal][]'s source code and doc comments) as part of any page on a [MkDocs][] site.

[See it in action][showcase].

To install it, run (possibly in a [virtualenv][]):

```shell
pip install mkdocstrings-crystal
```

**Continue to the [documentation site][].**

## Usage

With [MkDocs][], add/merge this base config as your _mkdocs.yml_:

```yaml
site_name: My Project

theme:
  name: material

plugins:
  - search
  - mkdocstrings:
      default_handler: crystal

markdown_extensions:
  - pymdownx.highlight
  - deduplicate-toc
```

Then, in any `docs/**/*.md` file, you can **mention a Crystal identifier alone on a line, after `:::`**:

```md
::: MyClass

::: Other::Class#some_method

::: Foo::CONSTANT
```

-- and in the output this will be replaced with generated API documentation for it, much like Crystal's own doc generator does.

This, of course, happens as part of a normal MkDocs build process:

```shell
mkdocs build  # generate from docs/ into site/
mkdocs serve  # live preview
```

**Continue to the [documentation site][].**


[crystal]: https://crystal-lang.org/
[mkdocs]: https://www.mkdocs.org/
[mkdocstrings]: https://mkdocstrings.github.io/
[virtualenv]: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment
[documentation site]: https://mkdocstrings.github.io/crystal/
[showcase]: https://mkdocstrings.github.io/crystal/showcase.html
tkurses 0.3.11
Tkinter-like themed UI framework for curses... New aditions to 0.3.1: proportional x,y,width,height
Requires Python: >=3.6

# TKurses

tkurses is a library for tkinter like interface in curses

# basic program

```
import curses
import tkurses.core as core
import tkurses.widgets as widgits

def main(stdscr):
    app = core.App(screen, "theme.json", "settings.json") # leave either of these blank to get a defaul writen to a defaultTheme.json or defaultSettings.jdon
    app.addWidget(app.Label("Hello World!", 0,0))

    app.main_loop()

curses.wrapper(main)
```

## Widgets

global functions

```
widget.delete() # delete a widget you have created and un-render it and remove it from the apps widgets allong with all its children
```

### Label

Declaring one

```
app.Label("what To Write",posX,posY)
```

### Button

Declaring one

```
app.Button("what To Write",(posX,posY),(sizeX,sizeY),on_press=function_to_run)
```

### Input prompt

declaring one

```
app.Input("prompt",(posX,posY),(sizeX,sizeY),on_press=function_to_run_on_enter_pressed)

```

### TextBox (Experemental)

Declaring one

```
app.TextBox((PosX,posY),(sizeX,sizeY),enterOnEnter=true)
```

getting current Contents

```
currentTextbox.text
```

## adding Widgets to app

```
app.add_widget(Variable)
```

## Theming files

### example Theme

```
{
    "colors": {
        "background": "black",
        "forground": "white"
    },
    "input": {
        "style": "default",
        "colors": {
            "focused": {
                "background": "black",
                "forground": "white"
            }, "not-focused": {
                "forground": "black",
                "background": "white"
            }
        }
    },
    "text": {
        "colors": {
            "background": "blue",
            "forground": "black"
        },
        "theme": "None",
        "quitKeys": ["Enter","shift-enter"]
    },
    "buttons": {
        "colors": {
            "focused": { "background": "white", "forground": "black"},
            "not-focused": {"background": "black","forground": "white"}
        },
        "start": {"focused":"[","not-focused":"<"},
        "end": {"focused": "]","not-focused":">"}
    }
}
```

Theme options
| key | options | explination |
|-----|---------|-------------|
| ["input"]["style"] | "box"/"default" | box shows inpu as a box and defalut shows it like python input |
| ["text"]["theme"] | Anything you please | Not a thing yet... to be filled in |

## Settings and keybinds

A recent adition to this library is the ability to add settings.json to your program (or rather the requirmen too)
here is an example of what you have to have so far (not all of them work yet but will in future updates)

```
{
    "keybindings": {
        "Move-Focus-Forward": "TAB",
        "Move-Focus-Back": "None",
        "Move-Focus-In-Frame-Forward": "CTRL+D",
        "Move-Focus-In-Frame-Backward": "None",
        "Exit-Text-box": "CTRL+M",
        "Quit-Program": "ESC"
    }
}
```