semvec/pypi-packages huggingface dataset:
ConsoleM 0.1.11
A powerful Python library for terminal manipulation and text styling
License: MIT
Requires Python: >=3.10
Keywords: terminal, console, text styling, cursor control, keyboard input

# ConsoleM

A powerful Python library for terminal manipulation and text styling. ConsoleM provides a simple and intuitive API for creating beautiful terminal applications with advanced features like cursor control, text styling, and keyboard input handling.

## Features

* **Terminal Manipulation**
  * Precise cursor movement (absolute and relative positioning)
  * Screen clearing and line management
  * Alternate screen support for full-screen applications
  * Terminal size detection and cursor position tracking
  * Cursor visibility control
  * Non-blocking keyboard input handling

* **Text Styling**
  * Rich text formatting with intuitive markup syntax
  * 256-color support (foreground and background)
  * Text styles (bold, underline, italic, etc.)
  * Emoji support with automatic conversion
  * Easy-to-use BBCode-like markup syntax
  * Automatic style reset and cleanup

* **Input Handling**
  * Non-blocking keyboard input capture
  * Key event queue management
  * Special key detection (arrows, function keys, etc.)
  * Thread-safe input processing
  * Clean shutdown handling

## Installation

```bash
pip install ConsoleM
```

## Quick Start



```python
from ConsoleM import Terminal
from ConsoleM.Style.text import Text

# Create a terminal instance
term = Terminal()

# Print styled text
Text("[blue bold]Welcome to ConsoleM![/]").print()

# Get terminal size
width, height = term.get_terminal_size()
Text(f"[green]Terminal size: {width}x{height}[/]").print()
```

## Documentation

For detailed documentation, visit: https://consolem.readthedocs.io/en/latest/index.html

## License

This project is licensed under the MIT License - see the LICENSE file for details.
dj3fb 0.3.0
dj3fb can generate DjangoModelFactory for your django models by using factory_boy.
License: MIT
Requires Python: >=3.10

# dj3fb

English | [简体中文](README_ZH.md)

`dj3fb` can generate `DjangoModelFactory` for your django models by using `factory_boy`.

## 1. Introduction

* `dj3fd` is a Django app that has a command `generate_factories`, which can generate `DjangoModelFactory` classes based on Django models.
* There is a variable `f` in `faker_utils`, which is an instance of `Faker` and can be used to generate random data.

## 2. Usage

### Install

```shell
pip install dj3fb

```
### Examples

* Configure `settings.py`

```python
INSTALLED_APPS = [
    '...',
    'dj3fb',
    '...'
]

# Optional.
DJ3FB = {
    # Optional.Generate factory classes for django built-in apps or third-party apps.
    "include_third_party_apps": [
        "django.contrib.admin",
        "django.contrib.auth",
        "django.contrib.contenttypes",
        "django.contrib.sessions",
        "django.contrib.messages",
        "django.contrib.staticfiles",
    ],
    # Optional.Manually specify a factory class for a model instead of generating it automatically.
    "existed_factories": {
        "django.contrib.auth.User": "test_app.UserFactory"
    },
}


```

* Execute the command: `generate_factories`

```shell
python manage.py generate_factories
# In the app directory, a factories directory will be generated, which contains factory classes generated based on the models.

```