semvec/pypi-packages huggingface dataset:
fw-file-rs 0.5.3
Read, parse and de-identify DICOM files
Requires Python: >=3.8

# fw-file-rs

Python bindings for the [fw-file-rs][fw-file-rs-repo] Rust library.

## Usage

```py
from fw_file_rs.dcm import Context, read_until_pixels

# Create a configured context using the builder pattern
ctx = (Context()
    .parse_include([
        "InstitutionAddress",
        "InstitutionName",
    ])
    .group_by(["StudyInstanceUID", "SeriesInstanceUID"])
    .split_localizer(True)
    .deid_profile("""
        version: 1
        name: profile
        dicom:
          fields:
            - name: PatientName
              replace-with: REDACTED
    """))
# Read DICOM header bytes from file
header_bytes = ctx.read_until_pixels("/path/to/dicom/file.dcm")
# Extract metadata using the configured context
meta = ctx.parse_header(header_bytes)
# Get Flywheel-specific metadata
fw_meta = ctx.get_fw_meta(meta)
# Group DICOM files by configured tags with localizer splitting
path_meta_pairs = [("1.dcm", meta)]
groups = ctx.group_series(path_meta_pairs)
# De-identify the DICOM header using the configured profile
deid_header = ctx.deid_header(header_bytes)
```

[fw-file-rs-repo]: https://gitlab.com/flywheel-io/tools/lib/fw-file-rs
def-main 0.12.0
🗣 A decorator for main 🗣
Requires Python: >=3.10

# `def_main`: a tiny decorator to define main

Define the main function in one step.

For any non-trivial projects, use typer and dtyper instead!

## Usage example

### Without an return code

``` python
import def_main

@def_main
def main(*argv):
    print('hello,', *argv)
```

means precisely the same as:

``` python
def main(*argv):
    print('hello,', *argv)


if __name__ == '__main__':
    import sys

    main(sys.argv[1:])
```

### With a return code

``` python
import def_main

@def_main
def main(*argv):
    print('hello,', *argv)
    return argv
```

means precisely the same as:

``` python
def main(*argv):
    print('hello,', *argv)
    return argv


if __name__ == '__main__':
    import sys

    returncode = main(sys.argv[1:])
    sys.exit(returncode)
```
plur 1.1.0
🔢 Simple universal word pluralizer 🔢
Requires Python: >=3.10

# plur: 🔢 simple universal word pluralizer 🔢

Tired of seeing `1 branch(es) deleted`?

Sick of

    es = '' if len(branches) == 1 else 'es'
    print(f'{len(branches) branch{es} created')

or even worse?

Try `plur` for your tiny pluralization needs:

    import plur

    print(plur('branch', '-es'), branches), 'created)

* No dictionary file!
* No dependencies!
* No salesperson will call!

Examples:

    import plur

    dogs = ['fido', 'rover']
    print(plur('dog', dogs))  # prints: 2 dogs

    dogs.pop()
    print(plur('dog', dogs))  # prints: 1 dog

    dogs.pop()
    print(plur('dog', dogs))  # prints: 0 dogs

    # Great for f-strings

    dogs = 'fido', 'rover'
    print(f'Today we have {plur("dog", dogs)}')

For words you use a lot, you can defer operation:

    dog = plur('dog')
    cat = plur('cat')
    ox = plur('ox', '-en')

    print(dog(dogs), 'live in my house with', ox(ox_list))
mergeron_extra 2026.739650.1
Tools for users of the mergeron package.
Requires Python: <4.0,>=3.12

mergeron-extra: Support package for users of `mergeron`
=======================================================

Modules potentially useful to users of the :code:`mergeron` package. 

The module :code:`mergeron_extra.proportions_tests` provides methods for estimating confidence intervals for proportions and for contrasts (differences) in proportions. This module is coded for conformance to the literature and to results from the corresponding modules in :code:`R`. Although written from scratch, the APIs implemented in the module included here are designed for consistency with the APIs in, :code:`statsmodels.stats.proportion` from the package, :code:`statsmodels` (https://pypi.org/project/statsmodels/). To access these directly:

.. code-block:: python

    import mergeron_extra.proportions_tests as prci

Module :code:`mergeron_extra.xlsxw_helper` is useful for writing highly formatted output to spreadsheets with xlsx format. (Does not re-export the parent package, `xlsxwriter`.) The class, :code:`mergeron_extra.xlsxw_helper.CFmt` and function, :code:`mergeron_extra.xlsxw_helper.array_to_sheet` are of particular interest, and can be accessed as :code:`xlh.CFmt` and :code:`xlh.array_to_sheet` with the following import:

.. code-block:: python

    import mergeron_extra.xlsxw_helper as xlh

A recent version of Paul Tol's python module, :code:`tol_colors.py`, which provides high-contrast color schemes for making displays with improved visibility for individuals with color-blindness, is redistributed within this package. Other than re-formatting and type annotation, the :code:`mergeron_extra.tol_colors` module is re-distributed as downloaded from, https://personal.sron.nl/~pault/data/tol_colors.py. The :code:`tol_colors.py` module is distributed under the Standard 3-clause BSD license. To access the :code:`mergeron_extra.tol_colors` module directly:

.. code-block:: python

    import mergeron_extra.tol_colors as ptc

.. image:: https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json
   :alt: Poetry
   :target: https://python-poetry.org/

.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
   :alt: Ruff
   :target: https://github.com/astral-sh/ruff

.. image:: https://www.mypy-lang.org/static/mypy_badge.svg
   :alt: Checked with mypy
   :target: https://mypy-lang.org/

.. image:: https://img.shields.io/badge/License-MIT-yellow.svg
   :alt: License: MIT
   :target: https://opensource.org/licenses/MIT
dtlpymcp 0.1.15
STDIO MCP proxy server for Dataloop platform.
Requires Python: >=3.10

# Dataloop MCP Proxy Server

This is the main proxy for the Dataloop Micro MCPs, installable as a Python package.

## Installation

```shell
pip install git+<repository-url>
```

## Usage

You can run the proxy server via CLI:

```shell
# Basic usage
dtlpymcp start

# With custom sources file
dtlpymcp start --sources-file /path/to/sources.json

# With custom initialization timeout (default: 30 seconds)
dtlpymcp start --init-timeout 60.0
```

Or using Python module syntax:

```shell
python -m dtlpymcp start
```

## Local Development

- Requires Python 3.10+
- Install dependencies with `pip install -e .`
- Run tests with `pytest`

## Architecture

The server uses a modular architecture with utilities for safe async initialization:

- `dtlpymcp/proxy.py` - Main server implementation using FastMCP
- `dtlpymcp/utils/server_utils.py` - Safe async initialization utilities
- `dtlpymcp/utils/dtlpy_context.py` - Dataloop context management

## Cursor MCP Integration

To add this MCP to Cursor, add the following to your configuration:

### Docker Example
```json
{
  "mcpServers": {
    "dataloop-ai-mcp": {
      "command": "docker run -i --rm -e DATALOOP_API_KEY docker.io/dataloopai/mcp:latest",
      "env": {
        "DATALOOP_API_KEY": "API KEY"
      }
    }
  }
}
```

### Local CLI Example
```json
{
  "mcpServers": {
    "dataloop-ai-mcp": {
      "command": "uvx",
      "args": ["dtlpymcp", "start"],
      "env": {
        "DATALOOP_ENV": "prod",
        "DATALOOP_API_KEY": "API KEY"
      }
    }
  }
}
```

Replace `API KEY` with your actual Dataloop API key.
winpnp 0.1.0
A package for interacting with Windows Plug and Play (PnP) entities
Requires Python: >=3.9
Keywords: Windows device, device manager, pnp, setupapi, setupdi

# winpnp

This is a package for interacting with Windows Plug and Play (PnP) entities (devices, setup classes, etc.)

It can be used to query properties of PnP devices using the `winpnp.info.device.DeviceInfo` class,<br/>
and to query properties of PnP setup classes using the `winpnp.info.setup_class.SetupClassInfo` class.<br/>
Instances of these classes can be used as mappings, with keys of type `winpnp.properties.pnp_property.PnpPropertyKey`.<br/>
For your convenience, commonly used property keys are defined in `winpnp.properties.keys`.

Here is an example usage:
```python
from winpnp.info.device import DeviceInfo
from winpnp.properties.keys.device import INSTANCE_ID

with DeviceInfo.of_instance_id("HTREE\\ROOT\\0") as device:
    instance_id = device[INSTANCE_ID]

instance_id
```
Output: `PnpProperty(value='HTREE\\ROOT\\0', kind=PnpPropertyType(type_id=18, name='STRING'))`
nord-config-generator 1.0.5
A command-line tool for generating optimized NordVPN WireGuard configurations.
Requires Python: >=3.9

# NordVPN WireGuard Config Generator

A command-line tool for generating optimized NordVPN WireGuard configurations.

## Installation

```bash
pip install nord-config-generator
```

## Usage

Generate configurations:
```bash
nordgen
```

Retrieve Private Key:
```bash
nordgen get-key
```