SQLAlchemy models for FastAPI applications
Project description
rodrigo0000-fastapi-core-models
SQLAlchemy models for FastAPI applications.
Features
- Pre-built SQLAlchemy models for common entities
- Pydantic schemas for request/response validation
- User models with authentication fields
- Plan and subscription models
- Timestamped base models
Installation
pip install rodrigo0000-fastapi-core-models
Usage
from rodrigo0000_fastapi_core_models import User, Plan, UserCreate, UserResponse
# Use in your FastAPI application
from sqlalchemy.orm import Session
def create_user(db: Session, user: UserCreate):
db_user = User(**user.dict())
db.add(db_user)
db.commit()
return db_user
Components
- User Models: User entity and schemas
- Plan Models: Subscription plan models
- Base Models: Timestamped base classes
- Pydantic Schemas: Request/response validation models
Requirements
- Python >= 3.8
- SQLAlchemy >= 2.0.0
- Pydantic >= 2.0.0
License
MIT License
Author
R Firm - Professional SaaS Development
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rodrigo0000_fastapi_core_models-1.0.2.tar.gz.
File metadata
- Download URL: rodrigo0000_fastapi_core_models-1.0.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03ab9569c803c0de74c1d1d9b9b087b9bdbd1b39cf40f8c9878bdd1e5534942e
|
|
| MD5 |
ac0054040faf02d0d6905e3fccd44480
|
|
| BLAKE2b-256 |
2c6b19d66dd072f4904bd5c3357a3bc19d0d8587f821a7ef771764b6dfbf9936
|
File details
Details for the file rodrigo0000_fastapi_core_models-1.0.2-py3-none-any.whl.
File metadata
- Download URL: rodrigo0000_fastapi_core_models-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d309b09f0a730b49bb25ded93c067375ae487116b2e5cbbabe352cd738831d9
|
|
| MD5 |
2ee1f05bccd9be89d07c2f832777359f
|
|
| BLAKE2b-256 |
17641eb282a63aaf213aab064bb713280af646ee4e36dce1e3f8e19ccbf69958
|