semvec/pypi-packages huggingface dataset:
modern-i18n 1.0.0
Modern-i18n is a modern library for internationalization (i18n) in Python projects.
Requires Python: >=3.5
Keywords: modern-i18n, i18n

# modern-i18n

Modern-i18n is a modern library for internationalization (i18n) in Python projects.

### Installation

```shell scipt
pip install modern-i18n
```

### Project Structure

Here is an example of the typical project structure after setting up the `modern-i18n` library:

```
project/
├── i18n/                # 📁 Internationalization module
│   └── config.py        # 📄 Configuration file: default language, path to translations, etc.
│
├── locale/              # 📁 Directory with translations (localizations)
│   ├── en/              # 📁 English locale
│   │   └── translation.json  # 📄 Translation file for English
│   └── ru/              # 📁 Russian locale
│       └── translation.json  # 📄 Translation file for Russian
│
└── example.py           # 📄 Example of using the translation function
```

### Configuration

All library settings are located in the `i18n/config.py` file. Here is an example of a basic configuration:

```python
import os
from pathlib import Path

from modern_i18n.i18n import I18n

project_root = Path(__file__).resolve().parent.parent
LOCALE_PATH = os.path.join(project_root, 'locale')

config = {
    'locale_path': LOCALE_PATH,  # Path to the directory with translations
    'locales': ['ru', 'en'],  # List of available languages
    'default_locale': 'ru',  # Default language
    'default_encoding': 'UTF-8'  # Default encoding for translation files is 'UTF-8'
}

i18n = I18n(config)
t = i18n.translate
```

- In the `i18n/config.py` file, you can configure main parameters such as the list of supported languages, the default
  language, the path to the translation directory, and additional options.
- All translations are stored in JSON format inside the `locale` directory, where each locale has its own folder.

### Examples of `translation.json` content

JSON files store key-value pairs, where the **key** is the original phrase, and the **value** is its translation into
the target language.

`locale/en/translation.json`:

```json
{
  "Привет": "Hello!",
  "Итого {a}+{b}={total}": "Total {a}+{b}={total}."
}
```

`locale/ru/translation.json`:

```json
{
  "Привет": "Привет!",
  "Итого {a}+{b}={total}": "Итого {a}+{b}={total}."
}
```

> ⚠️ Note that the original keys must be the same across all language files to ensure correct matching.

### Usage

Example of basic usage of the translation function `t`:

```python
from i18n.config import t

print(t('Привет'))  # -> Привет!
# Translation with specified locale
print(t('Привет', locale='en'))  # -> Hello!
# Translation with parameters
print(t('Итого {a}+{b}={total}', a=5, b=10, total=15))  # -> Итого 5+10=15.
print(t('Итого {a}+{b}={total}', locale='en', a=5, b=10, total=15))  # -> Total 5+10=15.
print(t('Ключ не существует'))  # Warning -> Ключ не существует
```
aiwenSDK 1.0.6
对埃文商业API的网络请求的封装，方便调用
Requires Python: >=3.6

# aiwenSDK

埃文商业API的Python SDK，提供对埃文商业API的网络请求封装，方便调用。

## 安装

```bash
pip install aiwenSDK
```

## 快速开始

```python
from aiwenSDK import aiwenClient, aiwenKey

# 设置API密钥
key = aiwenKey(api_key="your_api_key")

# 创建客户端实例
client = aiwenClient(key)

# 调用API
# ...具体使用方法请参考相关文档
```

## 主要模块

- **client**: API客户端模块
- **awEnum**: 枚举类型定义
- **awModel**: 数据模型和密钥管理
- **awException**: 异常处理

## 开发者

- 作者: aiwen
- 邮箱: sales@ipplus360.com
- 网站: https://www.ipplus360.com

## 许可证

请查看项目许可证文件了解详情。
brational 2.0.1
A SageMath package to beautifully format rational functions arising from enumerative algebra into plaintext and latex.
Keywords: SageMath, rational functions, generating series, formatting

# BRational
A SageMath package to beautifully format rational functions arising from enumerative algebra into plaintext and latex.

Version: 2.0.1

[Documentation](https://joshmaglione.com/BRational/)

---

### Example 1

The default factored expression for 

$$\dfrac{1 + 3q^{-1}t - 4q^{-1} - 4q^{-2}t + 3q^{-2} + q^{-3}t}{(1 - q^{-1}t)(1 - q^{-2}t^4)}$$

in SageMath is sometimes expressed as
```python
-(q^2 + 3*q*t - 3*q - t)*(q - 1)/((t^2 + q)*(t^2 - q)*(q - t))
```

Using `brational`, we get 

```python
q^-3*(1 - q)*(t + 3*q - 3*q*t - q^2)/((1 - q^-1*t)*(1 - q^-2*t^4))
```

Want $\LaTeX$? No problem:

```python
sage: print(br.brat(q^-3*(1 - q)*(t + 3*q - 3*q*t - q^2)/((1 - q^-1*t)*(1 - q^-2*t^4))).factor().latex())
\dfrac{q^{-3}(1 - q)(t + 3q - 3qt - q^2)}{(1 - q^{-1}t)(1 - q^{-2}t^4)}
```


### Example 2

The default expression for 

$$\dfrac{1 + 26T + 66T^2 + 26T^3 + T^4}{(1 - T)^5}$$

in SageMath is sometimes expressed as
```python
(-T^4 - 26*T^3 - 66*T^2 - 26*T - 1)/(T^5 - 5*T^4 + 10*T^3 - 10*T^2 + 5*T - 1)
```

Using `brational`, the default is 

```python
(1 + 26*T + 66*T^2 + 26*T^3 + T^4)/(1 - T)^5
```

And latex:

```python
sage: print(br.brat((1 + 26*T + 66*T^2 + 26*T^3 + T^4)/(1 - T)^5).latex())
\dfrac{1 + 26T + 66T^2 + 26T^3 + T^4}{(1 - T)^5}
```
mmragsdk 1.0.8
A simple SDK for the mmRag Application, the github for the app can be found here: https://github.com/marcoslashpro/multimodal-rag.git
Requires Python: >=3.11

# MmRAG-SDK
MmRAG-SDK is a simple Python SDK designed to make testing easier by eliminating the need to send HTTP requests from the terminal or script them manually.

# 🚀 How to Use
1. Set Up Your Environment:

I recommend using uv to manage your environment:
```
uv init .
uv add mmragsdk
```
Otherwise, with pip:
```
python3 -m venv .venv
. .venv/bin/activate
pip install mmragsdk
```
That’s it! Your environment is ready.


2. Initialize the SDK

Import and initialize the Client:
```
from mmragsdk import Client


client = Client(token='your_token_here')
```
> 💡 Note: To obtain a token, please email me at tambascomarco35@gmail.com and I will generate one for you.

## Available Methods
```
# Send a prompt
client.chat(prompt="your prompt here")
# - prompt: str
# - Raises ValueError if the prompt is empty

# Upload a file
client.upload(file_path="path/to/your/file.txt")
# - file_path: str
# - Raises FileNotFoundError if the file does not exist

# Perform a search
client.search(query="your search query")
# - query: str
# - Raises ValueError if the query is empty

# Clean storage
client.clean()
# - No parameters
# - ⚠️ DANGER: This method clears all stored data
```

# 🎉 Have Fun!
Enjoy a smooth and hassle-free testing experience with MmRAG-SDK. If you have questions or suggestions, feel free to reach out!