semvec/pypi-packages huggingface dataset:
pytastic 0.1.6
A dependency-free JSON validation library using TypedDict and Annotated
Requires Python: <4.0,>=3.9

# Pytastic

**No Magic. Just Python.**

Pytastic is a lightweight validation layer that respects your standard Python type hints. If you know `TypedDict` and `Annotated`, you already know how to use Pytastic.

View Docs at [Pytastic Documentation](https://rayattack.github.io/pytastic/)

## Why?
- **Zero Dependencies**: Pure Python standard library.
- **No Learning Curve**: It's just standard Python typing.
- **IDE Friendly**: We use standard types, so your IDE autocompletion works out of the box.
- **Fast**: Code generation makes Pytastic faster than Pydantic for common use cases.

## Performance

Benchmark results (100,000 validation iterations):

| Library | Time (s) | Ops/sec | Relative |
|---------|----------|---------|----------|
| msgspec | 0.0533 | 1,877,872 | 1.00x |
| **Pytastic** | **0.1794** | **557,277** | **3.37x** |
| Pydantic | 0.2002 | 499,381 | 3.76x |

**Pytastic is faster than Pydantic** i.e. Pure Python with zero dependencies!

## Installation

```bash
pip install pytastic
```

## Usage

```python
from pytastic import Pytastic
from typing import TypedDict, Annotated, List, Literal

vx = Pytastic()

# 1. Define Schema
class User(TypedDict):
    username: Annotated[str, "min_len=3; regex=^[a-z_]+$"]
    age: Annotated[int, "min=18"]
    role: Literal["admin", "user"]
```

# 2. Usage Patterns

## Option A: Typed (Recommended)
**No registration required.** Best for IDE autocompletion.
```python
try:
    user = vx.validate(User, {"username": "tersoo", "age": 25, "role": "admin"})
    print(user)
except Exception as e:
    print(e)
```

## Option B: Dynamic (Requires Registration)
**Registration required.** Best for quick scripts or cleaner syntax.
```python
vx.register(User)

# Now you can use the class name directly on the validator instance
user = vx.User({"username": "tersoo", "age": 25, "role": "admin"})
```

## 3. JSON Schema
```python
# Export standard JSON Schema
print(vx.schema(User))
# Output:
# {
#   "type": "object",
#   "properties": {
#     "username": { "type": "string", "minLength": 3 ... },
#     ...
#   }
# }
```

## License

MIT
iflow-mcp-hu-po-tatbot 0.6.2
tattoo robot
Requires Python: >=3.11
Keywords: robotics, tattoo, robot, mcp, jax, lerobot

<div align="center">
  <a href="https://tatbot.ai/">
    <picture>
      <source media="(prefers-color-scheme: dark)" srcset="docs/logos/dark.svg">
      <img src="docs/logos/light.svg" alt="tatbot" style="max-width: 200px; width: 80%;">
    </picture>
  </a>
</div>
<div align="center">
  <a href="https://github.com/hu-po/tatbot/blob/main/LICENSE"><img src="https://img.shields.io/github/license/hu-po/tatbot.svg?v" alt="license"></a>
  <a href="https://hu-po.github.io/tatbot/"><img src="https://img.shields.io/badge/📚-docs-blue.svg" alt="documentation"></a>
  <a href="https://poly.cam/capture/ad7c1544-fca2-48d8-acf8-a94d328fc5c4" target="_blank" rel="noopener noreferrer">
    <img src="https://img.shields.io/badge/Polycam-3D-734F96.svg?style=flat" alt="View on Polycam">
  </a>
  <a href="https://huggingface.co/tatbot/datasets">
    <img alt="Datasets" src="https://img.shields.io/badge/%F0%9F%A4%97%20HF-Datasets-yellow">
  </a>
  <br>
  <a href="https://x.com/tatbots">
    <img src="https://img.shields.io/badge/x.com-%40tatbot-000000.svg?logo=x&logoColor=white&style=flat" alt="X">
  </a>
  <a href="https://www.tiktok.com/@tatbottok">
    <img src="https://img.shields.io/badge/TikTok-%40tatbot-000000.svg?logo=tiktok&logoColor=white&style=flat" alt="TikTok">
  </a>
  <a href="https://www.instagram.com/tatbots/">
    <img src="https://img.shields.io/badge/Insta-%40tatbot-E4405F.svg?logo=instagram&logoColor=white&style=flat" alt="Instagram">
  </a>
</div>

# **tatbot**: tattoo robot

🙋‍♂️ Want a tattoo? Join the [waitlist](https://forms.gle/Zys6f5iLEtYCG8VW7)

🚀 Follow the [progress](docs/progress.md)

📚 Read the [documentation](https://hu-po.github.io/tatbot/)

🎥 Watch the [livestream](https://youtube.com/live/ym27ZHPMaec)

[![YouTube Video](docs/images/thumbnail.jpg)](https://youtube.com/live/ym27ZHPMaec)

## Citation

```
@misc{tatbot-2025,
  title={tatbot},
  author={Hugo Ponte},
  year={2025},
  url={https://github.com/hu-po/tatbot}
}
```