semvec/pypi-packages huggingface dataset:
imagecompress-svd 0.1.2
A Python package for image compression using Singular Value Decomposition (SVD).
License: MIT
Requires Python: >=3.6

# Image Compression

## Overview
`imagecompress_svd` is a Python package that compresses images using Singular Value Decomposition (SVD). It provides functions to convert RGB images to grayscale, compress images by retaining a specified number of singular values, and visualize the compressed images.

## Features
- Convert RGB images to grayscale.
- Compress images using SVD with adjustable singular values.
- Visualize the compressed images for different levels of compression.

## Installation

To install the package, first clone the repository or download the code, then navigate to the package directory and run:

```bash
pip install .
```

## Usage
```python
from imagecompress_svd import rgb2gray, plot_compressed_images
from PIL import Image
import numpy as np

# Load image and convert to grayscale
image = Image.open('your_image.jpg')
gray_image = rgb2gray(np.array(image))

# Define different k values for compression
k_values = [1, 2, 5, 10, 20, 50]

# Plot compressed images
plot_compressed_images(gray_image, k_values)
```
JMeterTools 1.0.2
一款Python生成JMeter脚本的工具。
License: MIT

# JMeter脚本生成工具
一款Python生成JMeter脚本的工具。
# 使用说明
**初始化JMeter脚本**

```python

from jmetertools import JMeter

jmeter_script = JMeter.get()
```
**创建hashtree**
```python
hash_tree = ET.SubElement(jmeter_script, 'hashTree')
```
**创建测试计划**

```python
from jmetertools.JMeter import JMeterTestPlan

test_plan = JMeterTestPlan()
test_plan = test_plan.get(hash_tree)
```
**添加线程组**

```python
from jmetertools.JMeter import JMeterThreadGroup

thread_group_tree = ET.SubElement(hash_tree, 'hashTree')
thread_group = JMeterThreadGroup().get(thread_group_tree)
```
**添加HTTP请求取样器**

详细设置代码中有注释

```python
from jmetertools.JMeter import JMeterHttpSampler

http_sampler = JMeterHttpSampler()
http_sampler.set_method('post')
http_sampler.set_protocol('http')
http_sampler.set_domain('127.0.0.1')
http_sampler.set_port('8080')
http_sampler.set_contentEncoding('UTF-8')
http_sampler.set_postBodyRaw({"test1": "test2"})
http_sampler.set_params({'test': 123})
http_sampler.set_files({'file': 'test.txt'})
# test_hashtree为http请求取样器的父级
http_sampler.get(test_hashtree)
```
**其他取样器、监听器、配置元件等，可以查看core/__JMeter** * **.py代码中的注释。**

**运行测试脚本**

修改config.yaml配置文件，将jmeter_home修改为本地JMeter的bin目录

```python

from jmetertools import JMeter

# jmx_file：jmeter脚本
# result_file：结果文件
# result_dir：结果保存目录
JMeter.run_jmeter_test(jmx_file, result_file, result_dir)
```
datopic-git-sweep-latest 0.1.1
Clean up branches from your Git remotes
License: MIT
Keywords: git maintenance branches



News
====

0.1.1

*Release date: March 28, 2012*

* Fix issue #1 which makes the git-sweep help menus more useful
* Fix a minor grammar issue in the help
* Fix issue #2 which dropped extra options when telling you to use
  cleanup
* Added a --force option to skip confirmation prompt

0.1.0
-----

*Release date: n/a*

* Initial release