semvec/pypi-packages huggingface dataset:
qt-UILoader 1.0.3
只要一个ui文件，自动加载对应的逻辑类.
Requires Python: >=3.9

# qt-UILoader
 ## 调用该工具的方法
 >只需要给一个.ui界面文件，会自动加载一个逻辑类与之匹配。
> 
   >你可以很方便的在逻辑类里写你的功能
> 
> 要用到什么组件只需要在逻辑类里声明变量。记得变量名必须要和ui里的objectName里的一样


### 案例：

**注意1：**
 >mainWindow.ui  和 mainWindow_logic.py必须在同一目录

**注意2：**
  >逻辑类的名字是ui文件名下划线加logic。 mainWindow_logic.py
>
**注意3：**
  >库用的是PyQt6
> 
 **更新日志2025年3月11日**
 >改进了事件的自动连接和显示连接。自动连接的命名规则是on_pushButton_clicked。由三部分构成on、_pushButton、_clicked。分别是：on开头，_pushButton组件的objectName，_clicked事件名称
### 1.mainWindow.ui 这是界面文件   

   ```xml
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MainWindow</class>
 <widget class="QMainWindow" name="MainWindow">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>300</width>
    <height>200</height>
   </rect>
  </property>
  <widget class="QWidget" name="centralwidget">
   <layout class="QVBoxLayout">
    <item>
     <widget class="QLineEdit" name="lineEdit"/>
    </item>
    <item>
     <widget class="QPushButton" name="pushButton">
      <property name="text">
       <string>Click Me</string>
      </property>
     </widget>
    </item>
   </layout>
  </widget>
 </widget>
</ui>
```

### 2.在旁边建立一个mainWindow_logic.py文档。
   ```python
from PyQt6.QtWidgets import QPushButton, QLineEdit

class MainWindowLogic:
    pushButton: QPushButton  # 必须与UI中的objectName一致
    lineEdit: QLineEdit

    def setup_connections(self):
        """显式信号连接"""
        self.pushButton.clicked.connect(self.on_button_clicked)
        print("显式连接成功")

    def on_button_clicked(self):
        """按钮点击事件处理"""
        text = self.lineEdit.text() or "World"
        print(f"[显式] Hello {text}!")

    def pushButton_clicked(self):
        """自动连接事件（命名规范：组件名_信号名）"""
        print("[自动] 按钮点击事件通过命名规范连接成功")
```

### 3 调用

```python

if __name__ == "__main__":
    from PyQt6.QtWidgets import QApplication

    # 确保工作目录正确（如果从父目录运行）
    os.chdir(os.path.dirname(__file__))

    app = QApplication([])

    # 使用相对路径示例
    loader = UILoader("mainWindow.ui")  # UI文件在子目录test1中
    window, logic = loader.load()
    window.show()

    app.exec()

```
fast-reading 0.1.2
A fast reading file library for Python
Requires Python: >=3.9
Keywords: python, rust, pyo3, file, read, reading, readline, readlines, readall, readallline, readalllines

# Fast Reading

A fast reading file library for Python

[![Python ≥3.9](https://img.shields.io/badge/Python-%3E%3D3.9-blue)](https://www.python.org/downloads/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## Description

Fast Reading is a high-performance file reading library for Python, written in Rust using [pyo3](https://github.com/PyO3/pyo3). It provides an efficient mechanism for reading files by loading them in batches and yielding file content one at a time. This makes it ideal for processing large volumes of data with minimal overhead.

## Features

- **High Performance:** Built with Rust for speedy file operations.
- **Seamless Python Integration:** Uses pyo3 for a natural Python interface.
- **Batch File Reading:** Reads files in batches to optimize I/O, then iterates over individual file data.
- **Flexible Iterators:** Provides different iterator types for various use cases.
- **Cross-Platform Compatibility:** Works with Python 3.9 and above.

## Installation

Ensure you have [maturin](https://github.com/PyO3/maturin) installed:

```shell
pip install fast-reading
```

# Tests

```shell
> 100_000 files of 1024 bytes each

$ Python reading time: 0.777500 seconds
$ FilesBatchIterator reading time (batch_size=5): 0.449203 seconds
$ FlattenFilesBatchIterator reading time (batch_size=5): 0.448566 seconds
```

```shell
> 100_000 files of 32768 bytes each

$ Python reading time: 1.138894 seconds
$ FilesBatchIterator reading time (batch_size=5): 0.847089 seconds
$ FlattenFilesBatchIterator reading time (batch_size=5): 0.835050 seconds
```

```shell
> 1_000_000 files of 4096 bytes each

$ Python reading time: 14.950660 seconds
$ FilesBatchIterator reading time (batch_size=5): 5.086445 seconds
$ FlattenFilesBatchIterator reading time (batch_size=5): 5.068229 seconds
```

# Usage
### FilesBatchIterator Example
This iterator reads files in batches and returns a list of file contents for each batch.

```python
from fast_reading import FilesBatchIterator

# Initialize the iterator for reading files from a directory with a batch size of 100
for file_bytes in FilesBatchIterator("/path/to/directory", batch_size=100):
    # file_bytes is a list of bytes read from one or more files
    print(file_bytes)
```

### FlattenFilesBatchIterator Example
This iterator loads a batch of files but yields file content one by one.

```python
from fast_reading import FlattenFilesBatchIterator

# Initialize the iterator to read files in batches of 5,
# but return one file's content at a time.
for file_content in FlattenFilesBatchIterator("/path/to/directory", batch_size=5):
    # file_content is the bytes content of a single file
    print(file_content)
```

# License
This project is licensed under the MIT License.

# Contact
Author: @vffuunnyy
aliyun-semantic-conventions 1.2.0
Aliyun Semantic Conventions
Requires Python: >=3.7

# Aliyun Semantic Conventions

[![pypi](https://badge.fury.io/py/openinference-semantic-conventions.svg)](https://pypi.org/project/openinference-semantic-conventions/)

This library contains code for the Aliyun Semantic Conventions defined by the Aliyun specification.
keepassxc_cli_integration 1.0.1
CLI integration for KeepassXC GUI.
Requires Python: >=3.11
Keywords: keepassxc, keepassxc-cli, keepass, password manager

# keepassxc_cli_integration



*CLI and Python integration for KeepassXC GUI.*

---


# CLI

---
- kpx
    - get
        - login
            - {{url}} (Get login for the specified URL from open databases.)
        - password
            - {{url}} (Get password for the specified URL from open databases.)
        - \--name (Specify the name of the entry in the database. Required if the URL has multiple entries.)
        - \--bat (Escape output to use BAT.)
    - associate
        - add (Default. Create an association with the CURRENT ACTIVE database.)
        - delete
            - {{select}} (Default: "current". Delete the selected association. You can specify the association name as either "all" or "current".)
        - show (Show all saved associations.)

---

# Python

--- 

The keepassxc_cli_integration.kpx module provides similar functions for use directly in Python.

---

*Notes:*
- **KeepassXC-GUI !!!MUST!!! have browser integration enabled.**
- *The association is carried out only with the active (and not with all open) databases. In order to receive information from all open databases, you must first carry out an association with each of them.*
- *Intended for Windows. May or may not work on Linux.*
- *Due to limitations of KeepassXC-GUI, it is possible to retrieve records from databases only by URL. The URL field **can be** written in the database without http(s):\\ and **can** also be specified without http(s):\\ in CLI\Python to retrieve data.*

---

# Example

---

```powershell
# example.ps1
$VeraCrypt = "C:\Program Files\VeraCrypt\VeraCrypt.exe"
$password = kpx get passoword example-vault

& $VeraCrypt /volume "C:\example\vault.hc" /letter Y /password $password /b /q
```

# Installation

1. pip / pipx
```
pip (or pipx) install keepassxc_cli_integration
```
2. git
```
git clone https://github.com/overgodofchaos/keepassxc_cli_integration.git
cd keepassxc_cli_integration
pip (or pipx) install .
```