semvec/pypi-packages huggingface dataset:
gone-jaguar-500 1.0.0
Thai localization package
Requires Python: >=3.6
Keywords: gone,jaguar,gonejaguar

# ThaiLocalizer
ThaiLocalizer is python library, primarily focus on localize any value into meaningful Thai value.

# Installation
```sh
pip install GoneJaguar300
```
# Features
    Number localization 
    Convert number to Thai text and vice versa, convert Arabic to Thai number.
    
# Initialize the object
    from GoneJaguar300 import ThaiNumberConverter
    thainum = ThaiNumberConverter()
    
# Number Localization Methods
| Method name | Description |  Command  | Result   |
| ------ | ------ | -------------------- |  ----------- |
| ToText | Convert Arabic number to Thai text |  thainum.ToText(123) or thainum.ToText('123') | 'หนึ่งร้อยยี่สิบสาม'
| ToNum  | Convert Thai text to Arabic number | thainum.ToNum('หนึ่งร้อยยี่สิบสาม') | '123'
| ToThaiNumber | Convert Arabic number to Thai number | thainum(123) or thainum('123') |'๑๒๓'

### Number Localization Notes

- ToText and ToThaiNumber method can support unlimited digit.
- ToNum method will whitelist the following words, violation will lead to error 'Check if text contains excluded word'. 

    | Words |Words  |Words   |
    | ------ | ---- | ------|
    |เอ็ด|หก| ร้อย
    |หนึ่ง|เจ็ด|พัน
    |สอง|แปด  |  หมื่น
    |สาม| เก้า |แสน
    |สี่|สิบ|ล้าน
    |ห้า|ยี่|
GoneJaguar400 1.0.0
Thai localization package
Requires Python: >=3.6
Keywords: gone,jaguar,gonejaguar

# ThaiLocalizer
ThaiLocalizer is python library, primarily focus on localize any value into meaningful Thai value.

# Installation
```sh
pip install GoneJaguar300
```
# Features
    Number localization 
    Convert number to Thai text and vice versa, convert Arabic to Thai number.
    
# Initialize the object
    from GoneJaguar300 import ThaiNumberConverter
    thainum = ThaiNumberConverter()
    
# Number Localization Methods
| Method name | Description |  Command  | Result   |
| ------ | ------ | -------------------- |  ----------- |
| ToText | Convert Arabic number to Thai text |  thainum.ToText(123) or thainum.ToText('123') | 'หนึ่งร้อยยี่สิบสาม'
| ToNum  | Convert Thai text to Arabic number | thainum.ToNum('หนึ่งร้อยยี่สิบสาม') | '123'
| ToThaiNumber | Convert Arabic number to Thai number | thainum(123) or thainum('123') |'๑๒๓'

### Number Localization Notes

- ToText and ToThaiNumber method can support unlimited digit.
- ToNum method will whitelist the following words, violation will lead to error 'Check if text contains excluded word'. 

    | Words |Words  |Words   |
    | ------ | ---- | ------|
    |เอ็ด|หก| ร้อย
    |หนึ่ง|เจ็ด|พัน
    |สอง|แปด  |  หมื่น
    |สาม| เก้า |แสน
    |สี่|สิบ|ล้าน
    |ห้า|ยี่|
context-compose 0.0.2
Compose context managers from a sequence
Requires Python: >=3.6

# context_compose

### Python utility library to compose context managers (3.6+)

## Motivation

When you want to use a dynamic combination of context managers together, and the builtin ways are too ugly or inflexible.

Turn this:

```python
import os

if __name__ == "__main__":
    if os.environ.get("DEBUG") and os.environ.get("PROFILE":
        with debugger(), profile():
            main()
    elif os.environ.get("DEBUG"):
        with debugger():
            main()
    elif os.environ.get("DEBUG"):
        with debugger():
            main()
```

Into this:

```python
import os

from context_compose import compose, impotent_manager


if __name__ == "__main__":
    managers = [
        debugger() if os.environ.get("DEBUG") else impotent_manager(),
        profile() if os.environ.get("PROFILE") else impotent_manager(),
    ]
    with compose(managers):
        main()

```

`impotent_manager` is a useful substitute when your code has a `with` block, you'd rather keep to a single pattern so a context manager _must_ be provided to it.

## How it works

Under the hood it uses [contextlib.ExitStack](https://docs.python.org/3/library/contextlib.html#contextlib.ExitStack) to layer context managers in list order.