semvec/pypi-packages huggingface dataset:
django-smart-validate 0.1.0
Smart reusable validators for Django models & forms.
Requires Python: >=3.7

# django-smart-validate

**Smart reusable validators for Django models & forms.**

`django-smart-validate` provides a collection of pre-built, reusable validators
and a mixin for applying them easily in Django models or forms.

---

## Features
- Ready-to-use common validation patterns (slug, alpha-numeric, phone, email, etc.)
- Simple API for custom regex patterns
- Works in both **Django models** and **forms**
- Lightweight, no extra dependencies except Django

---

## Installation

```bash
pip install django-smart-validate
```

Usage
In a Django Model

```
from django.db import models
from smart_validate.validators import SmartValidator

class MyModel(models.Model):
    user_code = models.CharField(max_length=10, validators=[SmartValidator.validator("code")])
    email = models.CharField(max_length=254, validators=[SmartValidator.email()])
```

In a Django Form with Mixin
```aiignore

from django import forms
from smart_validate.validators import SmartValidator
from smart_validate.mixins import SmartValidateMixin

class MyForm(SmartValidateMixin, forms.Form):
    name = forms.CharField()
    email = forms.CharField()

    smart_validators = {
        "name": SmartValidator.validator("alpha_numeric"),
        "email": SmartValidator.email(),
    }

```

Available Validators

```aiignore

SmartValidator.validator("alpha_numeric")

SmartValidator.validator("slug")

SmartValidator.validator("phone")

SmartValidator.validator("code")

SmartValidator.email()
```
psr-pycloud 0.3.9
PSRCloud Python Module

# psr.cloud (pycloud) Module

## Installation

### From source (Recommended)

Copy `psr` folder and its contents to your work directory or add its parent path to `PYTHONPATH` environment variable before running it.

### pip

If you have pip installed and the correct git credentials run the command:

```python
pip install git+https://github.com/psrenergy/pycloud.git
```

## Usage

```python
import psr.cloud

client = psr.cloud.Client()

case = psr.cloud.Case(data_path=r"C:\PSR\Sddp17.3\Example\12_stages\Case21",
                      price_optimized=True,
                      program="SDDP",
                      program_version="17.3.7",
                      name="Test PyCloud",
                      execution_type="Default",
                      number_of_processes=64,
                      memory_per_process_ratio="2:1",
                      repository_duration=2 # Normal (1 month)
                      )

client.run_case(case)
```

## Authentication

#### Keyword argument specified in `Client` constructor:

- `username` - specify username string
- `password` - plain password string

```python
client = psr.cloud.Client(username="myuser", password=os.environ["MY_PASSWORD"])
```

The password will never be stored plainly, only its md5 hash will be used.

#### Read from environment variables

Prefered over keyword arguments:

- `PSR_CLOUD_USER` - specify username
- `PSR_CLOUD_PASSWORD_HASH` - md5 password hash

Password hash can be obtained by running the code below:

```python
import hashlib
print(hashlib.md5("my-password".encode("utf-8")).hexdigest().upper())
```

Or calling the convenience function `psr.cloud.hash_password("my-password")`.

#### Automatic

Will use PSR Cloud client auth data, if avaiblable.

## Querying PSR Cloud options

#### Available programs/models

```python
get_programs() -> list[str]
```

#### Available model versions

```python
get_program_versions(program: str) -> dict[int, str]
```

#### Available execution types

```python
get_execution_types(program: str, version: Union[str, int]) -> dict[int, str]
```

#### Available memory per process ratios

```python
get_memory_per_process_ratios() -> list[str]
```

#### Available repository durations

```python
get_repository_durations() -> dict[int, str]
```
greenpulse-mcp 1.0.0
greenpulse MCP server
Requires Python: >=3.11

# greenpulse-mcp MCP server

greenpulse MCP server

## Components

### Resources

The server implements a simple note storage system with:
- Custom note:// URI scheme for accessing individual notes
- Each note resource has a name, description and text/plain mimetype

### Prompts

The server provides a single prompt:
- summarize-notes: Creates summaries of all stored notes
  - Optional "style" argument to control detail level (brief/detailed)
  - Generates prompt combining all current notes with style preference

### Tools

The server implements one tool:
- add-note: Adds a new note to the server
  - Takes "name" and "content" as required string arguments
  - Updates server state and notifies clients of resource changes

## Configuration

[TODO: Add configuration details specific to your implementation]

## Quickstart

### Install

#### Claude Desktop

On MacOS: `~/Library/Application\ Support/Claude/claude_desktop_config.json`
On Windows: `%APPDATA%/Claude/claude_desktop_config.json`

<details>
  <summary>Development/Unpublished Servers Configuration</summary>
  ```
  "mcpServers": {
    "greenpulse-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/Users/xhe/Developer/greenpulse-mcp",
        "run",
        "greenpulse-mcp"
      ]
    }
  }
  ```
</details>

<details>
  <summary>Published Servers Configuration</summary>
  ```
  "mcpServers": {
    "greenpulse-mcp": {
      "command": "uvx",
      "args": [
        "greenpulse-mcp"
      ]
    }
  }
  ```
</details>

## Development

### Building and Publishing

To prepare the package for distribution:

1. Sync dependencies and update lockfile:
```bash
uv sync
```

2. Build package distributions:
```bash
uv build
```

This will create source and wheel distributions in the `dist/` directory.

3. Publish to PyPI:
```bash
uv publish
```

Note: You'll need to set PyPI credentials via environment variables or command flags:
- Token: `--token` or `UV_PUBLISH_TOKEN`
- Or username/password: `--username`/`UV_PUBLISH_USERNAME` and `--password`/`UV_PUBLISH_PASSWORD`

### Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging
experience, we strongly recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).


You can launch the MCP Inspector via [`npm`](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) with this command:

```bash
npx @modelcontextprotocol/inspector uv --directory /Users/xhe/Developer/greenpulse-mcp run greenpulse-mcp
```


Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.