semvec/pypi-packages huggingface dataset:
vibranium-sdk 0.1.1
SDK for fetching and testing OpenAPI specs from FastAPI applications

# VibraniumSDK

VibraniumSDK is a Python library designed for security testing of APIs based on OpenAPI specifications. It performs vulnerability tests for SQL Injection, XSS, and access control, and generates a detailed HTML report of the test results.

## Features

- **Fetch OpenAPI Specification**: Retrieves the OpenAPI JSON from a specified URL.
- **Validate Specification**: Ensures the OpenAPI specification is properly formatted (basic validation).
- **SQL Injection Testing**: Tests endpoints for SQL Injection vulnerabilities.
- **XSS Testing**: Tests endpoints for Cross-Site Scripting (XSS) vulnerabilities.
- **Access Control Testing**: Checks for proper access control by simulating authenticated and unauthorized requests.
- **Generate Report**: Creates an HTML report summarizing the results of the tests.

## Usage

```bash
vibranium-sdk http://somedomain.com/
```
sutowebdav 0.2.1
A simple asynchronous WebDAV client in Python.
Requires Python: <4.0,>=3.11

# SutoWebDav
A simple asynchronous WebDAV client in Python.
## Installation
Install using pip:
```bash
pip install sutowebdav
```
## Quick Start
```python
import asyncio
from sutowebdav.client import DavClient
async def main():
    with DavClient('https://webdav.your-domain.com', username='myuser', password='mypass') as webdav:
        # Do some stuff:
        await webdav.mkdir('some_dir')
        await webdav.rmdir('another_dir')
        await webdav.download('remote/path/to/file', 'local/target/file')
        await webdav.upload('local/path/to/file', 'remote/target/file')
asyncio.run(main())
```
kheops 0.1.4
A package for generating responses with an LLM and evaluating them on MMLU.
Requires Python: >=3.7

# Import functions from your package
from your_package_name import load_data, eval_mmlu

# Use the load_data function to load your dataset
file_path = 'mmlu.jsonl'  # Replace with the path to your JSONL file
df = load_data(file_path)

# Evaluate your LLM using the eval_mmlu function
eval_mmlu(df)
zdppy-captcha 0.1.5
Python生成验证码的框架
Requires Python: <4.0,>=3.8

# zdppy_captcha

python用于生成图片，声音等验证码的底层框架

## 安装

```bash
pip install zdppy-captcha
```

## 使用教程

### 显示图片验证码

```python
# 生成图片验证码
import random
from zdppy_captcha.image import ImageCaptcha

# 生成随机字符串
code = random.sample('abcdefghijklmnopqrstuvwxyz1234567890', 4)  # 随机选取4个不重复字符串，返回一个列表

# 生成图片验证码对象
image = ImageCaptcha()

# 第一种使用方式：生成图片验证码
im = image.generate_image(code)
im.show()  # 可以直接展示图片
```

### 保存验证码图片

```python
# 生成图片验证码
import random
from zdppy_captcha.image import ImageCaptcha

# 生成随机字符串
code = random.sample('abcdefghijklmnopqrstuvwxyz1234567890', 4)  # 随机选取4个不重复字符串，返回一个列表

# 生成图片验证码对象
image = ImageCaptcha()

# 第二种使用方式：生成图片验证码并保存
image.write(code, 'zdppy_captcha.jpg')
```

### 将验证码转换为bytesio

```python
# 生成图片验证码
import random
from zdppy_captcha.image import ImageCaptcha

# 生成随机字符串
code = random.sample('abcdefghijklmnopqrstuvwxyz1234567890', 4)  # 随机选取4个不重复字符串，返回一个列表

# 生成图片验证码对象
image = ImageCaptcha()

# 第三种使用方式：生成图片验证码BytesIO
data = image.generate(code)
print(data, type(data))
```

### 生成base64图片

```python
import zdppy_captcha as captcha

# 获取验证码以及base64图片
code, img = captcha.get_base64(6)
print(code)
print(img)
```

## 版本历史

### v0.1.0

- 基本用法

### v0.1.2

- get_base64生成key，code和img

### v0.1.3

- 新增zdppy_api.get方法

### v0.1.4

- 支持zdppy低代码开发

### v0.1.5
- TODO: 让验证码的key只能使用1次，安全性更高
comtrade-pysharp 0.0.3
Simple reader for COMTRADE files, using C# underneath to be fast
Requires Python: >=3.9

# comtrade-pysharp
A Python wrapper to the Gemstone COMTRADE reader (C#, hence pysharp). This should make it much faster than pure python.
Additionally, it tries to keep the RAM usage fairly low, though the entire file is loaded at once.

Depending on the size of the files to be read, the time to read can be reduced by 50x.

**This package does not follow the COMTRADE standard**. In terms of data representation, we consider ``signal names``
to be the relevant part, not ``signal id``. Similarly, typically the data and names are simply put in independent lists,
and users have to re-map the arrays by themselves.
We provide the data as 2 dictionaries (one for analog, one for digital) and a list of timestamps.

In theory, all COMTRADE formats should be supported, but it's not tested. Same for different OS, architectures,
python versions.

# How it works

## C#

Internals/FileReader contains two items:
- ReaderDll, which provides a simplification layer to the [GSF.COMTRADE](https://github.com/GridProtectionAlliance/gsf)
- FileReader, which just uses the one above

The ReaderDll builds to a single dll, this is done with [ILRepack](https://github.com/gluck/il-repack).

## Python

We use the ReaderDll and access it there.
The data is then converted to [numpy](https://numpy.org/) arrays and the memory of the C# object is freed.

# data

Contains two COMTRADE files:
- One example of a big file
- One example taken from from [comtrade](https://github.com/drewsilcock/comtrade/tree/main/tests/comtrade_files)

# How to use

To use this, once installed. Call

```
from comtrade_pysharp import read_comtrade
file = "C:/my_comtrade.cfg"
data = read_comtrade(file)
```

You can also pass the following arguments ``analog_channels`` or ``digital_channels`` to keep only these channels, this
reduces the RAM usage. As well as ``subsampling`` which will do a basic subsampling of the file to further reduce RAM usage.


# licensing

No idea, everything is open source and redistributable as far as I can tell, but there's some nuget packages in there that have other licenses, so do your due diligence. Everything is put "as is" on here...
Some seem to be BSD (Antlr3 and another one)

# Warning

## First

I have no idea what I'm doing :).

![](cat.gif)

## Testing

I only tested this against one of the files I'm using, in the one version of Python I'm using (3.9.13-32 bits). There's no reason it wouldn't work for other versions, but I haven't even tried.

## Maintenance/issues

I did this "for fun" to evaluate how much faster I could make a reader using a multi-language approach. You can report issues but this is not something I want to maintain significantly, unless I see it gain a lot of traction.

# todo

## FileReader

* 	Seems the example throws an exception at the end. This appeared once I merged all dlls, not sure why.


## Python

* 	Figure out the proper way to create the package (copy the dll and make it available on pypi)
azure-servicebus-cli 0.1.2
A CLI tool for interacting with Azure Service Bus Queues
Requires Python: >=3.7

# Azure Service Bus CLI

`azure-servicebus-cli` is a simple command-line interface (CLI) tool for interacting with Azure Service Bus Queues. This tool allows you to send and receive messages from an Azure Service Bus Queue using a few straightforward commands.

## Installation

To install the `azure-servicebus-cli` package, use `pip`:

```bash
pip install azure-servicebus-cli
```

## Prerequisites

Before using the CLI tool, make sure you have:

1. An Azure Service Bus namespace and queue created in your Azure account.
2. The connection string for your Azure Service Bus. You can obtain this from the Azure portal.

## Environment Variable

Set the `AZURE_SERVICEBUS_CONNECTION_STRING` environment variable with your Service Bus connection string:

```bash
export AZURE_SERVICEBUS_CONNECTION_STRING="your-connection-string"
```

## Usage

### Sending a Message

You can send a message to a specified queue using the `send` command. You can directly pass a message or provide a path to a file containing the message content.

#### Example 1: Send a Message Directly

```bash
azsb send --queue <your-queue-name> --message "Your message here"
```

#### Example 2: Send a Message from a File

```bash
azsb send --queue <your-queue-name> --message /path/to/your/message.json
```

### Receiving Messages

You can receive messages from a specified queue using the `receive` command. You can also specify the maximum number of messages to receive.

#### Example 1: Receive a Single Message

```bash
azsb receive --queue <your-queue-name>
```

#### Example 2: Receive Multiple Messages

```bash
azsb receive --queue <your-queue-name> --max-number-of-messages 10
```

## License

This project is licensed under the MIT License.