Light-weight Python ORM
Project description
Tunica
Light-weight Python ORM.
"Wear a Tunica on your low-level code"
Builtin features:
- ORM
- Use pydantic models
- Simple query builder:
Model.all()
Model.filter(TODO).first()
- Simple db configuration. Smart and automatic session management
- Hide all low-level sql
- Migration tool
- Fully automatic. Checks changes even if the source db doesn't support it (e.g. Enums in GCP Spanner). Compare state of the db with the changes history in all migrations.
- Errors/Warnings if there are manual changes
- Force to use migrations for data changes:
- Move data from one table to another
- Modify data in one table
- ...
- Implement in Rust?
- Fully automatic. Checks changes even if the source db doesn't support it (e.g. Enums in GCP Spanner). Compare state of the db with the changes history in all migrations.
- SQL Profiling tool (like silk for Django)
- FastAPI integration
- Mock for testing (like alchemy-mock)
All these features should be architected as independent as possible to be able to move them into another projects
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tunica-0.0.1.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file tunica-0.0.1.tar.gz
.
File metadata
- Download URL: tunica-0.0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.1 Darwin/22.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e8caa4ddb99c9240ead5d1e12cd8ad60244e23143d14ecf0743e43d6fce3bcf |
|
MD5 | 8d98d25c2ee41463eafe8c09766fec87 |
|
BLAKE2b-256 | 1e37cb695adb0f28b14f4a29e9011cfae88d21cd914996a612ecde2488c18fdf |
File details
Details for the file tunica-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: tunica-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.1 Darwin/22.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88a03e56924ae19784721e3def5b7a933ae570f00dc82fedb5b89ba1b991f7f6 |
|
MD5 | 7d7431478d55aee348cc2f9f2dbad903 |
|
BLAKE2b-256 | 1b99d428bf8b50cbc3e07cf30d8c029e25e3ccc7af7c4b60e8046c64b720837f |