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

Uploaded Source

Built Distribution

square_database-2.2.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: square_database-2.2.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for square_database-2.2.1.tar.gz
Algorithm Hash digest
SHA256 adae2d4a591fb2e1714da697dc062dfccc85042ef738f560c4a87e442581001a
MD5 b2f168ff86e82a0a60b527a5ba0f6516
BLAKE2b-256 d57e0135d1f8c90e86f2df36730ae6ee6538709ab1327c163fff2e805dc881f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for square_database-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8eaacff23d91047b4126096feaaee87b24e00959c9210b1c080226f1559b123d
MD5 6d9db9f343e6c95df88077c6c1be3c92
BLAKE2b-256 f27ceb82e4b0660545bdb4da5122b04301eb4647de5acf36428149d0a92b7188

See more details on using hashes here.

Supported by

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