semvec/pypi-packages huggingface dataset:
django-payments-redsys-txels 0.6.0
A django-payments backend for the Redsys payment gateway
License: MIT
Requires Python: >=3.9
Keywords: django, payments, redsys

# django-payments-redsys

A Redsys payment gateway backend for [django-payments](https://github.com/mirumee/django-payments).

> Redsys was previously known as Sermepa.

## Install

    pip install django-payments-redsys


## Configuration

Configure django payments with this provider by adding the following to `settings.py`:

```python
PAYMENT_VARIANTS = {
    'redsys': ('payments_redsys.RedsysProvider', {
        'merchant_code': '123456789',
        'terminal': '1',
        'shared_secret': 'qwertyasdf0123456789',
    })
}
```

Here's a list with all available options:

* `merchant_code` (required): Merchant Code - Redsys parameter.
* `terminal` (required): Terminal - Redsys parameter.
* `shared_secret` (required): Terminal Key - Redsys parameter.
  * "obtained by accessing the Administration Module, Merchant Data Query option in the 'See Key' section"
* `currency` (default:'978'): ISO-4217 currency code.
  * For example: EUR: '978', GBP: '826', USD: '840' (source: https://en.wikipedia.org/wiki/ISO_4217#Active_codes).
  * May also use some textual currency codes like e.g. 'EUR', 'GBP'... - see source code for full list
* `environment`: default `test`, other valid option is `real`.
  * test will use 'https://sis-t.redsys.es:25443'
  * real (Production) will use 'https://sis.redsys.es'
* `order_number_prefix` (optional, default:'0000'): Payment PK is suffixed to this to create Redsys order number
* `signature_version` (default:'HMAC_SHA256_V1'): Only supported signature type.
* `direct_payment` (default: False): True or False
  * redsys (spanish) related doc: https://pagosonline.redsys.es/oneclick.html


### About order numbers

Redsys requires your payments to include an order number (alphanumeric, 4 to 12 chars) that must be unique per merchant.

With this `RedsysProvider` you can either include an `order_number` in your Payment model (field or property), or a default one will be generated based on the setting `order_number_prefix` and the payment instance's primary key.


## Sample project

This repo contains the seed of sample project that you can look at for inspiration and reference. It is a minimalistic django project, it has enough to be used in automated tests. You can also run it with `just sample-app`.


## Development

You may use the `justfile` tool to run most commands in the development workflow (run the sample app, tests, etc.). Call `just` on a terminal to see all available options.

We use `poetry` and `pyproject.toml`. Get set up and check that things work with:

```sh
poetry install
just test
```

## Credits

 - Copyright (C) 2018 AJ Ostergaard
 - Additional contributions by Carles Barrobés

This code is published as free software. See LICENSE for details.
compressbench 0.1.0
CLI tool to benchmark compression algorithms on Parquet datasets
License: MIT
Requires Python: >=3.9

# compressbench

**Benchmark compression algorithms on Parquet datasets.**

## Why

Compression settings affect performance, storage cost, and latency — but most data engineers inherit defaults without testing.  
`compressbench` lets you benchmark compression ratio, compression speed, and decompression speed across algorithms using your own Parquet files.

## Features

- Accepts local Parquet files as input.
- Supports gzip and snappy.
- Outputs:
    - Compression ratio.
    - Compression time.
    - Decompression time.
- CLI built with Typer.
- Unit tests with pytest.

## Installation

```bash
pip install compressbench
```

## Usage
compressbench input.parquet --algorithms gzip snappy
If --algorithms is omitted, runs benchmarks for all available algorithms.

Example Output
Algorithm: gzip
Compression ratio: 2.91
Compression time: 0.43s
Decompression time: 0.12s

Algorithm: snappy
Compression ratio: 1.67
Compression time: 0.12s
Decompression time: 0.05s

## CLI Options
input.parquet   Path to the Parquet file to benchmark.
--algorithms    List of algorithms to test (gzip, snappy).
--level         Not supported in v0.1.0. Reserved for future versions.

## Roadmap
See ROADMAP.md for planned features.

## License
MIT
mcp-tool-override-tester 0.1.1
Verifies if a tool with the same name can override an existing one on a different server.
License: MIT
Requires Python: >=3.10

## MCP Tool Override Server
A Model Context Protocol server implementation that demonstrates how tools can be dynamically overridden across multiple servers.

### Overview
This project implements a Model Context Protocol (MCP) server that registers tools using the same names as existing server tools to demonstrate how tools can be dynamically overridden when a new server is added to the configuration.
- `read_file` from [Filesystem](https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem)
- `send_email` from [Gmail MCP Server](https://github.com/GongRzhe/Gmail-MCP-Server)
- `slack_list_channels` from [Slack MCP Server](https://github.com/modelcontextprotocol/servers/tree/main/src/slack)

### How It Works
I simply added an MCP Tool Override tester MCP to mimic the tools of other servers.
Surprisingly, they are easily overriden by the new tools (which are fake).
```
┌───────────┐     ┌────────────────────────────────────┐  
│ MCP Client│     │ MCP Tool Servers                   │  
│  (Claude  │────▶│ - File System MCP                  │  
│  Desktop) │     │    - Tool: read_file, ...          │  
└───────────┘     │ - Gmail MCP                        │  
                  │   - Tool: send_email, ...          │  
                  │ - Slack MCP                        │  
                  │   - Tool: slack_list_channels, ... │  
                  │ - MCP Tool Override Tester         │  
                  │   - Tool: read_file, send_email    │  
                  │        and slack_list_channels     │  
                  └────────────────────────────────────┘  
```
The Claude Desktop still confuses even after all tools of the Override tester MCP are turned off.

### Usage

```JSON
{
  "mcpServers": {
    "slack": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-slack"
      ],
      "env": {
        "SLACK_BOT_TOKEN": "YOUR SLACK BOT TOKEN",
        "SLACK_TEAM_ID": "YOUR SLACK TEAM ID",
        "SLACK_CHANNEL_IDS": "CHANNEL1_ID, CHANNEL2_ID, ..."
      }
    },
    "gmail": {
      "command": "npx",
      "args": [
        "@gongrzhe/server-gmail-autoauth-mcp"
      ]
    },
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/your/directory/path/to/allow"
      ]
    },
    "override_tester": {
      "command": "/path/to/your/uvx",
      "args": [
        "--from",
        "mcp-tool-override-tester",
        "override_mcp_tools"
      ]
    }
  }
}
```

### License
This project is licensed under the MIT License.