semvec/pypi-packages huggingface dataset:
karuocv 0.7
package for computer vision tools wrap
Requires Python: >=3.8

# KARUOCV

> package for computer vision tools wrap



## command usage:
usage: karuocv [-h] --task TASK [--base_model BASE_MODEL] [--device DEVICE] [--epochs EPOCHS] [--iterations ITERATIONS] [--batch_size BATCH_SIZE] [--path PATH] [--verbose] [--format FORMAT]
               [--source_a SOURCE_A] [--source_b SOURCE_B] [--dest DEST]

SACP object train tools

options:
  -h, --help            show this help message and exit  
  --task TASK           指定任务 train, inference, mix_datasets, ETC  
  --base_model BASE_MODEL
                        底座模型的路径  
  --device DEVICE       select one in the list which contains cpu, cuda and mps  
  --epochs EPOCHS       训练迭代周期  
  --iterations ITERATIONS
                        The number of generations to run the evolution for.  
  --batch_size BATCH_SIZE
                        the batch size of train.  
  --path PATH           some path parameter.  
  --verbose             show log for inference or not  
  --format FORMAT       format parameter  
  --source_a SOURCE_A  
  --source_b SOURCE_B  
  --dest DEST           the output files destnation path.  
  --imshow              是否通过cv2显示图片
Xtouch2Vjoy 0.1.1
This script maps MIDI Control Change (CC) and Note On/Off messages from a Behringer X-Touch Mini to vJoy virtual joystick inputs. It allows you to control vJoy axes and buttons using MIDI devices.
Requires Python: >=3.7

# MIDI to vJoy Mapper

This script maps MIDI Control Change (CC) and Note On/Off messages from a Behringer X-Touch Mini to vJoy virtual joystick inputs. It allows you to control vJoy axes and buttons using MIDI devices.

## Features

- Maps up to 8 MIDI CC messages to vJoy axes (X, Y, Z, RX, RY, RZ, SL0, SL1).
- Maps MIDI Note On/Off messages to vJoy buttons.
- Supports scaling MIDI CC values (0--127) to vJoy axis range (0--32,767).
- Designed for compatibility with the Behringer X-Touch Mini.

---

## Requirements

### Hardware

- A MIDI device (e.g., Behringer X-Touch Mini).

### Software

- Python 3.7 or newer.
- The following Python packages:
 - `mido` (for MIDI input handling)
 - `pyvjoy` (for interacting with vJoy)

To install the required Python packages, use:

```bash
pip install mido pyvjoy `
```

### Additional Tools

-   vJoy Virtual Joystick Driver. Ensure vJoy is installed and configured with a virtual joystick.

* * * * *

Installation
------------

1.  Clone or download this repository to your local machine.
2.  Ensure Python and required libraries are installed.
3.  Verify your vJoy configuration supports the required axes and buttons.

* * * * *

Usage
-----

1.  **Connect your MIDI device** (e.g., Behringer X-Touch Mini) to your computer.
2.  **Run the script**:

    bash

    Copy code

    `python script.py`

3.  **Select the MIDI port**:
    -   The script lists all available MIDI input ports.
    -   Enter the number corresponding to your device.
4.  **Interact with your MIDI device**:
    -   Turn knobs or sliders to send CC messages, mapped to vJoy axes.
    -   Press buttons to trigger Note On/Off messages, mapped to vJoy buttons.

* * * * *

MIDI-to-vJoy Mapping
--------------------

### Axis Mapping

| MIDI CC Number | vJoy Axis | Description |
| --- | --- | --- |
| CC1 | X | X-axis |
| CC2 | Y | Y-axis |
| CC3 | Z | Z-axis |
| CC4 | RX | Rotational X |
| CC5 | RY | Rotational Y |
| CC6 | RZ | Rotational Z |
| CC7 | SL0 | Slider 0 |
| CC9 | SL1 | Slider 1 |

### Button Mapping

-   **MIDI Notes** are mapped to vJoy buttons sequentially.
    -   For example, MIDI Note 0 triggers vJoy Button 1, Note 1 triggers Button 2, etc.

* * * * *

Known Limitations
-----------------

-   vJoy supports a maximum of 8 axes, which restricts the number of mappable CC controls.
-   CC8 is disabled in this implementation due to this limitation.
-   Ensure your MIDI device is sending the expected CC messages for proper mapping.

* * * * *

Debugging and Logs
------------------

-   The script prints incoming MIDI messages to the console.
-   It also logs the mapping of CC messages and button presses for troubleshooting.
python-local 0.1.0
An MCP Server to run python locally
Requires Python: >=3.12

# python_local MCP Server

An MCP Server that provides an interactive Python REPL (Read-Eval-Print Loop) environment.

## Components

### Resources

The server provides access to REPL session history:
- Custom `repl://` URI scheme for accessing session history
- Each session's history can be viewed as a text/plain resource
- History shows input code and corresponding output for each execution

### Tools

The server implements one tool:
- `python_repl`: Executes Python code in a persistent session
  - Takes `code` (Python code to execute) and `session_id` as required arguments
  - Maintains separate state for each session
  - Supports both expressions and statements
  - Captures and returns stdout/stderr output

## Configuration

### Install

#### Claude Desktop

On MacOS: `~/Library/Application\ Support/Claude/claude_desktop_config.json`
On Windows: `%APPDATA%/Claude/claude_desktop_config.json`

<details>
  <summary>Development/Unpublished Servers Configuration</summary>
  ```json
  "mcpServers": {
    "python_local": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/python_local",
        "run",
        "python_local"
      ]
    }
  }
  ```
</details>

<details>
  <summary>Published Servers Configuration</summary>
  ```json
  "mcpServers": {
    "python_local": {
      "command": "uvx",
      "args": [
        "python_local"
      ]
    }
  }
  ```
</details>

## Development

### Building and Publishing

To prepare the package for distribution:

1. Sync dependencies and update lockfile:
```bash
uv sync
```

2. Build package distributions:
```bash
uv build
```

This will create source and wheel distributions in the `dist/` directory.

3. Publish to PyPI:
```bash
uv publish
```

Note: You'll need to set PyPI credentials via environment variables or command flags:
- Token: `--token` or `UV_PUBLISH_TOKEN`
- Or username/password: `--username`/`UV_PUBLISH_USERNAME` and `--password`/`UV_PUBLISH_PASSWORD`

### Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging
experience, we strongly recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).

You can launch the MCP Inspector via [`npm`](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) with this command:

```bash
npx @modelcontextprotocol/inspector uv --directory /path/to/python_local run python-local
```

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.