semvec/pypi-packages huggingface dataset:
elenchos_check_mymaria_replication 1.4.0
Élenchos: Check MySQL and MariaDB Replication
License: MIT
Requires Python: <4.0.0,>=3.12.0
Keywords: Élenchos, Elenchos, MySQL, MariaDB, Replication

# Élenchos: Check MySQL and MariaDB Replication

A Élenchos command for checking the replication of a MySQL or MariaDB instance.

## Installation and Configuration

### Primary Instance

On the primary instance create a heartbeat by executing the following SQL commands.

```sql
create schema heartbeat;

use heartbeat;

create table heartbeat
(
  heartbeat datetime not null
) engine = InnoDB;

insert into heartbeat(heartbeat)
values (now());

create definer=root@localhost event heartbeat
on schedule every 1 minute starts '2016-02-07 09:22:34'
on completion preserve enable
comment 'Heartbeat for replication monitoring.'
do
update heartbeat
set heartbeat = now();
```

Using this heartbeat is more reliable than `Seconds_Behind_Master` as provided by the `show replica status` SQL command
which is `NULL` when the SQL thread is not running.

#### Replica Host

On the host where the replication instance is running, install Élenchos by executing the following commands.

```shell
cd /opt

mkdir elenchos
cd elenchos

python -m venv .venv
mkdir bin
ln -s ../.venv/bin/elenchos bin/elenchos

. .venv/bin/activate
pip install elenchos_check_mymaria_replication
/opt/elenchos/bin/elenchos gather-commands
```

Create the configuration file `/etc/nagios/replication.cfg`:

```shell
[nagios]
name           = MariaDB Replication <hostname>
max_lag        = 60
warning        = 15000
critical       = 20000
timestamp_path = timestamp.txt

[database]
host       = localhost
database   = heartbeat
port       = 3306
charset    = utf8mb4
collation  = utf8mb4_general_ci
supplement = credentials.cfg
```

The values of `host`, `port`, `charset`, and `collation` in the `database` section are the defaults and can be omitted.

Create the file `/etc/nagios/credentials.cfg` for storing the credentials of the replication monitoring user:

```ini
[database]
user     = rep_monitor
password = secret
```

Set the proper mode and ownership of `/etc/nagios/credentials.cfg` by executing the following commands.

```shell
chmod 400  /etc/nagios/credentials.cfg
chown nrpe.nrpe /etc/nagios/credentials.cfg
```

Create the configuration file `/etc/nrpe.d/check_mysql_replication.cfg` for `nrpe`:

```
command[check_mysql_replication]=/opt/elenchos/bin/elenchos check:mariadb-replication /etc/nagios/replication.cfg
```

Create the user for monitoring the replication by executing the following SQL statements.

```sql
create user `rep_monitor`@`localhost` identified by password('secret') with max_user_connections 1;
grant binlog monitor, slave monitor on *.* to `rep_monitor`@`localhost`;
grant select on heartbeat.heartbeat to rep_monitor@localhost;
```

Finally, restart the `nrpe` daemon.

```shell
systemctl reload nrpe
```

License
-------

This project is licensed under the terms of the MIT license.
elenchos_check_cpu 1.1.0
A Élenchos command for checking CPU usage.
License: MIT
Requires Python: <4.0.0,>=3.12.0
Keywords: Élenchos, Elenchos, CPU

# Élenchos: Check cpu

A Élenchos command for checking CPU usage.

## Installation and Configuration

Install Élenchos if not already installed:

```shell
cd /opt

mkdir elenchos
cd elenchos

python -m venv .venv
. .venv/bin/activate
pip install elenchos

mkdir bin
ln -s ../.venv/bin/elenchos bin/elenchos
```

Install the `check:cpu` plugin:

```shell
cd /opt/elenchos
. .venv/bin/activate

pip install elenchos_check_cpu
./bin/elenchos gather-commands
```

Create a configuration file `/etc/nrpe.d/check_cpu.cfg` for `nrpe`:

```
command[check_cpu]=/opt/elenchos/bin/elenchos check:cpu <arguments>
```

Possible arguments are:

* `-i`, `--interval=INTERVAL` The interval between the two CPU statistics gatherings in seconds. [default: 2.0]
* `-w`, `--warning[=WARNING]` The warning level for CPU user in %.
* `-c`, `--critical[=CRITICAL]` The critical level for CPU user in %.

The warning and critical CPU levels are optional. Hence, one can use this Élenchos command solely for gather statistics.

Finally, restart the `nrpe` daemon:

```shell
systemctl reload nrpe
```

## License

This project is licensed under the terms of the MIT license.
elenchos 1.2.0
Élenchos: A Nagios plugin framework
License: MIT
Requires Python: <4.0.0,>=3.12.0
Keywords: Élenchos, Elenchos, Nagios, Plugin

# Élenchos

A [Nagios](https://www.nagios.org/) plugin framework in Python.

## Documentation

Documentation for developers who want to create Nagios plugins using Élenchos and the documentation for administrators
who want to install Nagios plugins build with Élenchos can be found at https://elenchos.readthedocs.io.

### License
This project is licensed under the terms of the MIT license.
redis-mcp 0.1.3
A FastMCP-based server with SSE support for Redis operations
License: MIT
Requires Python: >=3.10

# Redis MCP Server

A Model Context Protocol (MCP) server for Redis operations built with FastMCP.

## Features

- Core Redis operations: get, set, delete, list
- Bulk operations: mget, mset
- Pattern-based key scanning
- Connection pooling for efficient Redis access
- Multiple transport support (stdio, SSE, streamable-http)
- Environment-based configuration
- Type hints and comprehensive error handling

## Installation

### From PyPI

```bash
pip install redis-mcp
```

Or using uv:

```bash
uv tool install redis-mcp
```

### From Source

```bash
# Clone the repository
git clone https://github.com/yourusername/redis-mcp.git
cd redis-mcp

# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install the package
pip install -e .
```

## Configuration

The server can be configured via environment variables:

- `REDIS_HOST`: Redis server hostname (default: localhost)
- `REDIS_PORT`: Redis server port (default: 6379)
- `REDIS_DB`: Redis database number (default: 0)
- `REDIS_PASSWORD`: Redis password (optional)
- `REDIS_USERNAME`: Redis username (optional)

## Usage

### As a CLI Tool

```bash
# Using stdio transport (default)
redis-mcp

# Using SSE transport
redis-mcp --transport sse

# With custom Redis connection
redis-mcp --host redis.example.com --port 6380 --db 1
```

### In Claude Desktop

Add to your `claude_desktop_config.json`:
```json
{
  "mcpServers": {
    "redis": {
      "command": "uvx",
      "args": ["redis-mcp"],
      "env": {
        "REDIS_HOST": "localhost",
        "REDIS_PORT": "6379"
      }
    }
  }
}
```

### Available Tools

- **get**: Retrieve a value by key
- **set**: Store a key-value pair with optional expiry and conditions
- **delete**: Remove one or more keys
- **list**: List keys matching a pattern
- **mget**: Get multiple values in one operation
- **mset**: Set multiple key-value pairs in one operation
- **scan**: Iterate through keys matching a pattern without blocking

### Example Usage

```python
from fastmcp import Client

async def main():
    async with Client("http://localhost:8000/sse") as client:
        # Set a value
        await client.call_tool("set", {"key": "user:123", "value": "John Doe"})
        
        # Get a value
        result = await client.call_tool("get", {"key": "user:123"})
        print(result)  # "John Doe"
        
        # List keys
        keys = await client.call_tool("list", {"pattern": "user:*"})
        print(keys)  # ["user:123"]
```

## Development

### Setup

```bash
# Install development dependencies
pip install -e ".[dev]"
```

### Running Tests

```bash
pytest
```

### Code Quality

```bash
# Format code
black .
isort .

# Type checking
mypy .

# Linting
ruff check .
```

## Requirements

- Python 3.10+
- Redis server
- FastMCP 2.3.3+

## License

MIT
dino-jumper 0.2.0
一个简单的恐龙跳跃游戏
License: MIT
Requires Python: >=3.6

# 🦖 小恐龙跳仙人掌游戏

一个基于 Python 和 Pygame 开发的经典小恐龙游戏。

## 功能特点

- 🎮 经典的小恐龙跳跃玩法
- 🌵 躲避由"典孝急乐蚌批赢麻"组成的仙人掌
- 🎯 支持双跳能力
- 📊 实时分数统计

## 安装

```bash
pip install dino-jumper
```

## 运行游戏

安装完成后，直接运行：
```bash
python -m dino_game.game
```

## 游戏控制

- 空格键：跳跃（可连续跳跃两次）
- R键：游戏结束后重新开始

## 系统要求

- Python 3.6 或更高版本
- Pygame 2.0.0 或更高版本

## 许可证

MIT License