semvec/pypi-packages huggingface dataset:
reqsnap 1.0.0
Python Requirements Snapshot Tool - Lock exact versions of main libraries
License: MIT
Requires Python: >=3.7

# PyPI-Package---Requirements-snapshot-

    conda create -n reqsnap python=3.8

    conda activate reqsnap

    conda deactivate

    deactivate  # Linux/Mac

    pip install -r requirements.txt 

## 🧠 High-Level Workflow

requirements.txt

↓
read only main libraries

↓
detect installed versions

↓
create requirements.lock

## reqsnap

reqsnap is a simple Python tool that locks exact installed versions of only the main libraries listed in `requirements.txt`.

## Why reqsnap?

- Avoid version mismatch errors
- No dependency noise
- Beginner friendly
- No pip freeze

## Installation

    pip install reqsnap

    # Basic lock generation
    reqsnap lock

    # Check without locking
    reqsnap check

    # Compare with previous lock
    reqsnap diff

    # Validate requirements file
    reqsnap validate

## Traditional lock format (default)

    reqsnap lock --format lock

    # JSON format
    reqsnap lock --format json

    # YAML format
    reqsnap lock --format yaml

    # TOML format
    reqsnap lock --format toml

## Use different requirements file

    reqsnap lock --file requirements-dev.txt

## Custom output file

    reqsnap lock --output locked-requirements.json

### This will generate

    requirements.lock

## Example

### $ reqsnap lock

    🔒 ReqSnap - Generating lock file
    📄 Source: requirements.txt
    📁 Format: lock
    ----------------------------------------
    🔍 Checking 4 packages...

    ✅ Lock file saved to: requirements.lock
    📊 Summary:
    📦 Total packages: 4
    ✓ Installed & locked: 4

    🎉 Done! Use 'reqsnap check' to verify installations.

### requirements.lock

    # Generated by ReqSnap
    # Date: 2025-12-31T14:59:08.870747
    # Python: 3.8.20
    # Source: requirements.txt

    importlib-metadata==8.5.0
    packaging==25.0
    pyyaml==6.0.3
    toml==0.10.2
usageguard 0.1.0
Real-time cost control for AI and API platforms
License: MIT
Requires Python: >=3.8
Keywords: ai, api, cost-control, openai, anthropic, gemini, budget

# UsageGuard SDK

Real-time cost control for AI & API platforms. Prevent budget overruns with pre-flight checks and automatic enforcement.

## Features

- 🛡️ **Budget Enforcement** - Block requests before they cost you money
- ⚡ **12ms Latency** - Minimal performance impact
- 🔄 **Fail-Open** - Your app keeps running if UsageGuard is down
- 📊 **Real-time Dashboard** - Monitor usage and savings
- 🔑 **API Key Management** - Secure authentication
- 🎯 **Flexible Policies** - Per-project, per-user, or custom scopes

## Quick Start

### 1. Sign Up

Get your API key at [usage-guard.vercel.app/signup](https://usage-guard.vercel.app/signup)

### 2. Install

```bash
pip install usageguard
```

### 3. Use

```python
from usageguard import UsageGuard
from openai import OpenAI

# Initialize
guard = UsageGuard(api_key="ug_live_your_key_here")

# Wrap your client
client = guard.wrap_openai(OpenAI(api_key="your_openai_key"))

# Use normally - budgets enforced automatically
response = client.chat.completions.create(
    model="gpt-4",
    messages=[{"role": "user", "content": "Hello!"}]
)
```

## Supported Providers

- ✅ OpenAI (GPT-4, GPT-3.5, etc.)
- ✅ Google Gemini (Pro, Flash, etc.)
- 🔜 Anthropic Claude
- 🔜 Azure OpenAI
- 🔜 Custom providers

## Documentation

- [Quick Start Guide](./QUICKSTART.md)
- [API Reference](./docs/API.md)
- [Dashboard Guide](./docs/DASHBOARD.md)

## Architecture

```
┌─────────────┐
│  Your App   │
└──────┬──────┘
       │
       ▼
┌─────────────────┐
│ UsageGuard SDK  │  ← Pre-flight check
└──────┬──────────┘
       │
       ├─→ ✅ Allowed → OpenAI/Gemini
       │
       └─→ ❌ Blocked (budget exceeded)
```

## Performance

- **Latency:** 12ms avg (P99: 45ms)
- **Availability:** 99.9%
- **Fail-open:** Yes (requests proceed if API down)

## Security

- SHA-256 API key hashing
- TLS encryption
- No data retention
- SOC 2 compliant (coming soon)

## Pricing

- **Free:** 10,000 requests/month
- **Pro:** $29/month - 100,000 requests
- **Enterprise:** Custom pricing

[Sign up now](https://usage-guard.vercel.app/signup)

## Support

- **Email:** support@usageguard.ai
- **GitHub:** [github.com/sherlocq61/UsageGuard](https://github.com/sherlocq61/UsageGuard)
- **Discord:** [discord.gg/usageguard](https://discord.gg/usageguard)

## License

MIT License - see [LICENSE](./LICENSE)