Skip to main content

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.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


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.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

square_database-2.5.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file square_database-2.5.0.tar.gz.

File metadata

  • Download URL: square_database-2.5.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for square_database-2.5.0.tar.gz
Algorithm Hash digest
SHA256 4361ea110192bdb861dbb4797413e9ae4b0fa60c11a7c1d41aa71915a87f3b8d
MD5 6aeb0c741e8563622539432051409e33
BLAKE2b-256 46eb1fd30fa6872f27693904b1ef9fcdd7d967b76ad86ee4087f2f94ec813acb

See more details on using hashes here.

File details

Details for the file square_database-2.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for square_database-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a27a3f08bee79818419354f44dfaf41f08e301e188f9afbc30832fd667c357b3
MD5 7c757960a4ed5e7fc2ed8ffe73365e97
BLAKE2b-256 247a52bd2f3e08754d5697aff337cf92e1adabec7622570581aa370a99aebdf5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page