semvec/pypi-packages huggingface dataset:
phroc 0.4
GUI for processing spectrophotometric pH data

# pHroc

![Tests](https://github.com/mvdh7/phroc/workflows/Tests/badge.svg)
[![PyPI version](https://img.shields.io/pypi/v/phroc.svg?style=popout)](https://pypi.org/project/phroc/)
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/phroc.svg)](https://anaconda.org/conda-forge/phroc)
[![DOI](https://img.shields.io/badge/DOI-10.5281%2Fzenodo.13961237-informational)](https://doi.org/10.5281/zenodo.13961237)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

> pHroc is a GUI tool for processing spectrophotometric pH measurement data from a Cary Agilent spectrophotometer.

## Installation

To install locally:

    conda install conda-forge::phroc
    pip install phroc[gui]

Installing without the `gui` option in pip will allow you to open .phroc files but not run the app.

Alternatively, pull the Docker container: [mvdh89/phroc](https://hub.docker.com/repository/docker/mvdh89/phroc/general).

## Usage

    phroc

Then navigate your browser to the appropriate port on localhost and read the Instructions tab in the app.

## Citation / DOIs

To cite the most recent version:

> Humphreys, M. P. (2025). pHroc: GUI for processing spectrophotometric pH data.  *Zenodo*.  [doi:10.5281/zenodo.14001573](https://doi.org/10.5281/zenodo.14001573).

Please state the version number and update the date and DOI to match what you used:

  * v0.3 (21 January 2025): [doi:10.5281/zenodo.14713820](https://doi.org/10.5281/zenodo.14713820)
  * v0.2 (28 October 2024): [doi:10.5281/zenodo.14001573](https://doi.org/10.5281/zenodo.14001573)
  * v0.1 (21 October 2024): [doi:10.5281/zenodo.13961238](https://doi.org/10.5281/zenodo.13961238)
insel 0.0.9
A python wrapper for INSEL (insel.eu)
Requires Python: >=3.9

# INSELpy

This module allows to execute [INSEL](https://insel.eu/) models from Python, and can be used to write unit tests for INSEL blocks and models.

## Single blocks

It can run single blocks, with the specified inputs, parameters and number of outputs:
```python
>>> import insel
>>> insel.block('pi')
3.141593
>>> insel.block('sum', 2, 3)
5.0
>>> insel.block('do', parameters=[1, 10, 1])
[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0]
>>> insel.block('gain', 2, 5, 7, parameters=[3], outputs=3)
[6.0, 15.0, 21.0]
```

## INSEL templates

INSELpy can also run INSEL templates:
```
% Calculates a*b
s 1 MUL  3.1 2.1
s 2 CONST
p 2
           $a || 3$
s 3 CONST
p 3
           $b || 3$
s 4 SCREEN  1.1
p 4
    '*'
```

Templates will be searched inside the 'templates/' folder, relative to the current working directory.

Either in the REPL:

```python
>>> insel.template('a_times_b', a=7, b=3)
21.0
>>> insel.template('photovoltaic/i_sc', pv_id='008823', temperature=25, irradiance=1000)
5.87388
```

or in complete scripts:

```python
import insel

name = 'Roma'
lat = 41.8
lon = 12.58
timezone = 1

irradiances = insel.template('weather/get_irradiance_profile', latitude=lat, longitude=lon)
print(irradiances)
# => [71.0, 106.0, 158.0, 208.0, 251.0, 275.0, 286.0, 257.0, 196.0, 137.0, 84.0, 63.0]

print((insel.template('weather/average_irradiance_on_tilted_surface',
                      tilt=30,
                      azimuth=180,
                      irradiance_profile=irradiances,
                      latitude=lat,
                      longitude=lon,
                      timezone=timezone)))
# => 195.8578
```
## Vseit models

Insel graphical models (Vseit) are valid templates. Constants defined by `Define global constant` block can be modified in Python.

If no value is specified in Python, the value defined in the block will be used by default.

```
>>> insel.template('constants/x_plus_y.vseit')
3.0
>>> insel.template('constants/x_plus_y.vseit', x=5)
7.0
>>> insel.template('constants/x_plus_y.vseit', x=5, y=5)
10.0
```

If the Vseit model contains a PLOT block, it will be deactivated by default. In order to launch gnuplot anyway, `insel.template('model.vseit', gnuplot=True)` can be used.

## INSEL models

It can also simply run complete models:
```python
>>> insel.run('/usr/local/insel/examples/meteorology/sunae.vseit')
[]
```
mcp-server-mineru-bach 0.1.5
A MCP server for Mineru document analysis
Requires Python: >=3.10
Keywords: ai, mcp, mineru

# mcp-server-mineru-bach

A Model Context Protocol (MCP) server for Mineru document analysis.

## Configuration

This server requires the following environment variables:

- `MINERU_TOKEN`: Your Mineru API token.
- `MINERU_BASE_URL`: (Optional) Mineru API base URL, defaults to `https://api.mineru.net/v1`.

## Usage

Run with `uvx`:

```bash
uvx mcp-server-mineru-bach
```

## Tools

### analyze_document_mineru

Analyzes a document using Mineru and returns the content.

- `file_url`: URL of the file to analyze.
- `output_type`: "json" (structured) or "fullmd" (markdown).