semvec/pypi-packages huggingface dataset:
YLTK 0.1.0
---

# Yoruba Language Took Kit

The Yoruba language toolkit was developed as a tool for processing and preprocessing Yoruba language.
In the similitude of how the NLTK works, where stopwords, stem, lemmas are handle while processing languages, the YLTK is also equipped with various tools ranging from the stopwords in Yoruba and other things are under development.

- [Installation](#installation)
- [Usage](#usage)
- [Features](#features)
- [Contributing](#contributing)
- [License](#license)
- [Authors](#authors)

## Installation
Clone the repository:
   ```bash
   git clone https://github.com/username/project-name.git
   ```
Activate virtual environment
   ```bash
    YLTK\Scripts\activate
   ```
Install requirement
   ```bash
    pip install -r requirements.txt
   ```

Add you API_KEY
```bash
   export API_KEY='your-api-key-here'
   ```

## Usage
Run the script:
   ```bash
    python detect.py --url https://example.com
   ```

## Features
- Batch processing of large text to extract Yoruba texts alone with the method `extract_yoruba_words`.
- Frequency count for each words with the method `word_frequency_count`.
- Generate Stop words that is higher than a specified frequency with the method `stop_words`.
- Batch Stop words removal from a large Yoruba text using the method `remove_stopwords`

## Contributing
Contributions are welcome! Please follow these steps:
1. Fork the repository.
2. Create a feature branch: `git checkout -b feature-name`.
3. Commit your changes: `git commit -m "Add feature-name"`.
4. Push the branch: `git push origin feature-name`.
5. Submit a pull request.

## Testing
Run the tests using:
   ```bash
   pytest tests/
   ```

## License
This project is licensed under the MIT License. See the LICENSE file for details.

## Authors
1. Kolade Atanseiye: koladeatanseiye@gmail.com
squaretictactoe 1.6.0
Like Tic Tac Toe, but form a square with 4 corners instead of a line
Requires Python: >=3.9

# Square Tic Tac Toe

In Tic Tac Toe, a player wins by forming a line with three consecutive cells in any direction — horizontal, vertical or diagonal. In this modified version, a player has to form a square, i.e. four cells forming 90 degree angles and equidistant from each other.

A 3x3 grid would be too small a playing area, so 4x4 grid is used instead. Compared to 8 possible lines in Tic Tac Toe, this game has 20 possible squares. Can you spot all of them? Here's an illustration to help you:

![Types of Squares](https://learnbyexample.github.io/practice_python_projects/images/square_tic_tac_toe/types_of_squares.png)

# Screenshot

Terminal dimension should be at least 84x25 (characters x lines) for the game widgets to appear properly. When you run the app, you should get an initial screen similar to the one shown below:

![Square Tic Tac Toe initial screen](https://github.com/learnbyexample/TUI-apps/raw/main/SquareTicTacToe/square_tictactoe.png)

# Guide

* Click the **New Game** button to start a new game. Existing game, if any, will be abandoned.
* You can choose between **Easy** (default) and **Hard** modes by clicking those buttons.
    * In *Easy* mode, the AI will make the first move with a 50% chance and afterwards it will make a move randomly in response to user moves.
    * In *Hard* mode, the AI will always make the first move and at best you'll be able to TIE the game ;)
    * These choices will come into effect only after a new game is started.
* Press **d** key to toggle between light and dark themes.
* Press **q** key or **Ctrl+c** to quit the app.

User moves are denoted by the ⭕️ character and AI moves are denoted by the ✖️  character.

The text panel to the left of the game board displays the current status of the game. If the game ends with one of the players forming a valid square, the winning square will be highlighted.
awktutorial 1.6.0
brief tour of the GNU awk command
Requires Python: >=3.9

# Awk Tutorial

This interactive tutorial aims to give a brief tour of the `GNU awk` command.

# Screenshot

![Sample screenshot](https://raw.githubusercontent.com/learnbyexample/TUI-apps/main/AwkTutorial/awk_tutorial.png)

# License

Code snippets are licensed under [MIT LICENSE](https://github.com/learnbyexample/TUI-apps/blob/main/LICENSE)

Tutorial is licensed under [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/)
brunata-api 0.1.6
A simple API library to communicate with Brunata Online
Requires Python: <3.14,>=3.12

# Brunata Online API

[![License][license-shield]](LICENSE)

<!-- Sponsors -->

[![ko-fi][kofi_badge]](https://ko-fi.com/X8X3205KS)

## ⚠️ Please ensure your Brunata credentials work on [online.brunata.com][brunata] ⚠️

If your credentials don't work **AND** you use a different Brunata portal to view your metrics, please open an issue and/or merge request.

In most cases, you will likely have to add support for alternate portals yourself; I will gladly assist you in getting the authentication-flow working and finding the API endpoints. Then you can simply submit a Pull Request, and I'll review it when I have time 🙂

### The integration can fetch the following metrics

- 📊 Available meter types

- ⚡ Energy meters

- 💧 Water meters

- 🔥 Heating meters

- Measurement units used by meters

- Total consumption per meter

## Contributions are welcome!

If you want to contribute to this please read the [Contribution guidelines](CONTRIBUTING.md)

## Credits 💜

Active Directory B2C Login-flow was mostly based on [@itchannel](https://github.com/itchannel)'s [FordPass Integration][fordpass]

Total consumption and meter unit fetcher for the new API on Brunata Online by [@rien](https://github.com/rien) 🎉

Thanks to [WallyR](https://community.home-assistant.io/u/wallyr) on the Home Assistant Community forum for helping with testing out the district heating support on their account

[brunata]: https://online.brunata.com
[fordpass]: https://github.com/itchannel/fordpass-ha
[kofi_badge]: https://ko-fi.com/img/githubbutton_sm.svg
[license-shield]: https://img.shields.io/github/license/YukiElectronics/ha-brunata.svg?style=for-the-badge
translate-subtitle 0.1.3
A tool to translate subtitle files using DeepSeek API.
Requires Python: >=3.6

# subtitle-translator

## How to Use:

```
usage: translate-subtitle [-h] [-o OUTPUT_FILE] [-l TARGET_LANG] [--apikey APIKEY] [-b BATCH_SIZE]
                          input_file
```

Translate Subtitle to Target Language
```
> translate-subtitle subtitle.srt
> translate-subtitle -l zh-CN subtitle.srt
> translate-subtitle -l zh-CN -o translated.srt subtitle.srt
> translate-subtitle --apikey=<YOUR_APIKEY> subtitle.srt
```

Or you can put APIKEY in environment variable:
```
export DEEPSEEK_API_KEY=<YOUR_APIKEY>    # for linux
# set DEEPSEEK_API_KEY=<YOUR_APIKEY>     # for windows
translate-subtitle -l zh-CN  subtitle.srt
```


## How to Install:
Use `pip install subtitle-translator` Install the package.
pygeo-cn 0.1.5
Provides the function of offline processing of reverse geocoding of longitude and latitude coordinates in China, using longitude and latitude coordinates to query geographical location information (including location and administrative codes), with the finest granularity down to district and county-level cities
Requires Python: >=3.6

# Geo-Reverse Lookup for China

提供了离线处理中国境内经纬度坐标逆地理编码的功能，使用经纬度坐标查询地理位置，最细的粒度到县级市。

## 安装

你可以通过以下命令安装这个包：

```bash
pip install geo
#确保你已经安装了pip和wheel：
```

## 使用方法

```python
#使用这个包，你可以调用regeo函数来获取指定坐标点所在的省、市和县信息：
from PyGeoCN.regeo import regeo

latitude = 31.924167 # 纬度
longitude = 120.492326  # 经度

result = regeo(latitude, longitude)
print(result)

# 输出结果：
# {'status': 1, 'source': 'Internal', 'Info': 'Successfully retrieved address.', 'address': {'province': '江苏省', 'province_code': '156320000', 'city': '苏州市', 'city_code': '156320500', 'district': '张家港市', 'district_code': '156320582'}}
```

## 返回值结构

```
{
  "status": 1, # 1为成功，0为失败
  "source": "Internal",  # Internal为引用内部数据，External为引用外部数据
  "Info": "Successfully retrieved address.", # 返回信息概述
  "address": {
    "province": "江苏省",  # 省份
    "province_code": "156320000", 省份编号
    "city": "苏州市",  # 城市
    "city_code": "156320500", # 城市编号
    "district": "张家港市", # 区县
    "district_code": "156320582"  # 区县编号
  }
}
```

## 数据来源

数据来源于[天地图](https://https://cloudcenter.tianditu.gov.cn/administrativeDivision/)，地图数据可能会更新，可自行去天地图下载，然后使用自己下载的地理坐标数据,并重命名成固定的文件名（chain_province.geojson(省份坐标数据)、china_city.geojson（城市坐标数据）、china_district.geojson（区县坐标数据）），使用时只需要再传入指定的目录即可：

```python
from PyGeoCN.regeo import regeo

latitude = 31.924167 # 纬度
longitude = 120.492326  # 经度
# 下载包存放目录路径
geo_dir = "/data"
result = regeo(latitude, longitude,geo_dir)
print(result)

# 输出结果：
# {'status': 1, 'source': 'External', 'Info': 'Successfully retrieved address.', 'address': {'province': '江苏省', 'province_code': '156320000', 'city': '苏州市', 'city_code': '156320500', 'district': '张家港市', 'district_code': '156320582'}}
```

## 注意事项

```
确保你的Python环境支持Unicode文件名，因为坐标库中包含中文字符。
这个包仅适用于中国的坐标点的逆地址编码。
```