Extension for Flask-SQLALchemy that include validation for models, a easier way to query and more new features.
Project description
Flask-model-validation
Flask-model-validation is an extension for Flask-SQLAlchemy that adds support for validating the model before commit it to the database. It adds new functions to query and save the model easily.
Installation
Install using pip
pip install Flask-model-validation
Setup the extension
It should be initialized like Flask-SQLAlchemy extension.
For more information see the Flask-SQLAlchemy documentation
from flask import Flask
from flask_model_validation import SQLAlchemyModelValidation
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite://"
db = SQLAlchemyModelValidation()
db.init_app(app)
Features
Flask-model-validation includes several new features.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
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 flask_model_validation-0.1.0.tar.gz.
File metadata
- Download URL: flask_model_validation-0.1.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01101d3087ec7ea577ab4e7cf1845a424ce8969fece11bec61069c5ccf7876f5
|
|
| MD5 |
47e52c3c8a33bf482c570e746a7e3cf7
|
|
| BLAKE2b-256 |
87baf72a0fc5b739aa04f241ce0ed032d28f3a86bcefc8e6082835d286370477
|
File details
Details for the file flask_model_validation-0.1.0-py3-none-any.whl.
File metadata
- Download URL: flask_model_validation-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e332ebb688ab33561c113de870a4e8c7d0609b9791acdd92f1b78f6abaeab4e5
|
|
| MD5 |
8213ba79525d8486d3852c3d91e30c8e
|
|
| BLAKE2b-256 |
2375c4ff2eb391476f4c4e6b67e0a628a367bbf165521aa7119fe0e7f73fa011
|