Skip to main content

Ultra-fast Python ORM with 600k+ ops/sec performance

Project description

Turbo ORM

PyPI version Python 3.7+ License: MIT

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

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 →

🚀 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

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

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

🎨 Real-World Examples

Check out complete demo applications:

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md.

📄 License

MIT License - see LICENSE file for details.

⭐ Show Your Support

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

turbo_orm-0.1.0-py3-none-any.whl (72.4 kB view details)

Uploaded Python 3

File details

Details for the file turbo_orm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: turbo_orm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 72.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.13

File hashes

Hashes for turbo_orm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89e3dad8ee88018dc305167289f8630851398ce7825b87a3813f2d67afb14f18
MD5 3068bf287b59b6e591c2ab9c8db8ac57
BLAKE2b-256 d8054be35e94d7215dfcb71b45b08a107c9f13100518c7f0e0f4b1caeef9772b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page