Metadata-Version: 2.1
Name: turbo-orm
Version: 0.1.0
Summary: Ultra-fast Python ORM with 600k+ ops/sec performance
Home-page: https://github.com/yourusername/turbo-orm
Author: Your Name
Author-email: your.email@example.com
License: UNKNOWN
Project-URL: Bug Reports, https://github.com/yourusername/turbo-orm/issues
Project-URL: Source, https://github.com/yourusername/turbo-orm
Keywords: orm database sqlite performance async turbo
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Database
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: async
Requires-Dist: aiosqlite>=0.17.0; extra == "async"
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.20.0; extra == "dev"
Provides-Extra: http
Requires-Dist: requests>=2.28.0; extra == "http"
Provides-Extra: redis
Requires-Dist: redis>=4.0.0; extra == "redis"

# Turbo ORM

[![PyPI version](https://badge.fury.io/py/turbo-orm.svg)](https://badge.fury.io/py/turbo-orm)
[![Python 3.7+](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

**The fastest Python ORM.** 3-8x faster than SQLAlchemy, with zero external dependencies.

```python
from turbo import Database, Model, TextField

class User(Model):
    name = TextField()
    email = TextField()

db = Database("app.db")
db.connect()
User.create_table(db)

user = User(name="Alice", email="alice@example.com")
user.save(db)
```

## ⚡ Performance

- **84,164 ops/sec** INSERT (3.5x faster than SQLAlchemy)
- **993,911 ops/sec** SELECT (192x faster than SQLAlchemy)
- **614,488 ops/sec** bulk operations with turbo mode

[See full benchmark comparison →](https://github.com/yourusername/turbo-orm#benchmarks)

## 🚀 Features

### Core
- **Zero Dependencies** - Pure Python, uses built-in `sqlite3`
- **Async Support** - Full async/await with `aiosqlite`
- **Migrations** - Auto-diffing schema management
- **CLI Tools** - Project scaffolding and model generation
- **Type Safe** - Full IDE autocomplete support

### Advanced
- **Vector Search** - Semantic similarity search
- **CDC** - Change Data Capture for real-time streaming
- **Business Rules** - Declarative validation engine
- **RBAC** - Role-based access control
- **Redis Cache** - Distributed query caching
- **TUI Dashboard** - Terminal monitoring interface

## 📦 Installation

```bash
pip install turbo-orm

# With async support
pip install turbo-orm[async]

# With Redis caching
pip install turbo-orm[redis]

# All extras
pip install turbo-orm[async,redis,http]
```

## 🎯 Quick Start

```python
from turbo import Database, Model, TextField, IntegerField

# Define models
class Post(Model):
    title = TextField(required=True)
    content = TextField()
    views = IntegerField(default=0)

# Setup database
db = Database("blog.db")
db.connect()
Post.create_table(db)

# Create
post = Post(title="Hello World", content="My first post")
post.save(db)

# Read
post = Post.get(db, 1)
all_posts = Post.all(db)
popular = Post.filter(db, views__gt=100)

# Update
post.views += 1
post.save(db)

# Delete
post.delete(db)
```

## 🏆 Why Turbo?

| Feature | Turbo | SQLAlchemy | Peewee |
|---------|-------|------------|--------|
| **INSERT Speed** | 84k ops/sec | 24k ops/sec | 10k ops/sec |
| **SELECT Speed** | 994k ops/sec | 5k ops/sec | 6k ops/sec |
| **Dependencies** | 0 | 2+ | 0 |
| **Async Support** | ✅ | ✅ | ❌ |
| **Vector Search** | ✅ | ❌ | ❌ |
| **CDC** | ✅ | ❌ | ❌ |

## 📚 Documentation

- [Getting Started](https://turbo-orm.readthedocs.io/en/latest/quickstart/)
- [API Reference](https://turbo-orm.readthedocs.io/en/latest/api/)
- [Performance Guide](https://turbo-orm.readthedocs.io/en/latest/performance/)
- [Examples](https://github.com/yourusername/turbo-orm/tree/main/demos)

## 🎨 Real-World Examples

Check out complete demo applications:
- [Blog Platform](https://github.com/yourusername/turbo-orm/tree/main/demos/blog_platform)
- [Task Manager](https://github.com/yourusername/turbo-orm/tree/main/demos/task_manager)
- [Social Network](https://github.com/yourusername/turbo-orm/tree/main/demos/social_network)
- [Inventory System](https://github.com/yourusername/turbo-orm/tree/main/demos/inventory_system)

## 🤝 Contributing

Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md).

## 📄 License

MIT License - see [LICENSE](LICENSE) file for details.

## ⭐ Show Your Support

If you find Turbo useful, please consider giving it a star on GitHub!


