semvec/pypi-packages huggingface dataset:
VickClass 0.0.1
A simple class utility package
License: MIT
Requires Python: >=3.6
Keywords: class, python, utility

## VickClass - Bank\_Account Utility

**VickClass** is a simple Python package that provides a basic simulation of a bank account.
It allows users to **deposit**, **withdraw**, and **check balance**, making it great for beginner-level understanding of object-oriented programming in Python.

---

### 📦 Installation

Install directly from PyPI:

```bash
pip install VickClass
```

---

### 🧠 Features

* Deposit money
* Withdraw money (with insufficient balance check)
* Display current balance

---

### 🧪 Usage Example

```python
from vicksclass.vicks import Bank_Account

# Create an account with an optional initial balance
account = Bank_Account(balance=1000)

# Deposit money
account.deposit(500)

# Withdraw money
account.withdraw(200)

# Display balance
account.display()
```

---

### 📁 Class Reference

#### `Bank_Account(balance=0)`

Initializes the account with a balance. Default is `0`.

#### `.deposit(amount)`

Adds the specified amount to the balance.

#### `.withdraw(amount)`

Subtracts the specified amount if sufficient balance is available. Otherwise, prints a warning.

#### `.display()`

Prints the current available balance.

---

### 🧑‍💻 Author

[Vicky Kumar](https://github.com/imvickykumar999)
Email: [imvickykumar999@gmail.com](mailto:imvickykumar999@gmail.com)

---

### 🪪 License

This project is licensed under the [MIT License](./License.txt)
qairt-rapper 0.1.0
A Python wrapper for Qualcomm QAIRT SDK
License: MIT
Requires Python: >=3.7

# QAIRT Wrapper

一个用于高通QAIRT SDK的Python包装器。

## 安装

```bash
pip install qairt-wrapper
```

## 使用方法

### 环境设置

使用前，您需要确保已正确设置QAIRT SDK环境。有两种方式：

1. **推荐方式**: 运行SDK包中的环境设置脚本
   ```bash
   source /path/to/qairt/2.35.0.250530/bin/envsetup.sh
   ```
   这将自动设置`QNN_SDK_ROOT`和`SNPE_ROOT`环境变量。

2. **手动指定SDK路径**: 如果无法设置环境变量，可以在代码中手动指定SDK路径。

### 代码示例

```python
from qairt_wrapper import init_qairt, Model, Config, InterpreterBuilder, DataType, FrameworkType, AccelerateType

# 初始化SDK
try:
    # 自动检测环境变量
    init_qairt()
except ImportError as e:
    print(f"错误: {e}")
    # 手动指定路径
    sdk_path = input("请输入QAIRT SDK的lib/python路径: ")
    init_qairt(sdk_path)

# 创建模型实例
model = Model.create_instance("model.dlc")
model.set_model_properties(
    input_shapes=[[1, 224, 224, 3]],
    input_dtype=DataType.TYPE_FLOAT32,
    output_shapes=[[1, 1000]],
    output_dtype=DataType.TYPE_FLOAT32
)

# 创建配置
config = Config.create_instance()
config.framework_type = FrameworkType.TYPE_QNN
config.accelerate_type = AccelerateType.TYPE_CPU

# 构建解释器
interpreter = InterpreterBuilder.build_interpretper_from_model_and_config(model, config)

# 初始化解释器
ret = interpreter.init()
if ret != 0:
    print("初始化解释器失败")
    exit(1)

# 加载模型
ret = interpreter.load_model()
if ret != 0:
    print("加载模型失败")
    exit(1)

# 设置输入数据
import numpy as np
input_data = np.random.random((1, 224, 224, 3)).astype(np.float32)
interpreter.set_input_tensor(0, input_data)

# 执行推理
interpreter.invoke()

# 获取输出
output = interpreter.get_output_tensor(0)
print(f"输出形状: {output.shape}")

# 释放资源
interpreter.destory()
```

## 要求

- 需要安装高通QAIRT SDK
- 支持通过环境变量`QNN_SDK_ROOT`或`SNPE_ROOT`自动检测SDK路径
- 也可以手动指定SDK路径