semvec/pypi-packages huggingface dataset:
wrapped-optimizations 0.1.2
A wrapper around some of scipy's optimization functions to allow for a more convenient use of parameters and constants.

# Wrapped-Optimizations

## Description

`wrapped_optimizations` is a Python wrapper around some of SciPy's optimization functions. Instead of having one 1D array which contains all parameters to be optimized, the wrapped functions allow the parameters to be defined locally in the functions to be optimized.

## Installation

To install this package, use pip:

```bash
pip install wrapped_optimizations
```

## Usage

Here is a simple example of how to use Wrapped-Optimizations:

```python
from wrapped_optimizations import differential_evolution, eval_function

def func(use_param, use_const, use_print=False):
    # define a named parameter
    x = use_param((2), 'x', bounds=(-5, 5))
    # define an unnamed parameter
    y = use_param((2,2), bounds=(-5, 5))

    # define a (named) constant
    # equals `N = 3`, but with the advantage that the value also gets saved to result.x
    N = use_const(3, name='N')

    V = use_param((N), bounds=(0, 20))
    if use_print:
        print(f'V: {V}')
    return np.linalg.norm(x - 1)**2 + np.linalg.norm(y - 3)**2

result = differential_evolution(func)
# result.x now contains all the parameters and constants
# {
#   'x': array([1., 1.]),
#   'param_1': array([[3., 3.], [3., 3.]]),
#   'param_2': array([ 9.49532267, 16.89317493,  9.37888973]),
#   'N': 3
# }

# `func` can now be called, also with additional parameters being forwarded to `func`:
# eval_function(func, result.x, True)
```

## Requirements

Wrapped-Optimizations requires the following Python libraries:

- NumPy
- SciPy

## License

This project is licensed under the MIT License.
jtmv 0.1.2
Rename jupytext paired files while maintaining sync.
Requires Python: >=3.7
Keywords: jupyter, jupytext, notebook, rename, git

# `jtmv`

Command-line tool for renaming all jupytext paired files while maintaining their synchronization.

## Purpose

Jupytext allows two-way sync of notebook content between files with different formats (`.ipynb`, `.py`, `.md`, etc.). Users have two options to rename these files:

1. Rename _one_ file, regenerate all formats with `juptext sync`, and then delete all files with the old name.
2. Rename _all_ files and restablish synchronization with `jupyext set-formats`. 

This tool handles the renaming of _all_ paired formats in one step. 

## Installation

```bash
pip install jtmv
```

## Usage

```sh
jtmv source dest [--dry-run]
```

### Examples

```sh
# Rename a jupytext paired file
jtmv workflow.py flow.py

# Dry run to see what would happen
jtmv utility.md utils.md --dry-run
```

### Options

- `source`: Source filename with extension (e.g., `workflow.py`)
- `dest`: Destination filename with extension (e.g., `flow.py`)
- `--dry-run`: Do not actually rename files, just print the commands that would be executed

## How it works

1. **Detects paired formats**: Reads the jupytext metadata to find all synced formats
2. **Git-aware moves**: If files are tracked in git, uses `git mv` to preserve history

## License

MIT License - see LICENSE file for details.
pyautd3-link-soem 35.0.1
autd3-link-soem library wrapper for python
Requires Python: >=3.11

# pyautd3_link_soem

![build](https://github.com/shinolab/pyautd3_link_soem/workflows/build/badge.svg)
[![codecov](https://codecov.io/gh/shinolab/pyautd3_link_soem/graph/badge.svg?precision=2)](https://codecov.io/gh/shinolab/pyautd3_link_soem)
[![PyPI version](https://img.shields.io/pypi/v/pyautd3_link_soem)](https://pypi.org/project/pyautd3_link_soem/)

[autd3-link-soem](https://github.com/shinolab/autd3-link-soem) library for python3.11+

## Install

```
pip install pyautd3_link_soem
```

## Example

see [example](./example)

## For macOS and Linux users

This library uses `libpcap` which requires root permission.
So, please add permission as follows.

### macOS

```
sudo chmod +r /dev/bpf*
```

### linux

```
sudo setcap cap_net_raw,cap_net_admin=eip <your python path>
```

## LICENSE

See [LICENSE](./LICENSE) and [ThirdPartyNotice](./ThirdPartyNotice.txt).

# Author

Shun Suzuki, 2022-2025