semvec/pypi-packages huggingface dataset:
django-bc-model-translator 0.0.1
A Django app for adding field-level translations to your models.
License: MIT
Requires Python: >=3.7

# bc-model-translator

This is a lightweight and extensible Django app for model field translations based on the current active language.

Supports dynamic field registration, localized querying, and transparent field access using Python magic.

## ✨ Features

- Automatic creation of translated fields (`name_en`, `name_ru`, etc.)
- Transparent access to localized values via model attributes
- Language-aware `filter()`, `get()`, and `exclude()` on QuerySets
- Simple registration system via decorators
- Integration-ready: autodiscovery of `translation.py` files
- Per-language field customization — configure attributes like verbose_name, max_length, default, etc., per field and language via BcTranslationFieldParams

## 🚀 Installation

```bash
pip install bc-model-translator
```

Add the app to INSTALLED_APPS:

# ⚙️ Configuration

## 1. Add the app to INSTALLED_APPS 


```python
INSTALLED_APPS = [
    ...
    "bc_modeltranslater",
]
```

## 2. Available settings:

```python
# Temporarily disable translation registration if needed
MODELTRANSLATION_ENABLE_REGISTRATIONS = True

# Filename to look for in each app (default: "translation")
TRANS_FILENAME = "translation"
```

The TRANS_FILENAME setting defines the file name (without .py) that the app will look for in each Django app to discover translation registration.

# 🛠️ Usage

## Create a translation.py file inside your Django app.

This file is automatically discovered on startup.

```python
# your_app/translation.py

from bc_modeltranslater import register, BcTranslationOptions, BcTranslationField, BcTranslationFieldParams
from .models import TestModel

@register(TestModel)
class SymptomTranslationOptions(BcTranslationOptions):
    fields = [
        BcTranslationField(field_name="name"),
        BcTranslationField(
            field_name="desc",
            params={
                "fr": BcTranslationFieldParams(verbose_name="Description in French"),
                "kk": BcTranslationFieldParams(verbose_name="Kazakh description"),
            }
        )
    ]
```

## 🛠️ Available field parameters

```python
BcTranslationFieldParams(
    verbose_name: str | None = None,
    default: str | None = None,
    blank: bool | None = None,
    help_text: str | None = None,
    max_length: int | None = None,
    null: bool | None = None,
    unique: bool | None = None
)
```

You can define different attributes per language using the params dictionary, where each key is a language code ("en", "ru", "fr", etc.).

## 🔍 Querying

All query methods automatically use the active language:

```python
from django.utils.translation import activate

activate("ru")
TestModel.objects.filter(name="Имя")  # Filters by name_ru
```

## 🧠 Field Access

You can access localized values through normal attribute access:

```python
obj = TestModel.objects.first()
print(obj.name)  # Returns name_ru or name_en depending on current language
```
fapify 1.1.8
Download photos and videos from leakedzone.com
License: MIT
Requires Python: >=3.7

````markdown
# Coomify

An async CLI to bulk-download photos & videos from [coomer.su](https://coomer.su). Cass × GPT made this.

---

## 🚀 Features

- **Async & concurrent** downloads (configurable batch size)  
- **Auto-pagination** through user galleries  
- **HTML scraping** for full-res images & video sources  
- **Real-time terminal status** (via `tabulate` + `colorama`)  
- **ffmpeg**-powered media saving  

---

## 📦 Install

```bash
pip install fapify
````

Make sure you have Python 3.8+ and `ffmpeg` on your PATH.

---

## 💡 Quickstart

```bash
fapify -u <USERNAME> [--photos] [--videos] [--batch N]
```

* `-u, --user`  **(required)** target username
* `-p, --photos` only photos
* `-v, --videos` only videos
* `-b, --batch` concurrent downloads (default: 5)

**Example:** download everything from `jane_doe` with batch 10

```bash
fapify -u jane_doe -b 10
```

---

## 📂 Output

```
./jane_doe/
├─ photos/
└─ videos/
```

Enjoy! 🚀
hf-mirror-hub 0.0.4
A CLI tool to download Hugging Face models and datasets from mirror sites.
License: MIT
Requires Python: <4.0,>=3.8

# hf-mirror-hub

<p align="center">
<img alt="logo" src="assets/logo.svg"
</p>
<p align="center">
<img alt="PyPI - Version" src="https://img.shields.io/pypi/v/hf-mirror-hub">
<img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/hf-mirror-hub">
<img alt="GitHub License" src="https://img.shields.io/github/license/neverbiasu/hf-mirror-hub?color=blue">
</p>

一个从 Hugging Face 镜像站点快速下载模型和数据集的命令行工具。

## 特性

*   使用 Hugging Face 镜像站点加速下载
*   支持 `hf-transfer` 加速下载
*   支持指定保存目录
*   支持使用 Hugging Face Hub 访问令牌
*   自动转换软链接为实际文件

## 安装

### 从 PyPI 安装 (推荐)

```bash
pip install hf-mirror-hub
```

### 从源码安装

```bash
git clone https://github.com/neverbiasu/hf-mirror-hub.git
cd hf-mirror-hub
conda create -n hf-mirror-hub python=3.8 # 非必需，也可以用 venv 或者直接安装
conda activate hf-mirror-hub
pip install -e .
```

## 使用说明

### 基本用法 (下载模型)

```bash
hf-mirror-hub --model <model_name>
```

### 完整参数

```bash
hf-mirror-hub --model <model_name> --save_dir <save_path> --token <your_token> [--no-hf-transfer]
```

### 参数说明

*   `--model`, `-M`: 可选，模型名称 (例如: `deepseek-ai/DeepSeek-R1-Distill-Qwen-32B`)
*   `--save_dir`, `-S`: 可选，保存目录路径 (默认为 `data`)
*   `--token`, `-T`: 可选，Hugging Face 访问令牌 (用于访问私有模型或数据集)
*   `--no-hf-transfer`: 可选，禁用 `hf-transfer` 加速

## 贡献

请参阅 [CONTRIBUTING.md](CONTRIBUTING.md) 了解如何贡献。

## 许可证

MIT