semvec/pypi-packages huggingface dataset:
pytorch-adversarial-attackers 0.1
A PyTorch library for evaluating model robustness against FGSM, PGD, and CW attacks.
Requires Python: >=3.6


# PyTorch Adversarial Attackers

A PyTorch-based library for evaluating model robustness against **adversarial attacks**: **FGSM, PGD, and CW attacks**. Designed to work with **all PyTorch models** like ResNet, VGG16, MobileNet, etc.

## Installation
```bash
pip install pytorch-adversarial-attackers
```

## Usage Example
```python
import torch
import torchvision.models as models
from adversarial_eval.attacks import FGSM, PGD, CW
from adversarial_eval.evaluate import evaluate

# Load pre-trained model
model = models.resnet18(pretrained=True).eval()

# Load image
image = torch.rand((1, 3, 224, 224))  # Example input
label = torch.tensor([0])  # Example label

# Apply attacks
fgsm_attack = FGSM(model, epsilon=0.03)
adv_image = fgsm_attack(image, label)

# Evaluate robustness
evaluate(model, image, label)
```

## Attacks Implemented
- **FGSM (Fast Gradient Sign Method)**
- **PGD (Projected Gradient Descent)**
- **CW (Carlini & Wagner Attack)**
- **GITHUB LINK  https://github.com/santhosh1705kumar/pytorch-adversarial-attackers**
hsdk 1.0
简单期货行情&交易HTTP接口API，基于TqSdk
Requires Python: >=3.6.4

# hsdk

#### 介绍

简单期货行情&交易HTTP接口API，基于TqSdk。

#### 安装&启动教程

1.pip install hsdk

2.创建配置文件 hsdk -n hsdk.conf

3.修改 hsdk.conf 配置文件内容

4.命令行启动 hsdk -c hsdk.conf

#### 使用说明（curl演示）

#获取账户信息

curl http://127.0.0.1:8888/account

#获取当前持仓

curl http://127.0.0.1:8888/position

#获取实时行情

curl http://127.0.0.1:8888/quote/SHFE.rb2210

#获取K线行情

curl http://127.0.0.1:8888/klines/SHFE.rb2210_60_20

#获取Tick序列

curl http://127.0.0.1:8888/ticks/SHFE.rb2210_20   

#委托下单

curl -X POST -H "Content-type: application/json" -d '{"symbol":"SHFE.rb2210", "direction":"BUY","offset":"OPEN","volume":1,"limit_price":"UPPER_LIMIT"}' http://127.0.0.1:8888/order

#取消委托单

curl -X POST -H "Content-type: application/json" -d '{"order_id":"f1786bea1ad045199925deea3cd6f1c7"}' http://127.0.0.1:8888/order/cancel

#获取委托单信息

curl http://127.0.0.1:8888/order/fbcce9326a3a4f8c80295b0e6e07434a

#获取当日可撤委托

curl http://127.0.0.1:8888/order/alive


<!-- #更多详见官方文档 [https://easyfut.iweiai.com/doc](https://easyfut.iweiai.com/doc)  -->
qt-interface-utils 1.0.0
An collection of utilities for working with Qt interfaces.
Requires Python: >=3.10

# QT Interface Utils

[![PyPI version](https://badge.fury.io/py/qt-interface-utils.svg)](https://pypi.org/project/qt-interface-utils)

An utility to facilitate the building of fman build system based projects

## Installation

### From PyPI

Install the package directly from PyPI using pip:

```bash
pip install qt-interface-utils
```

### From Source

Clone the repository and install dependencies:

```bash
git clone https://github.com/fvsolutions-common/qt-interface-utils.git
pip install -e qt-interface-utils
```

## Development

This project depends on UV for managing dependencies.
Make sure you have UV installed and set up in your environment.

You can find more information about UV [here](https://docs.astral.sh/uv/getting-started/installation/).

```bash
uv venv
```

```bash
uv sync --all-extras --dev
```

## Usage

Commands:
* build
* generate
* run
* run-installer
* run-python