semvec/pypi-packages huggingface dataset:
sample-env 1.0.0
A command line tool for generating sample env files from pydantic BaseSettings.
Requires Python: >=3.10

<h1 align="center" style="border-bottom: none;">sample-env</h1>
<h3 align="center">A CLI tool for generating sample env files from <a href="">pydantic_settings.BaseSettings</a>.</h3>

# Installation

```
pip install sample-env
```

# Command-line usage

Let's assume the following [`BaseSettings`](https://docs.pydantic.dev/latest/usage/pydantic_settings/).

```python
from pydantic_settings import BaseSettings


class Environment(BaseSettings):
    DEBUG: bool = True
    POSTGRES_HOST: str = "localhost"
    POSTGRES_USER: str = "postgres"
    POSTGRES_DB: str = "db"
    POSTGRES_PASSWORD: str = "postgres"
    POSTGRES_PORT: str = "5432"
```

You can generate a `.env.sample` file with this command:

```shell script
sample-env example.Environment
```

Output

```dotenv
DEBUG=True
POSTGRES_HOST=localhost
POSTGRES_USER=postgres
POSTGRES_DB=db
POSTGRES_PASSWORD=postgres
POSTGRES_PORT=5432
```
gguf-python 0.0.4
gguf
Keywords: gguf, python, connector

## gguf

install via pip/pip3:
```
pip install gguf-python
```

### batch tensor remover with GUI (from gguf-connector)
```
gguf-tensor-remover
```

### batch tensor renamer with GUI (from gguf-connector)
```
gguf-tensor-renamer
```

### batch tensor extractor with GUI (from gguf-connector)
```
gguf-tensor-extractor
```
mcp-jsondiff-kel 0.1.5
Gives you the ability to compare the two json strings.
Requires Python: >=3.13

## jsondiff MCP
基于 Model Context Protocol (MCP) 的json对比工具


## inspector
```
npx @modelcontextprotocol/inspector uvx mcp-jsondiff-kel
```

## MCP 服务器配置
```
{
  "mcpServers": {
    "mcp_jsondiff": {
        "command": "uvx",
        "args": [
          "mcp-jsondiff-kel@latest"
        ]
      }
  }
}
```
callback-error-plugin-demo-4 0.0.2
A plugin to print Dash app errors on the header section of the page
Requires Python: >=3.8

# Dash Error Plugin Demo

A Dash plugin to display callback errors in your Dash app.

## Installation

```bash
pip install callback-error-plugin_demo_4
```

## Usage

```python
from dash import Dash, dcc, html, callback, Input, Output, State
from callback_error_plugin_demo_4 import add_error_notifications, generate_error_notification

add_error_notifications("Error message")

app = Dash(__name__)

app.layout = html.Div(
    [
        html.H2("Division Calculator"),
        generate_error_notification(),
        html.Label("Enter a number:", htmlFor="input-number"),
        dcc.Input(id="input-number", type="number", value=1),
        html.Button("Calculate", id="calc-btn", nClicks=0),
        html.Div(id="output-div"),
    ]
)

@callback(
    Output("output-div", "children"),
    Input("calc-btn", "nClicks"),
    State("input-number", "value"),
)
def update_output(n_clicks, value):
    if not n_clicks:
        return ""
    try:
        result = 10 / value
        return f"The result is {result}"
    except Exception as e:
        return f"Error: {e}"

if __name__ == "__main__":
    app.run(debug=True)
```

## Running the Example

```bash
python example.py
```