database layer for my personal server.
Project description
square_database
about
database layer for my personal server.
installation
pip install square_database[all]
usage (WIP)
change password in config.ini.
CREATE_SCHEMA = True to create database from scratch.
LOG_FILE_NAME and configure logger
link to square_database_structure
config
square_database\data\config.ini
env
- python>=3.12.0
changelog
v2.5.1
- fix github workflow for marking latest image on release.
v2.5.0
- add Dockerfile
v2.4.0
- set allow_credentials=True.
v2.3.0
- expanded apply_filters to support additional conditions: ne, lt, lte, gt, gte, like, in_.
v2.2.1
- update test for root
v2.2.0
- standardize output format for all endpoints.
- edit_rows is not patch method.
- bug fix in get rows for column selection.
- added total count in get rows.
- added affected count in insert, edit, and delete rows.
v2.1.0
- standardize filter input to forward facing data structure.
- rename ignore_all to apply_filters.
- add columns in get rows.
- stricter type checking in pydantic models.
- refactor logic to apply filters into common function.
- add pydantic as explicit requirement.
v2.0.0
- append version number for each endpoint in the api.
v1.1.0
- remove table creation logic (move to square_database_structure).
v1.0.3
- add limit, offset and order by in get rows.
v1.0.2
- database creation logic change.
v1.0.1
- no changes. (password erase from history.)
v1.0.0
- initial commit.
Feedback is appreciated. Thank you!
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
square_database-2.5.1.tar.gz
(8.1 kB
view details)
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 square_database-2.5.1.tar.gz.
File metadata
- Download URL: square_database-2.5.1.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fcd210e9007e77d4d5e668c56ba50f89174e0a23f0b29c8a3d9170ea71bf8a2
|
|
| MD5 |
88f67e1abd65caf01f6d8a560736a6f0
|
|
| BLAKE2b-256 |
1d0759545aa2fc51cee1c605ed0ef072f4622be2a1a50b86384b5374689dbdee
|
File details
Details for the file square_database-2.5.1-py3-none-any.whl.
File metadata
- Download URL: square_database-2.5.1-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5a1677b5dc67ffff39325a4db50ef10623c7d97d7b46f5a12ff056274905a65
|
|
| MD5 |
1af1878d5d1b2b64d08ce9cb87368b12
|
|
| BLAKE2b-256 |
18860cd843a0745baf41632e4c828e66be3bfedcc1d265a0f5dfe5539ede074e
|