https://github.com/vizonex/aiohttp_sqlmodel
An aiohttp_sqlalchemy library for sqlmodel things in asyncio.
https://github.com/vizonex/aiohttp_sqlmodel
aiohttp asyncio orm sql sqlmodel
Last synced: 9 months ago
JSON representation
An aiohttp_sqlalchemy library for sqlmodel things in asyncio.
- Host: GitHub
- URL: https://github.com/vizonex/aiohttp_sqlmodel
- Owner: Vizonex
- License: mit
- Created: 2024-07-13T19:25:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-25T02:09:53.000Z (over 1 year ago)
- Last Synced: 2025-02-09T04:41:05.320Z (11 months ago)
- Topics: aiohttp, asyncio, orm, sql, sqlmodel
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Aiohttp_Sqlmodel
A Build-off from [aiohttp_sqlalchemy](https://github.com/ri-gilfanov/aiohttp-sqlalchemy) for sqlmodel/sqlalchemy things.
This library attempts to make Sqlachemy's Mapping typehints to be regained making it
easier for users using aiohttp_sqlalchemy to migrate to sqlmodel or vice-versa if
and when required.
# Pros/Cons of SQLModel
## Pros
- Easiest Static Typechecking and easiest management of dataclass fields.
- Compatable with sqlalchemy since it's built on top of it as is mine with [aiohttp_sqlalchemy](https://github.com/ri-gilfanov/aiohttp-sqlalchemy) to aiohttp_sqlmodel
- aiohttp is a lot less heavy than fastapi when it comes to quite a few things hence my willingness to write this
library.
## Cons
- Pydantic can be a very bulky choice to compile with pyinstaller leading to alot of unwanted sizes and bulk
during the production of any application that requires the creation of a server.
## TODOS
- Fix View Types and implement my own web.View Types for fixing these problems and thier short-comings.
- Provide examples on how to use (You will find it is very simillar to aiohttp_sqlalchemy)