semvec/pypi-packages huggingface dataset:
Uniquorn 0.0.1
Create class instances with the same parameters only once
Requires Python: >=3.11

# Uniquorn

A Python metaclass to create class instances with the same parameters only once.

Sometimes you need to avoid duplicated class instances with the same parameters.
The `Uniquorn` metaclass makes this easy.

## Basic usage

To avoid creating multiple instances with the same instantiation parameters
simply designate `Uniquorn` as your class' metaclass.

```python
from uniquorn import Uniquorn

class ExampleClass(metaclass=Uniquorn):

    def __init__(self, ...):
        ...
```

## List and dict order

By default, the order of items in list and dict parameters is irrelevant to
`Uniquorn`. It sorts the items in an attempt to detect duplicates.

You can tell `Uniquorn` the order of items is relevant to your
class through `uniquorn_list_order_matters` and `uniquorn_dict_order_matters`.
By assigning `True` to you tell `Uniquorn` for all parameters of that type order
of the items is relevant. Alternatively, you can assign the names of the
parameters  as a list, tuple or set to tell `Uniquorn` for those parameters the
order of the items is relevant.

```python
from uniquorn import Uniquorn

class ExampleClass(metaclass=Uniquorn):

    uniquorn_list_order_matters = True
    uniquorn_dict_order_matters = ("param1", "param2", )

    def __init__(self, ...):
        ...
```

## Limitations
- If you change the parameters after instance creation it will not be noted
  by `Uniquorn`.
- Apart from the mechanism described under 'List and dict order' above,
  `Uniquorn` makes no attempt to match parameters based on their internal
  structure.
testvelikafkaclient 1.0.4
veli kafka client <3 (demo)

### Kafka Client for VELI.STORE

### Description

This module helps you to integration kafka messaging into your apps.
Supported frameworks: FastAPI, (Django coming soon :D)

### How to use (FastAPI):

* Producer

```python
app = FastAPI()


def produce_event(topic, event):
    producer = app.state.producer
    producer.produce_event(topic, event)


@app.on_event("startup")
async def startup_event():
    bootstrap_servers = ['localhost:9092', 'localhost:9093']
    producer = KafkaEventProducer(bootstrap_servers)
    await producer.start()
    app.state.producer = producer

@app.on_event("shutdown")
async def shutdown_event():
    await app.state.producer.stop()

@app.post("/products")
async def save_product(product_info: ProductInfo):
    product = save_product(product_info)
    produce_event(KafkaTopic.PAGE_VIEWS, product)
    return product
```

* Consumer

```python
app = FastAPI()


@app.on_event("startup")
async def startup_event():
    # Define the configuration variables
    topics = [KafkaTopic.USER_REGISTRATIONS, KafkaTopic.PAGE_VIEWS]
    bootstrap_servers = ['localhost:9092', 'localhost:9093']
    group_id = 'app_id'

    consumer = AsyncKafkaConsumer(topics, bootstrap_servers, group_id)
    app.state.consumer = consumer
    await consumer.start()
    # start the consume_events coroutine in the background
    asyncio.create_task(consumer.consume())


@app.on_event("shutdown")
async def shutdown_event():
    await app.state.consumer.stop()
```
customtkinterx 0.4.4
extra widgets for customtkinter
Requires Python: >=3.7,<4.0

# CustomTkinterX
> 解释器需Python3.7及以上

`customtkinter`的扩展组件功能库，同时也采集了其他开发者制作的组件，并进行仅类型提示上的修改（源代码`__main__.py`上有标注）

## Fluent主题
尚未完善设置，修改了`CTk` `CTkToplevel` `CTkFrame` `CTkButton` `CTKEntry` `CTkComboBox`等类。
```python
from customtkinter import *
from customtkinterx import *

CTkFluentTheme()
```

## CTkCustom 自定义窗口
原窗口因标题栏与边框的限制，导致界面效果极差，但是仍可以通过一些方法自定义窗口`wm_overrideredirect`。
平台支持`Windows` `MacOS` `Linux`，其中界面效果支持最好的是`Windows`，`MacOS` `Linux`无法使用透明色，完全消除边框使用圆角，
及将图标保留至任务栏，采用置顶的方法保持窗口的显示。

### 组件结构
```markdown
| CTkCustom -> CTk
|-->> __frame_border(mainframe): CTkFrame
|-->> __frame_title(titlebar): CTkFrame
|-->> __label_title(titlebar_title): CTkLabel
|-->> __button_close(titlebar_closebutton): CTkButton
|-->> __button_minimize(titlebar_minimizebutton): CTkButton
```

### 基础示例
```python
from customtkinter import *
from customtkinterx import *

root = CTkCustom()

root.mainloop()
```

### 主题配置
你可以自定义一个主题，然后加上`CTkCustom`项
```json
{
  ...
    "transparent_color": "#101010", // 为实现圆角边框而设置的透明色

    "closebutton_text_color": ["#000000", "#ffffff"],
    "closebutton_color": ["#f4f6f8", "#212b36"],
    "closebutton_hover_color": ["#b40d1b", "#b40d1b"],

    "minimizebutton_text_color": ["#000000", "#ffffff"],
    "minimizebutton_color": ["#f4f6f8", "#212b36"],
    "minimizebutton_hover_color": ["#dfe3e8", "#454f5b"]
  },
  ...
}
```

### 添加缩放窗口大小的手柄
```python
CTKCustom.create_sizegrip()
```
自定义手柄，将会使用库`pyautogui`。
```bash
python -m pip install pyautogui
```
```python
CTKCustom.create_sizegrip(True)
```

```python
from customtkinter import *
from customtkinterx import *

root = CTkCustom()
root.create_sizegrip()

root.mainloop()
```

```python
from customtkinter import *
from customtkinterx import *

root = CTkCustom()
root.create_sizegrip(True)

root.mainloop()
```

## CTkInfoBar 消息栏
### 组件结构
```markdown
| CTkInforBar -> CTkFrame
|-->> __label_title(title): CTkLabel
|-->> __label_info(info): CTkLabel
|-->> __button_close(close): CTkButton
```

### 基础示例
```python
from customtkinter import *
from customtkinterx import *

root = CTk()

infobar = CTkInfoBar()
infobar.show()

root.mainloop()
```

### 主题配置
你可以自定义一个主题，然后加上`CTkInfoBar`项
```json
{
  ...
  "CTkInfoBar": {
    "corner_radius": 8,
    "border_width": 0,

    "fg_color": ["#61f3f3", "#006c9c"], 
    "fg_hover_color": ["#cafdf5", "#003768"], // 关闭按钮被鼠标捕捉时的颜色

    "border_color": ["#b0b2b2", "#424556"],  

    "success_color": ["#86e8ab", "#1b806a"],  // 取自配色severity中NORMAL值
    "success_hover_color": ["#d8fbde", "#0a5554"],  // 取自配色severity中被鼠标捕捉时的NORMAL值
    "caution_color": ["#ffd666", "#b76e00"],  // 取自配色severity中CAUTION值
    "caution_hover_color": ["#fff5cc", "#7a4100"],  // 取自配色severity中被鼠标捕捉时的CAUTION值
    "critical_color": ["#ffac82", "#b71d18"],  // 取自配色severity中CRITICAL值
    "critical_hover_color": ["#ffe9d5", "#7a0916"]  // 取自配色severity中被鼠标捕捉时的CAUTION值

  },
  ...
}
```
kafkaclientvelistore 0.0.5
Veli kafka client <3

### Kafka Client for VELI.STORE

### Description

This module helps you to integration kafka messaging into your apps.
Supported frameworks: FastAPI, (Django coming soon :D)

### How to use (FastAPI):

* Producer

```python
app = FastAPI()


def produce_event(topic, event):
    producer = app.state.producer
    producer.produce_event(topic, event)


@app.on_event("startup")
async def startup_event():
    bootstrap_servers = ['localhost:9092', 'localhost:9093']
    producer = KafkaEventProducer(bootstrap_servers)
    await producer.start()
    app.state.producer = producer

@app.on_event("shutdown")
async def shutdown_event():
    await app.state.producer.stop()

@app.post("/products")
async def save_product(product_info: ProductInfo):
    product = save_product(product_info)
    produce_event(KafkaTopic.PAGE_VIEWS, product)
    return product
```

* Consumer

```python
app = FastAPI()


@app.on_event("startup")
async def startup_event():
    # Define the configuration variables
    topics = [KafkaTopic.USER_REGISTRATIONS, KafkaTopic.PAGE_VIEWS]
    bootstrap_servers = ['localhost:9092', 'localhost:9093']
    group_id = 'app_id'

    consumer = AsyncKafkaConsumer(topics, bootstrap_servers, group_id)
    app.state.consumer = consumer
    await consumer.start()
    # start the consume_events coroutine in the background
    asyncio.create_task(consumer.consume())


@app.on_event("shutdown")
async def shutdown_event():
    await app.state.consumer.stop()
```
dsspkg 0.3.3
A data splitting and scaling package
Requires Python: >=3.10

A python package for data processing.The data is sliced and normalized based on sklearn

Please put the data into a folder called "data" (if it does not exist, create a new one), the program automatically completes the normalization and slicing.

You can adjust the program file parameters yourself based on your input data

version：0.3.3
lzmp 0.4.0
simple wrapper around the multiprocessing module allowing the lazy programmer to run batches of processes
Requires Python: >=3.7

lzmp
----

``lzmp`` is a simple wrapper around the Python multiprocessing module,
allowing the lazy programmer to run batches of processes.

lzmp contains the class ``Pool`` which lets the user specify one or more
callable objects (such as functions) along with lists or argument to
process. ``lzmp`` collects the return value of each call and return
the whole lot as a list, keeping the original submission order. For
a single type of callable, the standalone function ``run`` wraps the
wrapper and allows one-line parallelization. Optionally, a function
may be called on the list of compiled results.

The documentation can be found at: <https://lzmp.readthedocs.io/en/latest/>
bkv 0.0.2
A simple kv store

<!--
 * @Author: xupingmao
 * @email: 578749341@qq.com
 * @Date: 2023-06-22 12:23:05
 * @LastEditors: xupingmao
 * @LastEditTime: 2023-06-22 15:06:35
 * @FilePath: \bkv\README.md
 * @Description: 描述
-->
# bkv

A simple kv store.

# Feature

- get
- put
- delete
- compact

# TODO

- []