semvec/pypi-packages huggingface dataset:
libvpet 0.2.0
A virtual pet library for Python
License: MIT
Keywords: virtual pet, game, library, python

# `libvpet` - a virtual pet library
you want a pet? you have to code it >:)
## what's the purpose of this
I don't like existing virtual pet services, so I made my own. libvpet's goal is to be realistic as possible. you have to feed, play, and take care of your pet. if you don't, your pet will be sad :(
## how to use
```python
from libvpet import VirtualPet
pet = libvpet.VirtualPet("./cutedoggo.json", name="cutedoggo")

# feed your pet
pet.feed()

# play with your pet
pet.play()

# sleep your pet
pet.sleep()

# view status of your pet
pet.status()

# age your pet
pet.age_pet()
```
## competition
I will be hosting a competition to see who can implement a web version of this using libvpet. the winner will get a shoutout here. good luck! open an issue to submit your project.
burmese-tools 0.1.2
Burmese NLP Tools
License: MIT
Requires Python: >=3.6

# Burmese-Tools

**burmese-tools** is a Python library that mainly designed for transformation between unicode and zawgyi burmese lanuage script. Moreover, it also support syllable tokenization for burmese unicode and parital syllable tokenization for burmese zawgyi.

## Features
- Zawgyi to Unicode Conversion: Convert Zawgyi-encoded text to Unicode.
- Unicode to Zawgyi Conversion: Transform Unicode text back to Zawgyi.
- Unicode Syllable Tokenization: Tokenize Burmese Unicode text into syllables with customizable splitting.
- Partial Zawgyi Syllable Tokenization: Tokenize Burmese Zawgyi text into syllables.


## Installation
You can install this library from PyPI:
```python
pip install burmese-tools
```

## Usage

### Importing the Library
```python
from burmese_tools import tools
```


### Convert Zawgyi to Unicode
```python
text_zawgyi = "ကႏၲာရ"
converted_text = tools.zaw2uni(text_zawgyi)
print(converted_text)  # Output: ကန္တာရ
```

### Convert Unicode to Zawgyi
```python
text_unicode = "ကန္တာရ"
converted_text = tools.uni2zaw(text_unicode)
print(converted_text)  # Output: ကႏၲာ႐
```

### Tokenize Unicode Text into Syllables
The uni_syllable function is a utility to tokenize Unicode text into syllable tokens, allowing for flexible splitting methods.

**Features**
- Tokenizes Unicode text into syllables.
- Provides two types of splitting:
    - Type 1: Splits `ဂန္ဓာရ` into `['ဂ', 'န္ဓာ', 'ရ']`. (default)
    - Type 2: Splits `ဂန္ဓာရ` into `['ဂန္', 'ဓာ', 'ရ']`.
- Supports an optional transform to replace `္` with ` ်` (applies only when type=2) d
    - default = True

```python
text = "ကန္တာရ"
tokens = tools.uni_syllable(text, type=1)
print(tokens)  # Output: ['က', 'န္တာ', 'ရ']
```

```python
text = "ကန္တာရ"
tokens = tools.uni_syllable(text, type=2)
print(tokens)  # Output: ['ကန်', 'တာ', 'ရ']
```

```python
text = "ကန္တာရ"
tokens = tools.uni_syllable(text, type=2, transform=False)
print(tokens)  # Output: ['ကန္', 'တာ', 'ရ']
```

### Tokenize Zawgyi Text into Partial Syllables
```python
text = "ကႏၲာရ"
tokens = tools.zaw_partial_syllable(text)
print(tokens)  # Output: ['က', 'ႏၲာ', 'ရ']  in unicode ['က', 'န္တာ', 'ရ'] 
```

## Contributing
Contributions are welcome! Please follow these steps:

- Fork the repository.
- Create a new branch for your feature/bug fix.
- Make your changes and test thoroughly.
- Submit a pull request.


## License
This library is licensed under the MIT License. Feel free to use, modify, and distribute it.


# Acknowledgments

This library was developed to simplify Burmese text processing for developers and linguists. Special thanks to [**Sa Phyo Thu Thet**](https://github.com/SaPhyoThuHtet), from Simbolo  for his invaluable guidance, kindness, and support in teaching me. His mentorship has been instrumental in shaping my understanding and skills.
 
Contributions and feedback from the community are also highly appreciated.