TuskORM is a modern, general-purpose Object Relational Mapper (ORM) built for PostgreSQL. Designed with performance, scalability, and ease of use in mind, TuskORM provides an async-first API while planning future support for synchronous execution.
🚀 Fast, lightweight, and Pythonic. 🛠 Automatic migrations. 🔄 Async-first with future sync support. ⚡ Efficient query builder with chaining.
Leverages asyncpg for high-performance, non-blocking database operations.
Schema changes? No problem. TuskORM handles migrations automatically.
A Django-like query system with powerful filtering, ordering, and aggregation support.
Initially designed for async execution, but sync mode (psycopg2) will be added soon.
TuskORM uses Poetry for package management.
pip install poetry # If you haven't installed Poetry yet
poetry add tuskormOr, if you're cloning from source:
git clone https://github.com/ihavemadefire/tuskorm.git
cd tuskorm
poetry installfrom tuskorm import Model, IntegerField, CharField
class User(Model):
id = IntegerField(primary_key=True)
name = CharField(max_length=100)users = await User.filter(name="Alice").order_by("-id").all()await User.create(name="Bob")poetry run tuskorm migrate✅ Async query execution with asyncpg
✅ Model system with Django-like syntax
✅ Automatic migrations
🛠 Sync support using psycopg2
🛠 Relationships (ForeignKey, ManyToMany, OneToOne)
🛠 Transactions & connection pooling
🛠 Admin interface (optional)
Want to make TuskORM even better? Contributions are welcome!
git clone https://github.com/ihavemadefire/tuskorm.git
cd tuskorm
poetry install- Fork the repository
- Create a new branch (
git checkout -b feature-branch) - Commit your changes (
git commit -m "Add new feature") - Push to the branch (
git push origin feature-branch) - Open a Pull Request 🎉
TuskORM is open-source and available under the MIT License.
- GitHub: github.com/yourusername/tuskorm
- Issues: Report a Bug
- Contribute: Submit a PR
🔥 TuskORM – The Future of PostgreSQL ORMs Starts Here.