All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- none
Release in 2023-08-22
Changed
- Version specifications of
flask>=2.3
,deta>=1.2
dependencies in pyproject.toml - Python version specification from 3.8 to 3.10 in pyproject.toml
Release in 2023-08-22
Added
-
Added the "init_app" method to DetaBase and DetaDrive to support Flask modularity.
-
Separated the connection logic; connection logic is now internal to each class (DetaBase and DetaDrive) for simplicity.
-
Added an optional "limit" parameter to the "get_all" method in DetaBase, allowing customization of the number of elements to retrieve.
-
Added an optional "limit" parameter to the "all_files" method in DetaDrive, allowing customization of the number of files to retrieve.
-
Introduced a "verify_setups" function in "validator.py," which verifies DetaSpace configuration and connection setups. It checks for the presence of keys and names and their existence. This function works for both DetaDrive and DetaBase.
Changed
- Renamed files containing "DetaDrive" to "deta_drive.py" and "DetaBase" to "deta_base.py."
Removed
- Removed unnecessary and/or empty files.
Fixed
- Implemented general and specific error handling in both classes within the Flask context.
Updated
- Updated the documentation.
Release in 2023-08-09
- Initial release of Flask-Deta.