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

v3.0.1

  • testing
    • bugfix in conftest, dyanamic loading of config_str_database_module_name instead of square_database_structure.
    • update get_patched_configuration and create_client_and_cleanup to be session scoped.
  • env
    • add ALLOW_ORIGINS

v3.0.0

  • /delete_rows/v0 is now POST instead of DELETE.

v2.6.0

  • add config.testing.ini for testing.
  • add fixtures get_patched_configuration and create_client_and_cleanup.
  • add test for insert rows.
  • add test for get rows.
  • bump square_logger >= 2.0.0.

v2.5.3

  • bump square_database_structure to >=2.3.1.

v2.5.2

  • add logging decorators for all functions.
  • add error logs in all endpoints.

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


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-3.0.1.tar.gz (9.4 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-3.0.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for square_database-3.0.1.tar.gz
Algorithm Hash digest
SHA256 1f07d2b102b8042a7f58b49aec3d389c2c2c2ef85299f0e4e7d4cb48f1a6490f
MD5 54d5320cc0b90de2a9cc10be4593a478
BLAKE2b-256 6a9518abe38aee1cffebb9f12f7519339e5ddf3838887fb7b4a8699816958d96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for square_database-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65bdf9328270be496df91b1b9eea2c85d460252093dc7fa888116788df439fef
MD5 72f72757667ed843f5ca3469e2126106
BLAKE2b-256 c9f0b1c442656d99c8aeae349c87416a0f63dc934437ad7264224b99d3a8057e

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