semvec/pypi-packages huggingface dataset:
imgPreprocessor 1.0.4
Image Preprocessor with Five Different Functions
Requires Python: >=3.12.6

# Image Preprocessor

### This is an image preprocessor with five features: color extraction, color filter, blurr filter, count face, and EXIF removal.

# Installation

### Install through pip :
```bash
$ pip install imgPreprocessor
```

# usage e.g.

```python
from imgPreprocessor import extract_color_palette, plot_palette,

plot_palette((extract_color_palette("image_path.jpg"))) 
```

```python
from imgPreprocessor import ColorFilter

c=ColorFilter("image_path.jpg") 

user_color = (201, 251, 206)
#(B, G, R)
c.custom_colorfilter(user_color)
c.show()

c.deepskyblue_colorfilter()
c.show()
```

```python
from imgPreprocessor import CountFace

c=CountFace()
c.set_image_path("image_path.jpg")
print(c.count_faces())
```
```python
from imgPreprocessor import CustomBlurFilter
c=CustomBlurFilter("image_path.jpg")
c.load_image()
c.enhance_and_blur(clip_limit=2.0, tile_grid_size=(8, 8), blur_ksize=(15, 15))
#optional: clip_limit, tile_grid_size, blur_ksize
c.display_images()
``` 
```python 
from imgPreprocessor import modexif
modexif("image_path.jpg", "output_path.jpg", make = "samsung", model = "S24", datetime = "2024:12:05 12:57:54") 
#optional: make, model, datetime
#datetime format : "year:month:day hour:minute:second" 
```



# License Information for Dependencies

This project uses the following third-party libraries, each with its respective license:

1. **Matplotlib** - [BSD-style License](https://matplotlib.org/stable/users/license.html)  
2. **Pillow** - [HPND License](https://pillow.readthedocs.io/en/stable/about.html#license)  
3. **OpenCV (opencv-python)** - [Apache License 2.0](https://github.com/opencv/opencv/blob/master/LICENSE)  
4. **NumPy** - [BSD License](https://numpy.org/doc/stable/license.html)  
5. **Piexif** - [MIT License](https://piexif.readthedocs.io/en/latest/about.html#License)  
6. **Scikit-learn** - [BSD License](https://github.com/scikit-learn/scikit-learn?tab=BSD-3-Clause-1-ov-file)





# authors

- [GarlicCook](mailto:kms300508@gmail.com)
- [ugyo](mailto:rss1234567@hanyang.ac.kr)
- [jaesung05](mailto:1004jaesung@gmail.com)
- [rlaehdrbb](mailto:donggyug713@gmail.com)
- [hong02jp](mailto:hong02jp@gmail.com)


## More Information

- [Documentaion](https://img-docs.readthedocs.io/en/latest/)
sbcli-lvol-ha 1.1.3
CLI for managing SimplyBlock cluster


# Simply Block
[![Docker Image Build](https://github.com/simplyblock-io/sbcli/actions/workflows/docker-image.yml/badge.svg)](https://github.com/simplyblock-io/sbcli/actions/workflows/docker-image.yml)

[![Python Unit Testing](https://github.com/simplyblock-io/sbcli/actions/workflows/python-testing.yml/badge.svg)](https://github.com/simplyblock-io/sbcli/actions/workflows/python-testing.yml)


## Install
Add the package repo from AWS CodeArtifact using [awscli](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html)

```bash
aws codeartifact login --tool pip --repository sbcli --domain simplyblock --domain-owner 565979732541 --region eu-west-1
```
Install package
```bash
pip install --extra-index-url https://pypi.org/simple sbcli-dev
```

# Components

## Simply Block Core
Contains core logic and controllers for the simplyblock cluster

## Simply Block CLI
Please see this document
[README.md](../main/simplyblock_cli/README.md)


## Simply Block Web API
Please see this document
[README.md](../main/simplyblock_web/README.md)



### local development

FoundationDB requires a client library (libfdb_c.dylib) for the Python bindings to interact with the database.
Depending on the OS architecture, please install the appropriate version from the official github repo

```
wget https://github.com/apple/foundationdb/releases/download/7.3.3/FoundationDB-7.3.3_arm64.pkg
```

setup the code on a management node and the webApp code can be developed by building the `docker-compose-dev.yml` file.


```
sudo docker compose -f docker-compose-dev.yml up --build -d
```
prophetdicebot 0.3
ProphetDice Functions
Requires Python: >=3.7

# ProphetDice

ProphetDice is a Python package designed to provide various utilities for Prophet Dice Bot functionality. It includes features such as automated betting, model training, and prediction.

## Features

- Automated betting on PrimeDice
- Model training and prediction using SGDClassifier
- Online learning and model retraining
- Confidence-based bet adjustment
- Data handling and logging

## Installation

You can install ProphetDice with pip:

```bash
pip install prophetdicebot
```
## Configuration

```bash
[chrome]
user_data_dir = C:/Users/your user here/AppData/Local/Google/Chrome/User Data/
profile_directory = Profile 1

[api]
mistral_api = your mistral api here
google_api = your google api here
prophetdice_api = your prophetdice api here
username = your username here
maximum_bet = 0.1
base_bet = 0.01
```

## Code Overview
ProphetDice is designed to automate betting on the PrimeDice platform. Here are some of the key features and functionalities of the code:

- **Automated Betting**: The code automates the betting process on PrimeDice by making predictions and placing bets based on those predictions. It uses a combination of random actions and model-based predictions to decide the bets.
- **Model Training and Prediction**: The code includes functionality for training a machine learning model (SGDClassifier) to make predictions about the outcomes of dice rolls. It supports both initial training and online learning, where the model is updated with new data as it becomes available.
- **Confidence-Based Bet Adjustment**: The betting strategy is adjusted based on the confidence of the model's predictions. This allows for more informed betting decisions and potentially better outcomes.
- **Data Handling and Logging**: The code handles data efficiently, storing results and conditions in a CSV file. It also includes logging to keep track of important events and errors during the betting process.
- **Browser Automation**: The code uses the undetected-chromedriver package to automate interactions with the PrimeDice website. It opens a browser, navigates to the betting page, and interacts with elements on the page to place bets.
- **Configuration Management**: The code reads configuration settings from a `config.ini` file, allowing for easy customization of user data directory, profile directory, and API keys.
- **Error Handling**: The code includes robust error handling to manage issues such as file not found errors, browser errors, and timeouts when waiting for elements on the page.

Overall, the ProphetDice package provides a comprehensive and automated solution for betting on PrimeDice, leveraging machine learning for predictions and confidence-based adjustments to optimize betting strategies.
spp-localSQL 0.2.3
一个简单的 SQLite 数据库助手类
Requires Python: >=3.6

# localSQL

`localSQL` 是一个简单的 SQLite 数据库操作助手类，旨在帮助用户在 Python 中快速管理 SQLite 数据库，包括创建表、插入记录、更新插入（Upsert）、查询和删除记录等常见操作。

## 安装:

你可以通过以下命令安装 `localSQL` 包：

--- 
```
pip install localSQL
```

--- 

## 使用方法

### 1. 导入并创建数据库对象

```python
from localSQL import SQLiteDB

# 创建数据库对象
db = SQLiteDB('example.db')
```


### 2. 创建表
```python
db.create_table('locations', {
    "id": "INTEGER PRIMARY KEY AUTOINCREMENT",
    "time": "TEXT NOT NULL",
    "region": "TEXT NOT NULL",
    "address": "TEXT NOT NULL",
    "name": "TEXT NOT NULL",
    "phone": "TEXT NOT NULL",
    "is_added": "BOOLEAN NOT NULL"
})
```
### 3. 插入记录
```python
db.insert_record('locations', {
    "time": "2024-12-07 11:00:00",
    "region": "河南洛阳A",
    "address": "洛阳市新安县老城河南88号",
    "name": "李四",
    "phone": "15037995595871",
    "is_added": False
})
```


### 4. 更新或插入记录（Upsert）
```python
db.upsert_record('locations', {
    "time": "2024-12-07 11:30:00",  # 更新时间
    "region": "河南洛阳A",
    "address": "洛阳市新安县老城河南88号",
    "name": "李四",
    "phone": "15037995595871",
    "is_added": True  # 更新状态为已添加
}, conditions=["phone"])  # 根据手机号判断是否存在记录
```
### 5. 删除记录
```python
使用 delete_record 方法删除符合条件的记录。例如：

python
复制代码
db.delete_record('locations', {"region": "河南洛阳A"})
```
### 6. 查询记录
```python
records = db.query_records('locations', {"region": "河南洛阳A"})
print("查询到的记录：")
for record in records:
    print(record)
```
### 7. 关闭数据库连接
```python
db.close()
```
---
许可证
该项目采用 MIT 许可证，详情请查看 LICENSE 文件。

### 5. **LICENSE 文件（可选）**

如果你选择使用 MIT 许可证，`LICENSE` 文件的内容可以是：

MIT License

Copyright (c) 2024 Your Name

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.