{"id":15019698,"url":"https://github.com/sr1871/flask-model-validation","last_synced_at":"2026-01-20T18:56:20.040Z","repository":{"id":168538620,"uuid":"644245305","full_name":"sr1871/flask-model-validation","owner":"sr1871","description":"Extension for Flask-SQLALchemy that include validation for models, a easier way to query and more new features.","archived":false,"fork":false,"pushed_at":"2023-05-23T06:37:52.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-26T07:45:27.652Z","etag":null,"topics":["flask","flask-model-validation","flask-sqlalchemy","python","sqlalchemy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sr1871.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-23T05:59:43.000Z","updated_at":"2023-11-20T11:54:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd925b25-0737-468c-ba09-26439681d795","html_url":"https://github.com/sr1871/flask-model-validation","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"cf0e7352c2a9d3763bdfaf4fcd11df98f984e9a5"},"previous_names":["sr1871/flask-model-validation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr1871%2Fflask-model-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr1871%2Fflask-model-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr1871%2Fflask-model-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr1871%2Fflask-model-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sr1871","download_url":"https://codeload.github.com/sr1871/flask-model-validation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247684492,"owners_count":20979073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","flask-model-validation","flask-sqlalchemy","python","sqlalchemy"],"created_at":"2024-09-24T19:53:54.365Z","updated_at":"2026-01-20T18:56:19.997Z","avatar_url":"https://github.com/sr1871.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask-model-validation\n\nFlask-model-validation is an extension for [Flask-SQLAlchemy](https://github.com/pallets-eco/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.\n\n## Installation\n\nInstall using [pip](https://pip.pypa.io)\n\n```bash\npip install Flask-model-validation\n```\n\n## Setup the extension\nIt should be initialized like `Flask-SQLAlchemy` extension.\n\nFor more information see the [Flask-SQLAlchemy documentation](https://flask-sqlalchemy.palletsprojects.com/en/3.0.x/)\n\n```python\nfrom flask import Flask\nfrom flask_model_validation import SQLAlchemyModelValidation\n\napp = Flask(__name__)\napp.config[\"SQLALCHEMY_DATABASE_URI\"] = \"sqlite://\"\ndb = SQLAlchemyModelValidation()\ndb.init_app(app)\n```\n\n## Features\nFlask-model-validation includes several new features.\n\n- [Validation](docs/validation.md)\n- [Mixins](docs/mixins.md)\n- [Saving the model](docs/save.md)\n- [Deleting the model](docs/delete.md)\n- [Extra model features](docs/model_features.md)\n- [query to the database](docs/query.md)\n\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr1871%2Fflask-model-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsr1871%2Fflask-model-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr1871%2Fflask-model-validation/lists"}