🌿 Mossify – A simple, organic framework for FastAPI + SQLModel with automatic CRUD and intelligent caching.
Project description
🌿 mossify
Mossify is a simple, organic framework that wraps FastAPI and SQLModel to give you automatic CRUD routes and intelligent caching – with almost zero boilerplate.
"Mossify your backend. Simple, organic, and fully covered."
🚀 Quick Start
pip install mossify
from mossify import Mossify
from sqlmodel import SQLModel, Field
from typing import Optional
class Product(SQLModel, table=True):
id: Optional[int] = Field(default=None, primary_key=True)
name: str
price: float
app = Mossify(database_url="sqlite:///database.db")
app.register_model(Product)
if __name__ == "__main__":
app.run(workers=2)
That's it! You now have a fully functional API with:
- GET /products → list all products
- POST /products → create a product
- GET /products/{id} → get a product
- PATCH /products/{id} → update a product
- DELETE /products/{id} → delete a product
All routes are automatically cached and invalidated on write operations.
✨ Features
- 🔌 Zero boilerplate – just define your models and go.
- ⚡ FastAPI + SQLModel – fully async, modern, and type-safe.
- 🧠 Intelligent caching – automatic TTL-based cache for GET endpoints.
- 🔄 Automatic invalidation – cache is cleared on POST, PUT, PATCH, DELETE.
- 🔧 Multi‑worker ready – scale with
uvicornworkers out of the box. - 📦 Built‑in OpenAPI – interactive docs at
/docsand/redoc. - 🪶 Lightweight – only essential dependencies, no bloat.
📦 Installation
pip install mossify
Or with uv:
uv pip install mossify
🧑💻 Development
If you want to contribute or test the latest version:
git clone https://github.com/Luiz-Trindade/mossify.git
cd mossify
uv venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
uv sync
pytest tests/
📄 License
MIT © Luiz Gabriel Magalhães Trindade
🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page or open a pull request.
🙏 Acknowledgements
Built on top of the amazing FastAPI and SQLModel.
Made with 🌿 and ❤️
mossify
Project details
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 mossify-0.1.4.tar.gz.
File metadata
- Download URL: mossify-0.1.4.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26ba9cd5c015c56fc1f13f13eee55487a1db671dbb5e1c7c9ef1510448657c3f
|
|
| MD5 |
eebe52e66a61b964c365cdda7864d2e6
|
|
| BLAKE2b-256 |
95d3b31f46b85357f1f996531ec398d303488cff94584f7cd40a98caf55fdef2
|
File details
Details for the file mossify-0.1.4-py3-none-any.whl.
File metadata
- Download URL: mossify-0.1.4-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfc742b8d2a674b0f791049314ec1ea982843cbf19d1a7afd93ef83728b6b672
|
|
| MD5 |
92b6bb24c1a357763228818505eb75b4
|
|
| BLAKE2b-256 |
82435747137400895391c5e1cdcb9173c52f220d9283d26123daf4e4df7bb969
|